Architecture Overview
Start here for the SterlingIndex system map and the documentation surfaces hosted by this app.
SterlingIndex ships as public, product, operator, and documentation surfaces plus one shared backend runtime. The current deployment shape keeps www and docs on Vercel, dashboard on Cloudflare Pages, the active admin in apps/admin-desktop as an Electron desktop control room, apps/admin-mcp as a local stdio MCP control surface for agent-driven operator work, and the API/worker/scheduler/Postgres/Redis stack on a dedicated Contabo VPS. The hosted control plane can also coordinate an optional macOS scrape node for browser-stealth and local-model work without changing the product-facing deployment shape. This portal is the engineer-onboarding view of that system: what each surface owns, how they connect, which shared package or secret path carries the contract, and which repository files prove it.
Start here when you need to answer four questions quickly:
- which app or service owns a behavior,
- which shared package or environment variable crosses that boundary,
- which secret source of truth or sync path owns the runtime value,
- which verification surface should change with the code.
System At A Glance
apps/www -> public marketing experience on the root www host
apps/dashboard -> customer product frontend
apps/admin-desktop -> active Electron control-plane frontend
apps/admin-mcp -> local stdio MCP operator adapter
apps/legacy-admin -> legacy hosted control-plane reference
apps/docs -> standalone documentation app with shared dashboard-login handoff
\ | | | /
\ | | | /
-------- services/platform-api ------------------------
shared auth, data, jobs,
runtime readiness, and workers
|
optional macOS scrape-local workerRead This In Order
Frontend Appsto understand the public, product, admin, and docs surfaces.Shared Packagesto see the auth, contract, and client seams those frontends rely on.Platform APIto trace the backend runtime that serves both product and control-plane flows.Infrastructureto map domains, env vars, Infisical ownership, and deployment assumptions across the stack.
Architecture Map
Frontend Apps
Marketing, docs, dashboard, and admin ownership boundaries, shell models, and routing behavior.
Shared Packages
Auth helpers, TypeScript contracts, and the product API client used across apps.
Platform API
FastAPI entrypoints, workers, orchestration services, and backend verification surfaces.
Admin MCP Server
Codex/Claude-style local operator control over runtime, discovery, review, press, jobs, and VPS publish flows.
Infrastructure
Domain mapping, deployment topology, and the environment-variable contract across apps.
Portal Conventions
- File paths are written as repo-safe code references such as
apps/dashboard/src/App.tsx, not repo-relative Markdown links that break after publication. - Cross-links are organized by ownership: app surface first, shared contract second, infrastructure/deployment last.
- The docs app lives independently at
apps/docs, servesdocs.sterlingindex.com, redirects the root route to/docs, and uses the same shared dashboard-login handoff contract as the other public surfaces.