# Objection.js

SQL-friendly ORM for Node.js that works as a relational query builder on top of knex.


Source: https://findsoftware.frbit.cloud/objection/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://ditojs.github.io/objection/
- repository: https://github.com/ditojs/objection
- docs: https://ditojs.github.io/objection/guide/
- plugins: https://ditojs.github.io/objection/guide/plugins.html

### Identity

- status: active
- maintainer: Sami Koskimäki
- maintainerType: unknown
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: library
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: node 20
- basedOn: knex

### Content

- contentStore: not applicable
- databases: sqlite, postgres, mysql
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 4
- latestReleaseDate: 2026-11-05

### Adoption

- githubStargazers: 17
- packagistDownloads: not applicable
- npmWeeklyDownloads: 301963
- contributors: 169
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2988
- dependentPackages: 394

### Sources

- urls: https://ditojs.github.io/objection/ (read 2026-11-16)
- urls: https://api.github.com/repos/ditojs/objection (read 2026-11-16)
- urls: https://ditojs.github.io/objection/guide/ (read 2026-11-16)
- category: https://github.com/ditojs/objection/blob/main/README.md (read 2026-11-16)
- category: https://github.com/ditojs/objection/blob/main/README.md (read 2026-11-16)
- basedOn: https://github.com/ditojs/objection/blob/main/README.md (read 2026-11-16)
- language: https://api.github.com/repos/ditojs/objection (read 2026-11-16)
- runtime: https://ditojs.github.io/objection/guide/ (read 2026-11-16)
- runtimeMin: https://github.com/ditojs/objection/blob/v4.4.3/package.json (read 2026-11-16)
- databases: https://github.com/ditojs/objection/blob/main/README.md (read 2026-11-16)
- urls: https://ditojs.github.io/objection/guide/plugins.html (read 2026-11-16)
- installMethod: https://ditojs.github.io/objection/guide/ (read 2026-11-16)
- maintainer: https://github.com/ditojs/objection/blob/main/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/Vincit/objection.js/commits/0.1.0 (read 2026-11-16)
- license: https://api.github.com/repos/ditojs/objection (read 2026-11-16)
- licenseModel: https://github.com/ditojs/objection/blob/main/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/ditojs/objection/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/ditojs/objection/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/ditojs/objection (read 2026-11-16)
- contributors: https://api.github.com/repos/ditojs/objection/contributors?per_page=1 (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/objection (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/objection (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/objection (read 2026-11-16)

## Notes

Objection.js is an ORM for Node.js that is built on knex, the SQL query builder, so the databases knex supports can be used through it. The project calls it a relational query builder. Its README lists declarative models with relationships between them, eager loading and transactions among its features, and it ships TypeScript typings, optional JSON schema validation, and a way to store complex documents as single rows.

## Worth knowing

The original repository, Vincit/objection.js, still exists under the same project name. The project says development continues at ditojs/objection, the repository this record names.

Objection is an ES module. CommonJS code can still load it with require.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
