Architecture
How DocMyRepos is built. The system overview, the sync engine that fills Postgres, the data model and the security model for untrusted documents.
Architecture
DocMyRepos is one Next.js application and one Postgres database. A sync engine copies parsed documents from GitHub into Postgres, and every page reads from Postgres only.
- System overview: components, request flow and trust boundaries.
- Sync engine: incremental sync, locks, coalescing, the removal rule and the scheduler.
- Data model: the tables and the weighted search vector.
- Security: the threat model for documents from third-party repositories.
The reasons behind the main choices are in Decisions.