ZenStack
Reasonable, with limits. 6th of 10 ORMs and query builders.
ZenStack 3 is a TypeScript ORM built on Kysely. It keeps a Prisma-compatible query API and a schema language with access rules written in the schema, and it can generate CRUD APIs and TanStack Query hooks. It is a strong niche pick for apps that want authorization in the data layer. But a small team builds it, it has been stable for under a year, and few people outside the team have vouched for it.
Best for: Full-stack TypeScript teams who like Prisma's schema and API and want row- and field-level access rules enforced inside the ORM.
Scores
Overall6.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 4.5 to 7.0
ZenStack is the clearest choice in the category for authorization built into the ORM, and it is very actively developed. Its v3 engine stable track record is under a year old and still fixing policy and dialect bugs. It has little independent validation and a small user base compared with Prisma, Drizzle and Kysely. Pick it if access control is central and you accept a smaller ecosystem; for most projects a bigger peer is the safer default.
- peers downloadsLast4Weeks: Prisma 98M, Drizzle 190M, Kysely 118M versus ZenStack 0.4M
- github.com/zenstackhq/zenstack/releases: Frequent releases with correctness fixes
- dev.to/zenstack/prisma-vs-drizzle-vs-zenstack-choosing-a-typescript-orm-in-2026-5cba: Positioned as Prisma-like with an access-control edge
GPT-6.2 Sol: 7.3, likely 6.2 to 8.4
ZenStack is a strong pick when one schema needs to drive typed queries, permissions, and CRUD APIs. Prisma 7 is a better default when database coverage and ecosystem size matter most, and Drizzle is an established option for SQL-first teams. Active patch releases support choosing ZenStack today, while limited independent v3 production evidence and concentrated release ownership keep the range wide.
- zenstack.dev/docs: Documents the integrated ORM, permissions, and API generation.
- prisma.io/docs/orm/v7/core-concepts/supported-databases: The stable Prisma line covers more database engines.
- thoughtworks.com/radar/languages-and-frameworks/drizzle: Independent assessment of Drizzle's SQL-like API and database-first workflow.
- peers, github releasesLastYear: A much smaller footprint than the leading peers, with 43 releases in the past year.
- github.com/zenstackhq/zenstack/actions/workflows/publish-release.yml: Shows steady publishing activity concentrated with one maintainer.
Needed by many6.1
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most backend and full-stack TypeScript projects need an ORM or query builder. ZenStack's take is schema-first, SQL-only (PostgreSQL, MySQL, SQLite), needs Node 22+, and focuses on access control. That fits mainly web apps with multi-tenant or user-scoped data, which is a large group but less than the whole category.
- github description: Type-safe ORM plus access control and automatic query services
- github.com/zenstackhq/zenstack/releases: Node 22+ required since v3.10.2; supports PostgreSQL, MySQL and SQLite
GPT-6.2 Sol: 6.1, likely 5.0 to 7.2
Database access is common in full-stack and backend work, and ZenStack covers three widely used SQL databases without tying developers to one web framework. Its strongest fit is narrower because it targets TypeScript servers that benefit from schema-level permissions. The survey measures database and runtime use, so the size of that overlap is an estimate.
- survey.stackoverflow.co/2026/technology/data: Node.js is widely used, and PostgreSQL, SQLite, and MySQL lead the database results.
- zenstack.dev: Lists supported databases and framework integrations.
- github.com/zenstackhq/zenstack: Targets full-stack and backend Node.js and Bun applications.
Helps a lot7.2
How well does it do the job for those who need it?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
Its features are rich: a Prisma-compatible API, declarative row and field policies, polymorphic models, computed fields, custom procedures, plugins, and generated Zod schemas, query hooks and CRUD APIs. Each release still fixes correctness bugs in policies, polymorphism and dialect SQL, and some features only left preview in v3.10. Migrations still lean on Prisma. No independent benchmark or deep review was found, so the range is wide.
- github.com/zenstackhq/zenstack/releases: v3.9.5 fixed self-relation policy enforcement; v3.10.0 moved procedures and field policies out of preview
- zenstack.dev/blog/prisma-alternative: Built on Kysely with a PrismaClient-compatible API and a much smaller install than Prisma 7 (maintainer post)
- dev.to/zenstack/prisma-vs-drizzle-vs-zenstack-choosing-a-typescript-orm-in-2026-5cba: Maintainer comparison: more powerful for access control, but more opinionated
- npm hasTypes: TypeScript-first with bundled types
GPT-6.2 Sol: 7.8, likely 6.6 to 8.8
Version 3.10.3 combines typed relational queries, a Kysely query builder, and schema-level authorization. The docs and agent guides give concrete examples for querying, migrations, and policies. Gaps in Prisma compatibility and a reported compiler regression in a large app limit confidence, and independent measurements of runtime and coding-agent performance are sparse.
- github.com/zenstackhq/zenstack: Documents the typed ORM, Kysely API, and schema tooling.
- zenstack.dev/docs/migrate-prisma: Lists gaps in fluent queries, column comparisons, and client extensions.
- github.com/zenstackhq/skills: Provides task-specific examples for coding agents.
- github.com/zenstackhq/zenstack/issues/2854: A user reported a compiler failure after upgrading, and another commenter measured higher type-checking costs.
Holds up over time6.5
Will it still be a good choice in two years?
Claude Opus 5.5: 6.0, likely 4.5 to 7.5
Activity is high: 568 commits, 43 releases and 48 npm versions in the past year, with a release two days before readAt. 90 contributors are listed. Still, a small company team of two co-founders drives the work, and its funding is not documented. The project already rewrote its engine once (v2 to v3, with renamed packages), and minor versions bring type-level breaking changes.
- github commitsLastYear / releasesLastYear: 568 commits and 43 releases in a year
- github closedIssues/openIssues: 855 closed versus 168 open issues
- zenstack.dev/blog/next-chapter-1: Two co-founders lead the work; the v3 rewrite moved away from Prisma
- zenstack.dev/docs/migrate-v2: v2 to v3 move needs package renames
GPT-6.2 Sol: 6.9, likely 5.6 to 8.1
The repository logged 568 commits and 43 releases in the past year, and outside contributors appear in recent fixes. The major rewrite changed some policy syntax, and users have reported upgrade regressions within v3. Recent releases were consistently triggered by one maintainer, and public sponsorship gives limited visibility into long-term funding.
- github commitsLastYear, releasesLastYear, contributors: 568 commits, 43 releases, and 90 recorded contributors.
- github.com/zenstackhq/zenstack/releases: Regular fixes with contributions from several developers.
- github.com/zenstackhq/zenstack/actions/workflows/publish-release.yml: One maintainer triggered the recent production releases.
- github.com/sponsors/zenstackhq: Names two creators and shows limited progress toward the public sponsorship goal.
- zenstack.dev/docs/migrate-v2: Documents the breaking change to post-update policies.
- github.com/zenstackhq/zenstack/issues/2854: A maintainer replied within a day, and the upgrade report remains open.
- zenstack.dev/docs/roadmap: Publishes v3 priorities without delivery dates.
Used widely3.4
How many use it, and is that growing?
Claude Opus 5.5: 3.5, likely 2.5 to 4.5
It had about 418k downloads in 4 weeks. That is far below every peer, and roughly a third of Objection.js. The year-over-year ratio is meaningless here because the package was a preview a year ago, and part of the current number replaces old v2 package installs. About 3k stars, almost no Bluesky posts and HN stories with few points point to a few thousand projects choosing it. ecosyste.ms has no dependents count.
- npm downloadsLast4Weeks: 418,364 versus 1,669 a year ago, from a new package
- github stars: 2,965 stars versus 9k to 48k for peers
- bluesky posts: 1 post, from a bot
- hackerNews top: Show HN posts got 2 to 16 points with almost no comments
GPT-6.2 Sol: 3.2, likely 1.9 to 4.7
About 418,000 four-week installs and 3,000 repository stars show a visible project with much smaller reach than Prisma or Drizzle. The roughly 251-fold download increase exceeds the 4.1-fold catalog median, but the move to a package that was still in preview a year ago makes that comparison unreliable. Stars span both major versions, and sparse discussion and a missing dependent count leave direct adoption and its trend hard to estimate.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio, project note: 418,364 versus 1,669 installs across a package transition.
- github stars, dependents, peers: 2,965 repository stars, no dependent estimate, and lower install volume than every listed peer.
- hackerNews top, bluesky: Little discussion on the listed launches and one automated Bluesky mention.
Vouched for3.8
Who stands behind it being good?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
Almost all write-ups and comparisons come from the ZenStack team. The one third-party 2026 evaluation found is an AI-generated summary of a maintainer post. Earlier HN feedback was mildly positive but thin. It has a better-auth integration and appears in a community skill page, but no well-known production users or survey results were found.
- earezki.com/ai-news/2026-04-03-a-fresh-look-at-the-orm-landscape-and-how-the-new-zenstack-stacks-up-against-prisma-and-drizzle: Third-party page, but an AI summary of a maintainer post with no substance
- news.ycombinator.com/item?id=36664841: Show HN: mild praise and questions, no production reports
- skills.sh/beshkenadze/claude-skills-marketplace/zenstack: A community agent skill recommends v3 for new projects
GPT-6.2 Sol: 4.5, likely 3.0 to 6.0
TestPlanIt directly depends on ZenStack v3 and uses its migration tooling in production deployments. A developer also reports using ZenStack in production and finding it effective for API generation and permissions, though the comment leaves the version unspecified. Most other public evidence lacks a confirmed v3 deployment or a direct measure of satisfaction, which keeps the range wide.
- github.com/TestPlanIt/testplanit/blob/main/testplanit/package.json: The application declares the v3 ORM and policy plugin as dependencies.
- docs.testplanit.com/docs/installation: Documents automated ZenStack migrations in production deployments.
- reddit.com/r/node/comments/1paw4k5/love_prisma_but_feeling_let_down_this_alternative: A user reports production use and compares the permissions and API workflow with alternatives.
Safe6.5
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.0 to 7.5
It has no OSV advisories, an MIT licence and 15 dependencies. The Scorecard is a middling 5.4: Code-Review, Token-Permissions, Pinned-Dependencies and Dependency-Update-Tool all score 0. Because the library enforces authorization, its policy bugs are security-relevant. Self-relation policies were fixed in v3.9.5, which shows both the risk and that fixes come fast.
- advisories total: 0 advisories
- scorecard score: 5.4, with weak code review and token permissions
- npm dependencies: 15 direct dependencies
- github.com/zenstackhq/zenstack/releases: Policy enforcement fixes in recent patch releases
GPT-6.2 Sol: 6.5, likely 5.2 to 7.7
The MIT-licensed ORM has 15 direct dependencies and zero OSV entries in the bundle. Version 3.9.5 fixed an access-policy enforcement bug, and the current release workflow is configured to publish with npm provenance. The February Scorecard gave it 5.4, with weak review, dependency pinning, and token-permission checks. Recent publishes are concentrated with one maintainer, and the full set of people who can release is unclear.
- npm license, dependencies, advisories: MIT, 15 direct dependencies, and zero indexed advisories.
- scorecard score, date, checks: 5.4 in February, with strong CI and static analysis and zeros on several repository safeguards.
- github.com/zenstackhq/zenstack/releases/tag/v3.9.5: Disclosed and patched a case where access rules could be enforced incorrectly.
- github.com/zenstackhq/zenstack/blob/v3.10.3/.github/workflows/publish-release.yml: GitHub Actions publishes with npm provenance enabled.
- github.com/zenstackhq/zenstack/actions/workflows/publish-release.yml: Recent publish runs were triggered by the same maintainer.
Good
- Access policies at row and field level are declared in the ZModel schema and enforced by the ORM client.
- The query API is compatible with PrismaClient, so Prisma users and AI agents trained on Prisma code can write correct queries quickly.
- Built on Kysely with no Prisma runtime engine, so installs are much smaller, and you can drop down to SQL-like queries when needed.
- Very active releases (43 in the last year), and bugs get fixed within days.
Bad
- Recent releases fixed policy enforcement bugs, for example self-relation policies that were not enforced correctly before v3.9.5.
- A small company team drives the project, and almost all comparisons and tutorials come from the maintainers.
- Minor releases bring behaviour and type changes (hook shape, computed field typing, dropping Node 20), and some features only recently left preview.
- Use is much smaller than for Prisma, Drizzle or Kysely, so there is less community help and fewer production reports.
The numbers
- npm downloads, 4 weeks
- 418k ×251 in a year
- GitHub stars
- 3k
- Commits, 12 months
- 568
- npm version
- 3.10.3 Nov 2026
- Versions, 12 months
- 48
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 5.4 out of 10, Feb 2026
- Licence
- MIT
ZenStack 3 moved to this package, which was an early preview a year ago, so its growth in a year says little.
Read on 21 November 2026 from GitHub (zenstackhq/zenstack), npm (@zenstackhq/orm), 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