@fonderie/store
v0.3.0
Published
Database abstraction layer — IStoreAdapter interface, PostgreSQL driver, sequential migration runner, and SQL tagged-template helpers. The only package every other module depends on.
Maintainers
Readme
@fonderie/store
The database brick: an IStoreAdapter interface, a PostgreSQL driver,
sequential migrations, and a tagged-template sql helper that makes
unparameterized queries impossible to write by accident.
Install
npm install @fonderie/storeUse
import { sql, PGAdapter } from '@fonderie/store';
const { text, params } = sql`SELECT * FROM users WHERE id = ${userId}`;
const rows = await store.query(text, params);MigrationRunner applies each module's migrations in order —
every Fonderie brick ships its own schema and installs it through this
package.
Why this exists
You've shipped this plumbing before — auth, teams, billing, messaging —
and the next project will ask for it again. Fonderie packages it once:
plain TypeScript modules for
@fonderie/core,
PostgreSQL-backed, self-hosted, MIT. No external control plane, no
per-seat anything. Register the modules you need; skip the ones you don't.
This package owns how everything persists. The SQL boundary, the PostgreSQL adapter, and the migration runner through which every brick installs its schema.
Browse the whole set at fonderiejs/sdk · follow @fonderiejs
License
MIT © Fonderie, Inc.
