# ZenStack: 6.7 out of 10

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

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

- **Overall: 6.7** (likely 5.4 to 7.7)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.3): 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.
- **Needed by many: 6.1** (likely 5.0 to 7.1)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.1): 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.
- **Helps a lot: 7.2** (likely 5.8 to 8.2)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (7.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.
- **Holds up over time: 6.5** (likely 5.1 to 7.8)
  - Claude Opus 5.5 (6.0): 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.
  - GPT-6.2 Sol (6.9): 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.
- **Used widely: 3.4** (likely 2.2 to 4.6)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (3.2): 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.
- **Vouched for: 3.8** (likely 2.5 to 5.3)
  - Claude Opus 5.5 (3.0): 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.
  - GPT-6.2 Sol (4.5): 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.
- **Safe: 6.5** (likely 5.1 to 7.6)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (6.5): 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.

## 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

- Downloads, 4 weeks: 418k
- In a year: ×251
- GitHub stars: 3k
- Commits, 12 months: 568
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/zenstackhq/zenstack
- npm: https://www.npmjs.com/package/@zenstackhq/orm

ZenStack 3 moved to this package, which was an early preview a year ago, so its growth in a year says little.

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.
