zenstack/packages/server
ymc9 67da884019 fix(tanstack-query): support DbNull/JsonNull/AnyNull serialization over the wire
Register SuperJSON custom serializers for the three JSON null sentinels in
both the client-helpers fetch layer and the server's registerCustomSerializers,
so they survive HTTP round-trips when used as query filters or mutation input.
Re-export the singletons from all tanstack-query framework entry points
(react, vue, svelte) for convenient user access.

Fixes #2278

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 22:59:43 -07:00
..
src fix(tanstack-query): support DbNull/JsonNull/AnyNull serialization over the wire 2026-04-29 22:59:43 -07:00
test fix(orm): accept plain date strings in DateTime @db.Date field filters (#2572) 2026-04-21 16:46:30 -07:00
eslint.config.js feat(server): migrate rpc api handler and express adapter (#328) 2025-10-23 19:05:05 -07:00
package.json [CI] Bump version 3.6.4 (#2624) 2026-04-27 17:50:05 -07:00
README.md docs: add README.md to all public packages 2026-03-22 21:51:13 -07:00
tsconfig.json feat(server): migrate rpc api handler and express adapter (#328) 2025-10-23 19:05:05 -07:00
tsdown.config.ts chore: migrate from tsup to tsdown (#2580) 2026-04-15 12:13:34 -07:00
vitest.config.ts feat(server): migrate rpc api handler and express adapter (#328) 2025-10-23 19:05:05 -07:00

@zenstackhq/server

Automatic CRUD API handlers and server adapters for ZenStack. Exposes your ZenStack ORM as RESTful or RPC-style API endpoints with built-in OpenAPI spec generation.

Supported Frameworks

  • Express
  • Fastify
  • Next.js
  • Nuxt
  • SvelteKit
  • Hono
  • Elysia
  • TanStack Start

API Styles

  • REST — Resource-oriented endpoints with JSON:API support
  • RPC — Procedure-call style endpoints

Installation

npm install @zenstackhq/server

Usage (Express example)

import express from 'express';
import { ZenStackMiddleware } from '@zenstackhq/server/express';
import { RPCApiHandler } from '@zenstackhq/server/api';

const app = express();
app.use('/api/model', ZenStackMiddleware({...}));

Learn More