Naomi is a simple, productive ORM for Node.js (v2.2.1) that handles repetitive CRUD tasks while allowing custom SQL queries. It uses mongo-like query syntax and leverages existing database metadata instead of redefining schemas. It supports MySQL (via naomi-mysql connector) and exposes both promise and callback APIs. Key differentiators: schema auto-discovery, lightweight design, and a unified interface for CRUD and native queries. Development appears slow with no recent updates, suggesting maintenance mode.
npm install naomiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to MySQL, reverse-engineers schema from 'employees' table, and fetches all records.
Upgrade Node.js to version 4 or later.
Ensure database schema exists before using reverseEngineer().
Use .then()/.catch() or async/await instead of callbacks.
Process stream chunks with backpressure or use pagination.
npm install naomi-mysql --save
Use const naomi = require('naomi') (CommonJS).