For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DashboardProduct
DocsAPI ReferenceArchitecture
DocsAPI ReferenceArchitecture
  • System model
    • Monorepo architecture
    • Auth and workspace model
    • Data model
    • Runtime and operations
    • Known risks and drift
LogoLogo
DashboardProduct
On this page
  • Local runtime topology
  • External services
  • Local fallback state
System model

Runtime and operations

Local processes, environment variables, and external services
||View as Markdown|
Was this page helpful?
Edit this page
Previous

Data model

Next

Known risks and drift

Built with

Local runtime topology

Web app

@panicly/web, default port 3000, command next dev --webpack --disable-source-maps --port 3000.

API service

@panicly/api, default port 3001, command tsx watch src/index.ts.

Chatbot app

@panicly/chatbot, default port 3002, command next dev --turbo --port 3002.

External services

WorkOS

WORKOS_API_KEY and WORKOS_CLIENT_ID drive dashboard auth.

Supabase

SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY, NEXT_PUBLIC_SUPABASE_URL, and NEXT_PUBLIC_SUPABASE_ANON_KEY support data access.

Stripe

STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, and price IDs support subscriptions, checkout, credits, and portal access.

Provider secrets

ENCRYPTION_KEY encrypts and decrypts provider keys. A dev fallback exists and must not leak into production.

Chatbot

PANICLY_API_KEY, NEXT_PUBLIC_PANICLY_API_KEY, PANICLY_BASE_URL, and POSTGRES_URL are chatbot-specific.

Local fallback state

Operationally significant local files

.panicly/workspace-audit-events.json, .panicly/ip-rules.json, .panicly/geo-rules.json, and .panicly/model-rules.json can act as fallback storage when expected database tables are missing.

Generated or artifact-heavy folders include apps/web/.next, apps/*/dist, packages/*/dist, .turbo, and node_modules.