Omni ORM is a next-generation TypeScript ORM spanning MySQL, MSSQL, and PostgreSQL with a minimal footprint (~500b). Version 2.0.2 is the current stable release, relying on decorators and emitDecoratorMetadata for operation. It is designed exclusively for TypeScript and requires the reflect-metadata polyfill and injector-next as a peer dependency. Differentiators: ultra-small bundle, multi-dialect support, and a promise-heavy API. Release cadence is irregular; breaking changes are expected as the API is not yet final.
npm install omni-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates setup, entity definition with decorators, and a simple findOne query against a PostgreSQL database.
Pin to exact version and test upgrades thoroughly
Add import 'reflect-metadata' at the top of your main file or tsconfig 'types' field
Enable both flags in tsconfig.json compilerOptions
Use only in Node.js environment
Maintain injector-next version as specified in peerDependencies
Set 'experimentalDecorators': true and 'emitDecoratorMetadata': true in tsconfig.json
Add import 'reflect-metadata' at the top of your entry file
Run 'npm install injector-next@^1.1.1'
Use import { OmniORM } from 'omni-orm'