How wad-stonks/broke-oclock works
LoBangers is a Singapore food-deal discovery project, but the README says its public discovery, community, and merchant flows are still incomplete. The implemented user-to-result paths shown here are ingestion administration (run imports, review drafts, inspect runs) and platform administration (manage accounts, merchant approvals, stall grants, and audit history). The graph preserves documented capabilities without presenting planned features as working flows. Evidence is limited to the supplied excerpts, SOURCE INDEX references, and README; several subsystem links are therefore omitted or marked unverified.
Main entry points: index.ts Typed API client · app.ts Express application · IngestionAdminPage.vue Ingestion dashboard · service.ts Import processing
Components 23
Web administration
- Ingestion dashboard
apps/web/src/pages/IngestionAdminPage.vue - Ingestion panels
apps/web/src/modules/ingestion-admin - Platform dashboard
apps/web/src/pages/PlatformAdminPage.vue - Platform admin state
apps/web/src/modules/platform-admin
API and REST
- Express application
apps/api/src/app.ts - REST router
apps/api/src/rest/root.ts - Ingestion handlers
apps/api/src/rest/routers/ingestion - Run handler
apps/api/src/rest/routers/ingestion/handlers/run-ingestion.ts - Platform admin handlers
apps/api/src/rest/routers/platform-admin
Ingestion domain
- Import processing
apps/api/src/modules/ingestion/service.ts - Post parser
apps/api/src/modules/ingestion/parser.ts - Ingestion runtime
apps/api/src/modules/ingestion/runtime.ts - Review policy
apps/api/src/modules/ingestion/review-policy.ts
Platform administration
- Admin operations
apps/api/src/modules/platform-admin
Shared services
- Typed API client
packages/api-client/src/index.ts - Authentication
packages/auth/src/server.ts - MongoDB via Prisma
packages/db/src/client.ts - MoneyDigest source
packages/integrations/src/moneydigest-client.ts - OneMap search
packages/integrations/src/onemap-client.ts - Photo upload
packages/storage/src/server.ts - Email transport
packages/email/src/server.ts - REST contracts
packages/contracts/src/ingestion.ts
Other components
- Admin user
Connections 24
- Admin user → Ingestion dashboard: uses
- Ingestion dashboard → Typed API client: requests data
apps/web/src/pages/IngestionAdminPage.vue - Ingestion dashboard → Ingestion panels: renders
apps/web/src/pages/IngestionAdminPage.vue - Ingestion panels → Typed API client: loads runs
apps/web/src/modules/ingestion-admin/IngestionRuns.vue - Typed API client → REST contracts: validates with
packages/api-client/src/index.ts - Express application → Authentication: creates
apps/api/src/app.ts - Express application → REST router: mounts
apps/api/src/app.ts - Express application → Ingestion runtime: creates
apps/api/src/app.ts - Run handler → Import processing: runs
apps/api/src/rest/routers/ingestion/handlers/run-ingestion.ts - Import processing → Post parser: parses posts
apps/api/src/modules/ingestion/service.ts - Import processing → Ingestion runtime: fetches posts
apps/api/src/modules/ingestion/service.ts - Import processing → MongoDB via Prisma: reads and writes
apps/api/src/modules/ingestion/service.ts - Ingestion runtime → MoneyDigest source: fetches source posts
- Ingestion dashboard → OneMap search: searches locations
- Admin user → Platform dashboard: uses
- Platform dashboard → Platform admin state: uses
- Platform admin state → Typed API client: requests admin data
- Typed API client → Platform admin handlers: calls admin endpoints
- Platform admin handlers → Admin operations: delegates operations
- Admin operations → MongoDB via Prisma: updates records
- Express application → Photo upload: mounts upload router
apps/api/src/app.ts - Authentication → MongoDB via Prisma: persists sessions
packages/auth/src/server.ts - Ingestion handlers → REST contracts: uses schemas
apps/api/src/rest/routers/ingestion/handlers/run-ingestion.ts - Platform admin handlers → REST contracts: uses schemas
apps/api/src/rest/routers/platform-admin/review-merchant-request.ts