start
Where apps, packages, workers, and infra live in the monorepo.
Repository map
BlackStory ships as one monorepo so public surfaces, private research tools, and shared libraries stay on the same contracts.
The application uses Vercel and Supabase Postgres, Auth and Storage. Research runs are explicit CLI or headless worker operations. See Architecture for boundaries and limits.
| Path | Role |
|---|---|
apps/web |
Public Next.js app on Vercel (live at blackstory.app); private admin/research console at /admin, staff-gated |
apps/api-public |
Public read, search, and location API (in-repo; Cloud Run deploy unverified) |
apps/api-submissions |
Corrections and contribution intake |
apps/api-internal |
Publication and internal control API |
apps/docs |
This GitHub Pages site (static export) |
apps/mobile |
Expo mobile app (isolated npm lockfile) |
workers/* |
Python research, publication, and security workers |
packages/* |
Shared TypeScript libraries (@repo/*) |
supabase/ |
Postgres migrations and Supabase project config for blackstory-app |
infra/* |
GitHub governance and optional service-control configuration |
docs/ |
Current authority, methodology and operational runbooks |
brand/ |
Brand masters (lockups, symbols, tokens, guide) |
Stable code prefixes
Package scope is brand-agnostic so a product rename does not rewrite the monorepo:
| Layer | Stable value |
|---|---|
| npm packages | @repo/* |
| CSS / tokens | ds-* / --ds-* |
| Env break-glass | APP_* |
User-visible strings and assets come from identity helpers and
apps/web/public/brand/ role-based paths.
Where the depth lives
This docs site is the orientation layer. Deeper operating notes stay in the repository:
- Architecture (current stack):
docs/architecture.md - Current engineering contract:
docs/decisions-carryover.md - Methodology:
docs/methodology/ - Research pipeline:
docs/research/ - Security:
docs/security/ - Runbooks:
docs/runbooks/