A lightweight TypeScript ORM with a focus on simplicity and type safety. Current stable version is 2.1.3. It provides basic CRUD operations and a simple query builder. Differentiates from heavier ORMs like TypeORM or Sequelize by having a minimal API surface and zero dependencies. Suitable for small to medium projects that need quick setup without complex migrations or relationships.
npm install kay-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to an in-memory SQLite database, defines a User model, and demonstrates create, read, update, and delete operations.
Execute CREATE TABLE statements before using models, or use a migration tool like knex.
Use only SQLite. For other databases, consider using TypeORM or Sequelize.
Update to use 'new KayORM({ dialect: 'sqlite', database: 'file.db' })' and await 'connect()'.Use 'model.findById(id)' instead of 'model.findOne({ id })'.Upgrade to version 2.x and ensure you await the connect method.
Add dialect: 'sqlite' to the config object.
Add static get tableName() { return 'users'; } to your model class.No dependency data recorded yet.