A JavaScript ORM inspired by Laravel's Eloquent, providing a fluent query builder for MySQL and PostgreSQL. Currently at version 1.8.7, it supports basic CRUD operations, relationships (hasMany), eager loading, and transactions. The library is experimental and may change structure significantly. It offers both ESM and CJS modules with built-in TypeScript declarations. Differentiators include a Laravel-like syntax, environment-based configuration, and a driver-based architecture supporting multiple databases.
npm install fluent-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows full setup with PostgreSQL driver, model definition with hasMany relationship, and a basic query execution.
Ensure driver packages are installed and correctly passed to configurator.use().
Switch to configurator.configure() for all connection settings.
Use Model.create() for single insert with id return, or Model.insert() for bulk inserts without ids.
Always wrap transaction logic in try/catch and ensure rollback() is called on error.
Use import { configurator } from 'fluent-orm'Install the appropriate driver: npm install fluent-mysql
Ensure class extends Model and is exported: export default class Person extends Model
No dependency data recorded yet.