How ndregs-cloud/project works
NOVA is a TypeScript/Fastify backend for Stories, profiles, social actions, support and security intake, and moderation, backed by PostgreSQL with optional S3-compatible media storage. The principal workflow is a client request through API routing and authentication/validation to a domain route and database; public Story reads and selected writes are described, but route availability is not evidence of production readiness. Production startup is documented to fail closed when the required moderation database contract is absent. Edges reflect the sampled app wiring, source index references, or README; unsampled route internals are not inferred.
Main entry points: app.ts Fastify app · internal-audit.ts Staff access audit · feedback.ts Feedback intake · security-reports.ts Security intake
Components 22
API runtime
- Fastify app
src/app.ts - OIDC identity
src/auth.ts - Request validation
src/validation.ts - Error responses
src/errors.ts - Rate limiting
src/rate-limit.ts
Content and community
- Profiles
src/routes/profiles.ts - Stories and Discover
src/routes/stories.ts - Social actions
src/routes/social.ts - Comments
src/routes/comments.ts - Media routes
src/routes/media.ts
Trust and support
- Content reports
src/routes/reports.ts - Moderation
src/routes/moderation.ts - Feedback intake
src/routes/feedback.ts - Security intake
src/routes/security-reports.ts - Report metrics
src/routes/report-metrics.ts - Staff access audit
src/routes/internal-audit.ts
Persistence and media
- PostgreSQL
- S3 media storage
src/storage/s3.ts - Media revocation worker
src/media-key-revocations.ts
Other components
- API client
- OIDC provider
- S3-compatible store
Connections 30
- API client → Fastify app: sends requests
README.md - Fastify app → OIDC identity: registers auth
src/app.ts - Fastify app → Rate limiting: registers limits
src/app.ts - Fastify app → Profiles: registers routes
src/app.ts - Fastify app → Stories and Discover: registers routes
src/app.ts - Fastify app → Social actions: registers routes
src/app.ts - Fastify app → Comments: registers routes
src/app.ts - Fastify app → Content reports: registers routes
src/app.ts - Fastify app → Report metrics: registers route
src/app.ts - Fastify app → Feedback intake: registers routes
src/app.ts - Fastify app → Security intake: registers routes
src/app.ts - Fastify app → S3 media storage: creates storage
src/app.ts - Fastify app → PostgreSQL: validates principals
src/app.ts - OIDC identity → OIDC provider: verifies tokens
src/auth.ts - Profiles → PostgreSQL: queries
src/routes/profiles.ts - Stories and Discover → PostgreSQL: queries
src/routes/stories.ts - Social actions → PostgreSQL: queries
src/routes/social.ts - Comments → PostgreSQL: queries
src/routes/comments.ts - Media routes → PostgreSQL: queries
src/routes/media.ts - Content reports → PostgreSQL: queries
src/routes/reports.ts - Moderation → PostgreSQL: runs transactions
src/routes/moderation.ts - Feedback intake → PostgreSQL: reads and writes
src/routes/feedback.ts - Security intake → PostgreSQL: queries
src/routes/security-reports.ts - Report metrics → PostgreSQL: queries
src/routes/report-metrics.ts - Moderation → Staff access audit: records access
src/routes/moderation.ts - Feedback intake → Staff access audit: records access
src/routes/feedback.ts - Security intake → Staff access audit: records access
src/routes/security-reports.ts - Report metrics → Staff access audit: records access
src/routes/report-metrics.ts - S3 media storage → S3-compatible store: reads and writes
src/storage/s3.ts - Fastify app → Media revocation worker: runs worker
src/app.ts