knight-orm

JSON →
library 1.0.0-rc.1 ·javascript
verified Jun 5, 2026

A lightweight, non-invasive ORM for TypeScript/JavaScript that stores object trees into relational databases. Current version is 1.0.0-rc.1 (release candidate). Uses knight-criteria for query definitions and knight-sql for SQL generation. Designed to be minimal and flexible, supporting PostgreSQL, MySQL, and SQLite. Unlike heavier ORMs, it keeps domain objects free from framework annotations, using a separate schema definition for mapping. Supports CRUD operations, transactions via companion packages, and optional type safety with TypeScript.