Architecture handbook
How this site is built, written down properly.
Thirty-four thousand words on a Next.js and Firestore application with no server between the browser and the database. Written to be studied in three sittings, and to be searched forever after.
- 29
- documents
- ~3 h
- cover to cover
- 15
- diagrams
- 229
- source files indexed
Read it in the reader, not on GitHub
The handbook ships with its own reader: full-text search across every section, a command palette, the source of all 229 indexed files with line-level links back into the prose, a link graph, and definitions on hover. It works offline once loaded.
Session 1 — orientation
45 minKnow what the system does and how it is shaped. Includes getting it running locally, which makes every later document mean more.
Session 2 — the data spine
40 minWhere data lives, who may touch it, how it moves. The most valuable session in the handbook — if you only ever read one, read this one.
Session 3 — the request
35 minTrace one request end to end, by function name. After this you are productive; everything else is consulted, not studied.
Reference
on demandNot to be read front to back. Look things up in them — the reader's search and command palette exist for exactly this.
- Code-Level ReferenceA function's exact signature, its side effects, and its callers.20 min
- Build, Test, Run & DeployScripts, tests, deployment. Read the seeding section before running npm run seed — it is destructive.15 min
- Known Gaps & Open QuestionsSomething looks wrong? It may already be known. Worth ten minutes early.11 min
- Reverse IndexYou have a symbol name and want its location.11 min
- GlossaryA term of art is unfamiliar.8 min
Deep dives
as neededSelf-contained. Read one only when you are assigned work inside it.
- Component & Package ArchitectureThe component tree, and the Code Observatory's four-stage pipeline.9 min
- Module Design & CompositionHow the lib modules compose, and where the seams are.9 min
- Mathematical FoundationThe ranking score, exponential freshness decay, log-compressed node weighting, golden-angle phyllotaxis.15 min
- Reading Path — Start HereThe full path, with checkpoints to test your understanding and code to read alongside each document.13 min