A near-zero runtime ORM and migration tool for PostgreSQL, targeting Node.js and TypeScript. Version 2.59.3, with a weekly release cadence. Unlike traditional ORMs like TypeORM or Sequelize, Aurora ORM avoids decorators and reflect-metadata, enabling compatibility with modern transpilers like SWC and ESbuild. It uses a Data Mapper pattern, provides type-safe column mappings, supports transactions, relations, indexes, and automated migrations. The library is authored primarily for personal use and is not intended as a fully open-source community project.
npm install aurora-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to PostgreSQL, defines a User model with type-safe mapping, creates a user, and retrieves all users.
Evaluate risks; consider using more established ORMs for production-critical applications.
Use try/catch around await connect(...) to handle connection errors.
Replace `findOne(1)` with `findOne({ id: 1 })`.Use `import` statements or set `"type": "module"` in package.json.
Use named import: `import { connect } from 'aurora-orm'`.Install tsx: `npm install -D tsx`