Everything In 1 Place
Sign in

Best Knex.js Alternatives

Looking for a Knex.js alternative? Knex.js is skip the ORM abstractions and write near-raw SQL with a thin, portable query builder — the escape hatch when an ORM fights you. That's a good fit for plenty of teams, but not everyone — here are 7 real orm tools worth comparing it against, each with an honest take on what it does differently. Prisma is the one people mention most: the most polished TypeScript ORM around — great migrations and autocomplete, though its engine adds real weight on serverless. Drizzle ORM is another solid option — lighter and closer to raw SQL than Prisma — the ORM most edge and serverless-first indie hackers reach for now. None of these are ranked by who pays the most to be listed first; they're ordered the same way the rest of this directory is, sponsors aside.

The most polished TypeScript ORM around — great migrations and autocomplete, though its engine adds real weight on serverless.

Lighter and closer to raw SQL than Prisma — the ORM most edge and serverless-first indie hackers reach for now.

The old-guard decorator-based ORM for Node — battle-tested in big NestJS apps, but its DX shows its age next to newer options.

The original mainstream Node ORM — still fine for classic SQL apps, just don't expect it to feel modern anymore.

A fully type-safe SQL builder, not an ORM — pick it for Drizzle-level TypeScript inference without ORM magic on top.

Still the gold-standard ORM for Python — more verbose than the JS options, but nothing else matches its maturity.

The default schema layer for MongoDB in Node — reach for it the moment raw collections stop scaling for your app.