← knowledge.oriz.in

Canonical store — JSONL in chirag127/oriz-me-data

architecture architecturedatajsonlgitcanonicallifestream

Canonical store — JSONL in chirag127/oriz-me-data

Concept

The lifestream — every listen, watch, read, commit, run — is stored as JSONL files in the chirag127/oriz-me-data git repo. That repo is the authoritative store. Firestore, Turso, R2 are caches. If they disappear, you git clone the canonical and rebuild. If git disappears, civilisation has bigger problems.

How it works

Why this shape

Three reasons git wins over a hosted DB as canonical:

  1. Survival. Per the §16 100-year strategy, primary providers die. Git is mirrorable to anywhere with one command.
  2. Cost. A lifestream of decades of events fits comfortably under GitHub's free-repo-size limits as JSONL.
  3. Auditability. Every change is a commit. There is no "who updated this row?" — the answer is git blame.

Cloud DBs are great for query latency. Canonical-via-git plus caches-rebuilt-on-deploy gets the latency without giving up the durability story.

Cross-refs