Objection.js
Reasonable, with limits. 9th of 10 ORMs and query builders.
Objection.js is a mature, SQL-friendly ORM built on Knex. Its long-time maintainer revived it in 2026 in a new fork, ditojs/objection, which shipped v4 in October. It still works well for existing codebases. For new projects, Kysely, Drizzle or MikroORM give stronger typing, more momentum and a safer long-term bet.
Best for: Teams that already run Objection or Knex and want relation graphs (eager loading, insertGraph, upsertGraph) on top of plain SQL.
Scores
Overall5.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
It is a capable, newly active ORM with a strong graph API. It rests on one maintainer in a new fork, it loses ground against the category, and its typing is weaker than Kysely's or Drizzle's. Keep it where it runs. For new work, pick Kysely or Drizzle, or MikroORM for a full ORM. The range is wide because the 2026 revival could last, or it could stall again.
- peers downloads: Kysely, Drizzle and Prisma grow 5-23x per year; Objection grows 1.6x
- github.com/ditojs/objection/releases: v4 released Oct 2026, with active fixes
- github.com/Vincit/objection.js/discussions/2463: Single-maintainer governance and the fork
GPT-6.2 Sol: 6.6, likely 5.4 to 7.7
Objection is a reasonable choice for a new Node.js service that already uses Knex and needs to load and write related records. Drizzle is a stronger default for teams that want SQL-like queries alongside TypeScript schema definitions and generated migrations. Renewed maintenance improves the outlook, while concentrated ownership, slow relative adoption, and limited independent experience with 4.4.3 keep the recommendation qualified.
- github.com/ditojs/objection/releases/tag/v4.0.0: Modernizes graph writes and TypeScript while retaining Knex.
- orm.drizzle.team/docs/overview: Drizzle combines relational and SQL-like queries with TypeScript schema and migration tools.
- github.com/ditojs/objection/actions: Shows continued maintenance and a concentrated release history.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio; peers: Install growth trails the catalog median and the leading SQL peers.
Needed by many5.7
How many developers need a tool for this job?
Claude Opus 5.5: 5.5, likely 4.5 to 6.5
Most backend JS developers need database access. This project serves only SQL databases, through Knex on Node, and its model-and-relations style suits a smaller group than the whole category.
- github description: An SQL-friendly ORM for Node.js
- prisma.io/dataguide/database-tools/top-nodejs-orms-query-builders-and-database-libraries: Described as a relational query builder built on Knex
GPT-6.2 Sol: 5.8, likely 4.7 to 6.9
SQL access is a common backend need, and Objection covers PostgreSQL, SQLite, and MySQL across Node.js frameworks. Its fit is narrower for teams that want generated migrations or use a different runtime. The survey measures database use across developers, so the share that needs this particular workflow is an estimate.
- survey.stackoverflow.co/2026/technology/data: PostgreSQL, SQLite, and MySQL are widely used among respondents.
- github.com/ditojs/objection: Documents the Node.js and Knex scope and separate schema management.
Helps a lot6.8
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Its graph methods and close-to-SQL query building are mature, and v4 fixed real graph bugs and added strict atomic writes. Its types are hand-declared on model classes and infer much less than Kysely or Drizzle, which costs the most in TypeScript projects. Because the API has been stable for years, AI agents write good code for it, but they may not know v4's changes.
- github.com/ditojs/objection/releases: v4.0 to v4.4.3: graph rewrite, strict mode, fixes for hooks that could touch all rows
- Objection TypeScript model typing: Columns are declared manually on classes; there is no schema-inferred result typing
GPT-6.2 Sol: 7.5, likely 6.3 to 8.6
Version 4 combines flexible Knex queries with eager loading and nested writes, and it improves column checks and result inference. The docs provide practical examples for developers and coding agents, and 4.4.3 fixes a case where mixed loading strategies silently dropped relations. Drizzle offers a more integrated TypeScript schema and migration workflow. The independent benchmark and user reports mostly cover 3.x, so they give limited evidence about performance and developer experience on 4.4.3.
- github.com/ditojs/objection/releases/tag/v4.0.0: Documents rewritten graph writes, column checks, and narrower select results.
- github.com/ditojs/objection/releases/tag/v4.4.3: Fixes missing relations when joined and fetched loading are mixed.
- ditojs.github.io/objection/guide/query-examples.html: Shows model queries, transactions, and relation operations.
- reddit.com/r/node/comments/1v5eelx/which_orm: Users praise relation support and report limitations in Knex-based typing before v4.
- orm.drizzle.team/docs/overview: Documents TypeScript schema definitions and migration generation.
Holds up over time5.5
Will it still be a good choice in two years?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
Activity is high again in 2026: 526 commits, 21 releases and a v4 major. This came after a lull with no release from September 2024 to mid-2026. One maintainer, with no stated funding, carries it in a 17-star fork made after Vincit removed his access, so control of the project is unsettled. The original author moved on to build Kysely, and the ecosystem is moving towards typed query builders.
- github commitsLastYear / releasesLastYear: 526 commits, 21 releases
- github.com/Vincit/objection.js/discussions/2463: Author left in 2022; lehni maintained from 2023; he reported his access was removed on Oct 9, 2026 and forked
- github.com/ditojs/objection: README: development continues at ditojs; 3.x on a legacy dist-tag
- prisma.io/dataguide/database-tools/top-nodejs-orms-query-builders-and-database-libraries: Sep 2026: listed among libraries with little recent development; maintainer said in April he lacked time
GPT-6.2 Sol: 6.4, likely 4.9 to 7.8
The move kept the npm package in place, and the new repository ships frequent 4.x fixes and backports to 3.x. A November error report drew a prompt fix, but recent release and triage activity is concentrated around one maintainer. Version 4 also changes hooks and raises runtime requirements, and the evidence gives little visibility into funding or backup release access.
- github releasesLastYear, latestRelease, pushedAt: 21 releases in the snapshot, with a November patch and recent commits.
- github.com/ditojs/objection: Explains the move, maintenance continuity, and 3.x support.
- github.com/ditojs/objection/actions: Recent fixes and release tags are concentrated around one maintainer.
- github.com/ditojs/objection/issues/568: A November error report quickly drew a fix.
- ditojs.github.io/objection/release-notes/migration.html: Documents ESM requirements and changes to hooks and graph behavior.
Used widely4.1
How many use it, and is that growing?
Claude Opus 5.5: 4.5, likely 3.5 to 5.5
About 1.3M downloads in 4 weeks, up 1.6x in a year. The median ratio is 4.1, so it is losing ground fast, while Kysely and Drizzle grew more than 19x. Its 2,988 dependent repos mostly reflect older codebases. Many installs come through dependent frameworks rather than direct choice.
- npm downloadsLast4Weeks: 1,294,082 vs 807,747 a year ago, a 1.6x ratio against a 4.1 median
- dependents: 2,988 repos and 394 packages, similar to Drizzle's count but far below Knex
- github stars: 17 stars on the new fork; most stars stay on Vincit/objection.js
GPT-6.2 Sol: 3.7, likely 2.6 to 4.9
The index found about 3,000 dependent repositories, close to Drizzle's indexed count and far below Prisma, TypeORM, and Knex. Four-week installs rose from 808,000 to 1.29 million, or 1.60× against the 4.1× catalog median, which points to lost relative ground. Most stars remain on Vincit, and the new repository's social counts and npm installs give limited insight into how many projects are choosing it today.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: Installs grew 1.60× against the catalog median of 4.1×.
- dependents repos, packages; peers dependentRepos: 2,988 repositories and 394 packages appear in the index.
- github stars; bluesky posts; hackerNews stories: The new repository has 17 stars and zero matched Bluesky posts or Hacker News stories.
- github.com/Vincit/objection.js: The original repository retains about 7,300 stars.
Vouched for4.0
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
It has no Hacker News stories and no Bluesky posts, and recent comparisons either skip it or mark it as stagnant. Dito.js builds on it, and it has a long production history. I found no current independent endorsement.
- hackerNews / bluesky: 0 stories, 0 posts
- prisma.io/dataguide/database-tools/top-nodejs-orms-query-builders-and-database-libraries: Grouped with Bookshelf and Waterline as libraries with little development
- marmelab.com/blog/2025/06/26/kysely-vs-drizzle.html: Independent comparisons of typed query builders focus on Kysely and Drizzle
GPT-6.2 Sol: 4.9, likely 3.5 to 6.2
MEDIACEPT and Arbitexa report using Objection in production, and the pgvector Node client includes an adapter and tests against v4. An independent PostgreSQL benchmark put Objection near Drizzle in a simple insert workload, using Objection 3.1.2. The range stays wide because the production reports do not identify their versions and independent testing of 4.4.3 is scarce.
- github.com/Vincit/objection.js/discussions/2464: Firsthand production-use reports from MEDIACEPT in 2025 and Arbitexa in 2026.
- github.com/pgvector/pgvector-node: The pgvector Node client publishes an Objection adapter.
- github.com/pgvector/pgvector-node/blob/master/package.json: The pgvector Node client declares Objection v4 for development and testing.
- github.com/JS-AK/db-orm-benchmarks: Independent PostgreSQL insert benchmark with several category peers.
- raw.githubusercontent.com/JS-AK/db-orm-benchmarks/master/package.json: The benchmark pins Objection to 3.1.2.
Safe7.2
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
It has two runtime dependencies, an MIT licence, and only one advisory: a 2021 prototype pollution flaw that has been fixed. Releases now go through npm trusted publishing from GitHub Actions. There is no Scorecard. The dispute over the original repository leaves it unclear who will control npm publishing, which is a real supply-chain uncertainty.
- advisories: 1 total (CRITICAL, 2021), none in 24 months
- npm dependencies: 2 runtime dependencies
- github.com/ditojs/objection: Releases via GitHub Actions with npm trusted publishing
- github.com/Vincit/objection.js/discussions/2463: A commenter notes npm publish rights could also be removed
GPT-6.2 Sol: 7.8, likely 6.6 to 8.9
Objection is MIT-licensed and has two direct dependencies, with Knex and the database driver adding to the installed dependency surface. Its one recorded critical advisory was fixed in 2.2.16, and the snapshot lists no advisories from the last two years. Version 4.4.3 uses npm trusted publishing from GitHub Actions. The missing Scorecard and limited visibility into who can push release tags keep the range wide.
- advisories total, last24Months; scorecard: One recorded advisory, zero in the last 24 months, and no Scorecard result.
- github.com/advisories/GHSA-r659-8xfp-j327: The 2021 critical prototype pollution advisory lists 2.2.16 as patched.
- raw.githubusercontent.com/ditojs/objection/v4.4.3/package.json: MIT licence, two direct dependencies, and a Knex peer dependency.
- raw.githubusercontent.com/ditojs/objection/v4.4.3/.github/workflows/publish.yml: Pushed version tags publish through npm trusted publishing.
Good
- Relation graph features (withGraphFetched/Joined, insertGraph, upsertGraph) are mature, and v4 adds atomic strict mode.
- It stays close to SQL through Knex, so complex queries remain easy to write.
- Only two runtime dependencies, an MIT licence, and releases published from GitHub Actions with npm trusted publishing.
- Active again in 2026: 21 releases in a year, with fixes backported to a 3.x legacy line.
Bad
- One maintainer runs a new fork after losing access to the original Vincit repository, so who controls the project long term is uncertain.
- Its TypeScript types infer far less from the schema than Kysely or Drizzle.
- Downloads grow far slower than the category median, and few new projects choose it.
- v4 is ESM-only and has behaviour changes (PostgreSQL JSON operators, patchAndFetch rules) that need a migration.
The numbers
- npm downloads, 4 weeks
- 1.3M +60% in a year
- GitHub stars
- 17
- Commits, 12 months
- 526
- npm version
- 4.4.3 Nov 2026
- Versions, 12 months
- 20
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- None
- Licence
- MIT
Development moved to this repository from Vincit/objection.js, which has most of the stars.
Read on 21 November 2026 from GitHub (ditojs/objection), npm (objection), OSV and the OpenSSF Scorecard.
ORMs and query builders
- 8.1Drizzle ORM
- 8.0Kysely
- 7.8Mongoose
- 7.5Prisma
- 7.3MikroORM
- 6.7ZenStack
- 6.4TypeORM
- 5.9Knex.js
- 5.3Objection.js
- 5.0Sequelize