# Objection.js: 5.3 out of 10

Reasonable, with limits. 9th of 10 in [ORMs and query builders](https://elestia.ai/opensource/orms/index.md).

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

- **Overall: 5.3** (likely 4.2 to 6.6)
  - Claude Opus 5.5 (4.0): 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): 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 many: 5.7** (likely 4.6 to 6.7)
  - Claude Opus 5.5 (5.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): 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 lot: 6.8** (likely 5.7 to 7.8)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.5): 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 time: 5.5** (likely 4.0 to 6.9)
  - Claude Opus 5.5 (4.5): 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): 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 widely: 4.1** (likely 3.1 to 5.2)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (3.7): 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.
- **Vouched for: 4.0** (likely 2.8 to 5.4)
  - Claude Opus 5.5 (3.0): 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): 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.
- **Safe: 7.2** (likely 5.8 to 8.2)
  - Claude Opus 5.5 (6.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): 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

- Downloads, 4 weeks: 1.3M
- In a year: +60%
- GitHub stars: 17
- Commits, 12 months: 526
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/ditojs/objection
- npm: https://www.npmjs.com/package/objection

Development moved to this repository from Vincit/objection.js, which has most of the stars.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
