v0.1.11: Opt-in local SQLite mirror of the frozen Form 477 corpus
Opt-in local SQLite mirror of the frozen Form 477 corpus
Form 477 queries can now be served from a local mirror instead of the live Socrata API (#8); the mirror is off by default and everything falls back to live behavior when disabled or uncovered.
Added:
FCC_MIRROR_ENABLED/FCC_MIRROR_PATHenv vars — off by default; path defaults todata/fcc-mirrormirror:initscript — state-scoped (--states 11,53) or full-corpus (--full) one-time ingest; idempotent and resumablemirror:verifyscript — per-store sync state, row counts, integrity checks, coverage roster- Coverage-gated serving with silent live-API fallback; provider search/summary and cbsa/tribal/nation geographies require a full ingest
- FTS5 provider dimension backing
fcc_search_providers(word-prefix name matching on the mirror) better-sqlite3^12.0.0 optional peer dependency for the Node runtime; Bun uses the built-inbun:sqlite
Changed:
- Dockerfile ships the mirror lifecycle scripts and a writable
data/directory for in-container bootstrap
156 tests pass; bun run devcheck clean.