Skip to content

gitsheets

A git-backed document store for low-volume, high-touch, human-scale data.

Records are TOML files in a git repo, organized by a per-sheet path template. Every mutation is a commit — the commit log is the audit log. Schemas live alongside the data; validation runs on every write. Branches give you propose-review workflows for free.

npm install gitsheets

Targets Node.js ≥ 20 and Bun ≥ 1. ESM-only. CLI installs as gitsheets and git-sheet.

Get started

  • Quick startnpm install gitsheets, declare a sheet, write a record, read it back. ≤ 5 minutes.
  • Concepts — Repository, Sheet, Path Template, Transaction, Store, Index, Push Daemon. The vocabulary every consumer needs.

Reference

  • CLI referencegit sheet <command>, global flags, exit codes.
  • API reference — public exports + pointers into the per-symbol spec.
  • Path templates — syntax, recursive fields, query pruning, invalid-char handling.
  • Validation — JSON Schema in .gitsheets/<sheet>.toml, optional Standard Schema layering.

Recipes

Migrating from pre-v1.0

If you’re updating from a pre-v1.0 internal install, the migration guide covers the breaking changes (legacy GitSheets class removed, HTTP server removed, ESM-only, validation reshape).

Where the contracts live

specs/ is the source of truth. The docs you’re reading are the consumer-facing tour; the specs are the authoritative API + behavior contract. When in doubt, the spec wins.

License

Apache-2.0. See LICENSE.