guruORM (v2.1.24) is a Node.js ORM inspired by Laravel's Eloquent and Illuminate Database, offering a fluent query builder, ActiveRecord models, migrations, seeding, and support for MySQL, PostgreSQL, SQLite, and SQL Server. It ships TypeScript types and requires peer dependencies for each database driver (pg, mysql2, better-sqlite3, tedious). Compared to Sequelize or TypeORM, guruORM focuses on Laravel-like syntax and zero-config setup for both JavaScript and TypeScript projects. Recent versions have been stable, with regular updates.
npm install guruormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a guruORM connection, creates a users table via Schema, defines a User model, inserts a record, and fetches all users.
Install the required driver package (e.g., npm install pg for PostgreSQL).
Declare properties inside the class body with 'protected' or in constructor.
Always call bootEloquent() before using DB, Schema, or any model.
Use DB.select('SELECT * FROM users WHERE id = ?', [id]) instead.Upgrade Node.js to version 16 or higher.
Run: npm install pg
Use: import { Capsule } from 'guruorm'Add a connection with capsule.addConnection(...) before capsule.bootEloquent().
Ensure bootEloquent() is called and model has table property defined.