Lightweight browser SQLite ORM (sql.js) with schema generator CLI. Current stable version: 1.2.0. Released weekly. Key differentiators: spec-anchored schemas (SHA-256 pinned), persistent SQLite in IndexedDB, zero server dependencies, CLI for drift detection and schema generation. Alternative to localForage or raw sql.js for client-first apps requiring real foreign keys and prepared statements.
npm install allez-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes an in-browser SQLite database with two schemas, inserts data, and runs a JOIN query.
Ensure Node.js version >=18, or use a polyfill for older browsers.
Implement backup/export if persistence is critical.
Predefine all tables in schema files and regenerate them with the CLI.
Use 'insert' with ON CONFLICT handling or manually write SQL for complex upserts.
Edit the spec JSON and regenerate schemas via 'allez-orm from-json spec.json'.
Change 'const AllezORM = require("allez-orm")' to 'import { AllezORM } from "allez-orm"'.Use 'import { AllezORM } from "allez-orm"' instead of 'import AllezORM from "allez-orm"'.Ensure 'await AllezORM.init(...)' completes before accessing 'orm.table().
Verify parent record exists before inserting child; use transactions or batch upserts.