Undiorm (currently at version 0.0.101) is a lightweight PostgreSQL ORM and query builder in active development. It provides a CLI for generating entities, migrations, and TypeScript types from PostgreSQL schemas. Currently supports basic ORM operations and advanced features like triggers and views. Not yet production-ready; frequent breaking changes expected. Aims to compete with TypeORM and MikroORM by offering a simpler, TypeScript-first API with native ESM support.
npm install undiormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to PostgreSQL, defines an entity with decorators, and performs a basic insert operation using the repository pattern.
Update imports: import { Entity } from 'undiorm/decorators' instead of 'undiorm'.Use import syntax or enable ESM in your project (e.g., type: 'module' in package.json).
Set synchronize: false in production; use migrations for schema changes.
Replace createConnection with initialize: const conn = await initialize({...});Manually remove 'migrations' and 'entities' directories if no longer needed.
Use import syntax in an ESM context (type: 'module' in package.json) or dynamic import().
Ensure await on connection initialization before any repository operations.
Set 'experimentalDecorators': true and 'emitDecoratorMetadata': true in tsconfig.json.
Update to version >=0.0.50 or import directly from 'undiorm' (old version).