at main
4 folders
6 files
structure: split src into data/ + ui/; nest lexicons by NSID
src/ was a flat splat of 17 files. give it the boundary that was already there:
- src/data/ — atproto + microcosm services, no DOM (net, oauth, pds, clients,
source, lineage, prefs, moderation, explore). a closed set: never imports ui/.
- src/ui/ — draw, dom, theme, login.
- root keeps the entry + the two views: boot.ts, main.ts, display.ts, style.css.
lexicons mirror the NSID like the official repos: lexicons/tech/waow/doodl/*.json
(nothing imports them; the collection strings are hardcoded, so zero code impact).
pure reorg — no behavior change, build + check green. main.ts (1289 lines) is
still the elephant; a remix/gallery/settings split is the next, separate pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
structure: split src into data/ + ui/; nest lexicons by NSID
src/ was a flat splat of 17 files. give it the boundary that was already there:
- src/data/ — atproto + microcosm services, no DOM (net, oauth, pds, clients,
source, lineage, prefs, moderation, explore). a closed set: never imports ui/.
- src/ui/ — draw, dom, theme, login.
- root keeps the entry + the two views: boot.ts, main.ts, display.ts, style.css.
lexicons mirror the NSID like the official repos: lexicons/tech/waow/doodl/*.json
(nothing imports them; the collection strings are hardcoded, so zero code impact).
pure reorg — no behavior change, build + check green. main.ts (1289 lines) is
still the elephant; a remix/gallery/settings split is the next, separate pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>