A lightweight ORM for PostgreSQL, currently in early development (v0.0.26). It provides a model factory with CRUD operations, hooks (pre/post), relationships, and streaming support. Unlike more mature ORMs like Sequelize or TypeORM, Kanso is minimal and unfinished, lacking transactions, query builders, and migration tools. Release cadence is irregular.
npm install kanso-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a ModelFactory, define a User model with schema and methods, create a user, and save to DB.
Do not use in production; wrap in try/catch and sanitize logs.
Use 'schema' key instead of 'attributes'.
Avoid using 'include' until stable; prefer raw SQL for joins.
Run 'npm install kanso-orm' and ensure import uses ESM syntax.
Use 'import { ModelFactory } from 'kanso-orm'' instead of require.No dependency data recorded yet.