Elestia Open Source Ratings
5.3

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.1Drizzle ORM
  2. 8.0Kysely
  3. 7.8Mongoose
  4. 7.5Prisma
  5. 7.3MikroORM
  6. 6.7ZenStack
  7. 6.4TypeORM
  8. 5.9Knex.js
  9. 5.3Objection.js
  10. 5.0Sequelize
Compare all 10 on six scores