Architecture Visualization
Testimonial Platform
End-to-end view of the current app: browser frontend, HTTP API, domain modules, infrastructure adapters, database, background jobs, provider boundaries, and admin operations.
System Diagram
Layer Responsibilities
Frontend
frontend/web
- Login/register UI
- User dashboard
- Admin queues, pagination, CSV exports, notes
HTTP API
src/server.js
- Routes, sessions, CSRF, validation
- Proof upload/download
- Webhook placeholders
Domain Modules
src/modules
- Identity, tasks, submissions, review
- Wallet ledger and payouts
- Risk, audit, admin notes
Infrastructure
src/infrastructure
- Postgres/memory store
- R2/local proof storage
- TextBee/dev OTP, notifications, jobs
Database
docs/db-schema.sql
- Neon PostgreSQL
- Versioned migration baseline
- Audit-first operational records
Production Boundaries
docs/deployment-profile.md
- Web process
- Jobs process
- Provider adapters and env validation