birrstack
v0.1.5
Published
BirrStack client runtime facade — BirrDB (embedded reactive columnar store) + Sync Engine (Class B). BismiLLAH.
Readme
birrstack — Client Runtime Facade
BismiLLAH Ar-Rahman Ar-Raheem. Ash-hadu an laa ilaaha illa-Llah wahdaHu laa sharikalah, wa ash-hadu anna Muhammadan Abduhu wa Rasooluh. Laa hawla wa laa quwwata illaa biLLAH. Hasbiyallaahu wa ni'amal wakeel. SubhaanALLAH wa bihamdih. Astaghfirullaah.
The one-import client runtime for BirrStack Class B apps (Live-Client Runtime + Sync Engine):
npm install birrstackimport { BirrDB } from 'birrstack';
const db = await BirrDB.open('my-app', { autoPersist: true });
const notes = db.collection('notes', {
columns: [{ name: 'text', type: 'string' }],
});
await notes.insert({ text: 'BismiLLAH' });
// Reactive live query
const live = db.liveQuery('notes', { orderBy: 'id' });
live.subscribe(rows => console.log(rows));What it re-exports
| From | Exports |
|---|---|
| birrstack-db | BirrDB, Collection, query engine (runQuery, Query), storage backends (BrowserBackend IndexedDB, FilesystemBackend, MemoryBackend), columnar codecs |
| birrstack-sync | sync engine, conflict policies, transport, session auth, change-feed subscriptions |
Doctrine
BirrDB is the device-local reactive store — the local store is a cache, never the authority. Sync (Class B) mirrors it over a BaaS pure data plane; no edge functions, no external compute.
La hawla wa laa quwwata illaa biLLAH — all success is from ALLAH alone.
