# dresende/node-orm2

Object Relational Mapping

Repository: https://github.com/dresende/node-orm2
Canonical: https://ross.abutalabs.com/products/node-orm2
Homepage: http://github.com/dresende/node-orm2
Language: JavaScript
License: MIT
License Family: permissive
Topics: database, orm, mysql, postgresql, redshift, sqlite, mongodb
Last push: 2025-03-13T13:37:02+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 11, release rhythm 8, longevity 100
- inputs: {"age_days": 5028, "days_push": 538, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3045, forks 368 (observed 2026-08-28T04:07:39.480624+00:00)

## What it is
node-orm2 (npm package 'orm') is an object-relational mapping library for Node.js supporting MySQL/MariaDB, PostgreSQL, Amazon Redshift, SQLite, and beta MongoDB. It provides model definition, associations, validations, instance caching, and plugins for pagination, transactions, timestamps, and migrations.

## Use cases
- map javascript objects to relational database tables in node.js
- define models with validations and associations in node
- query mysql or postgresql without writing raw sql
- sync and drop database schemas from node models
- add pagination and transactions to a node.js orm

## When to choose
- maintaining a legacy node.js codebase already using the orm package
- you need a lightweight callback-style orm for mysql, postgres, or sqlite

## When to avoid
- starting a new project - the readme recommends TypeORM or Sequelize instead
- you need MongoDB support on modern node versions
- you need active community support or recent features

## Facets
- artifact type: library
- maturity: maintenance
- function: orm, database, database-driver
- domain: databases, backend, web-development, developer-tools
- platform: -
- tags: mysql, postgresql, sqlite, redshift, mongodb, model-associations, validations, not-actively-maintained, nodejs, javascript

## Member repositories
- dresende/node-orm2 (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.480624+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:28:57.719879+00:00, confidence not recorded.
  - readme: https://github.com/dresende/node-orm2 (fetched 2026-08-28T04:07:39.480624+00:00, sha f75db1268203)
  - homepage: http://github.com/dresende/node-orm2 (fetched 2026-08-29T09:44:23.438272+00:00, sha 3453c961ee81)
- Data as of 2026-08-30T08:39:29.467469+00:00.
