The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Spreadsheet DB listing page.
Keep your app fast with SQLite. Keep your workflow visible in Google Sheets.
A typed repository and safe write layer for Google Sheets-backed MVPs: your application reads and writes local SQLite through typed entities, and committed changes are asynchronously projected to Google Sheets for human review and lightweight collaboration.
npm · Quick start · Issues
Hikoutei gives TypeScript applications a typed entity API backed by local SQLite, then asynchronously synchronizes committed changes to Google Sheets.
Your application does not wait on Google Sheets for normal reads and writes. Sheets remains available for inspection, operations, and lightweight human collaboration.
Hikoutei is not a raw Sheets API wrapper, not a replacement for PostgreSQL, and it does not treat Google Sheets as the authoritative application database. SQLite is the source of truth; Sheets is the human-facing view.
Hikoutei does not replace google-spreadsheet or @googleapis/sheets — it
sits one level above them. If you only need raw spreadsheet access, use the API
client directly.
| Capability | Hikoutei | google-spreadsheet | @googleapis/sheets |
|---|---|---|---|
| Typed entity model | ✅ | ❌ | ❌ |
| Fast local application reads | ✅ | ❌ | ❌ |
| Async projection to Sheets | ✅ | ❌ | ❌ |
| Durable write retry and deduplication | ✅ | ❌ | ❌ |
| Conflict-aware Sheet updates | ✅ | ❌ | ❌ |
| Direct row and cell manipulation | Limited | ✅ | ✅ |
| Full Google Sheets API access | Provider only | Partial | ✅ |
Installing the library does not touch Google Cloud — it runs local-only (SQLite) by default. Run the setup command below only when you want Sheet sync.
One-time, interactive. Install the gcloud CLI, then:
This creates the Cloud project, service account, key, and spreadsheet, and
writes .env for you. Without HIKOUTEI_SYNC_SPREADSHEET_URL,
createTypedSheets() stays local-only (SQLite). Details, credential pools,
quota guidance, and manual setup: Google Sheets setup.
Define a scalar entity and use the local SQLite authority through a request-local manager.
More reads, transactions, and operators: Quick start.
Writes commit to local SQLite immediately — the request never waits on Google. Human edits in the Sheet flow back through polling — accepted into SQLite or recorded as conflicts, never silently overwritten. The full pipeline (outbox, delivery, conflict handling) is covered in Write and synchronization flow.
Hikoutei is released under the MIT License.