ORMSO is a JavaScript object-relational mapper for SQLite (with extensibility to other databases) supporting object-to-database mapping, cross-database synchronization, and client data publishing. Current stable version is 0.0.151, released with pre-1.0 cadence meaning frequent breaking changes. Key differentiators: built-in sync between databases, and a publish layer for clients (with basic OData planned). Early-stage library, documentation sparse; not recommended for production without thorough vetting.
npm install ormsoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a SQLite database, define a model with ORMSO, sync schema, create and query records.
Pin exact version in package.json and test upgrades thoroughly.
Use named exports like `ORM` and `Model` instead of default import when possible.
Use `{ alter: true }` for safe migrations if supported, or backup database before sync.Use `import` syntax and ensure project is configured for ESM (type: 'module' in package.json).
Run `npm install better-sqlite3` alongside `ormso`.
Run `npm install better-sqlite3`.
Switch to `import` or use dynamic `import('ormso')` in a CommonJS context.Check version; use `import { ORM } from 'ormso'` instead.