@owservable/sqlite
This project is maintained by owservable
SQLite backend adapter for @owservable/core: live data via journal-table triggers over MikroORM entities — including changes made by other processes writing to the same database file.
Built for scenarios like a live UI over a SQLite file that backend processes (e.g. mastra.ai agents and workflows) write to, desktop/electron tools, and local-first apps.
IObservableBackend over a MikroORM entity — change feed, queries with Mongo-style operators, relation populationinstallSqliteTriggers attaches AFTER INSERT/UPDATE/DELETE triggers writing to a _owservable_changes journal — SQLite triggers fire regardless of which connection or process writes, so external writers are fully visibleupdateSchema: false mode: map entities over tables owned by another tool (e.g. mastra’s storage schema) — the connector attaches triggers and registers backends without touching DDLupdateSchema({safe: true}), trigger install, poller and backend registration in one callnpm install @owservable/core @owservable/sqlite @mikro-orm/core @mikro-orm/sqlite
or
pnpm add @owservable/core @owservable/sqlite @mikro-orm/core @mikro-orm/sqlite
Unlicense — see LICENSE.