Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

903 B
Raw Blame
export const PUSH_LIMITS = {
  titleMaxChars: 80,
  bodyMaxChars: 180,
  maxRegistrationIdsPerSend: 20,
  // Bound writes through caller-chosen deviceId to phone-scale use per host.
  maxDevicesPerHost: 64,
  maxHttpBodyBytes: 16 * 1024,
  hostEventsPerWindow: 300,
  eventQuotaWindowMs: 15 * 60 * 1000,
  challengeTtlMs: 10_000,
  // Covers routine NTP drift without extending the signed challenge window.
  clockSkewToleranceMs: 30_000,
  sessionTtlMs: 24 * 60 * 60 * 1000,
  notificationTtlSeconds: 5 * 60,
  // Rate-limit unauthenticated challenge/session writes before generating keys.
  unauthenticatedRequestsPerMinutePerIp: 30,
  authenticatedRequestsPerMinutePerIp: 6_000,
  authenticatedRequestsPerMinutePerHost: 600
} as const

export const PUSH_DEFAULTS = {
  apnsTopic: 'com.stably.orca.mobile',
  androidChannelId: 'orca-desktop'
} as const

export const PUSH_HOST_FINGERPRINT_LENGTH = 16