Skip to the content.

ADR-0006: SQLite (better-sqlite3) for local Studio storage

Status: Accepted Date: 2026-08-14

Context

Studio needs local persistent storage for:

Options: JSON files, SQLite, IndexedDB (renderer), LevelDB.

Decision

Use better-sqlite3 (synchronous SQLite for Node.js) in main process.

Rationale

Schema

See SYSTEM-DESIGN.md §8.1

Tables: chat_history, skill_drafts, workflows, scan_cache.

What is NOT in SQLite

Consequences

Alternatives considered