@5no/pg-model (formerly 5no-pg-model)

JSON →
library 1.3.1 ·javascript renamed
verified Jun 4, 2026

A JavaScript ORM for PostgreSQL that provides a declarative schema definition, automatic query building, and relation handling including one-to-one, one-to-many, and join relationships. Version 1.3.1 is the last release under the 5no-pg-model package; it has been renamed to @5no/pg-model. The library supports Node 8+ and uses @5no/pg-builder for query generation and @5no/schema for schema validation. It offers auto-filling fields for created/updated timestamps, cascade operations on relations, and a Manager for CRUD operations. Differentiates from heavier ORMs like Sequelize by being lightweight and focused on PostgreSQL only, with a minimal API surface.