@zmdb/schema
v1.0.0-beta.2
Published
Schema DSL + compile-time type derivation (Entity/Create/Update/read DTOs), relations, OpenAPI, and custom types — the single source of truth for a zmdb data layer.
Downloads
613
Maintainers
Readme
@zmdb/schema
@zmdb/schema contains the schema tags and shared intermediate representation used throughout zmdb. It also derives entities and DTOs and builds relation and OpenAPI types. Provider-neutral AI tools
are now published from @zmdb/ai.
It is part of zmdb, where one TypeScript schema drives validation, serialization, SQL, OpenAPI, and CRUD.
Install
yarn add @zmdb/[email protected]Prerelease (
1.0.0-beta.2). Requires Node.js 26+ and is ESM-only. Ships built ESM.js+.d.tsunder./dist.
Entry points
- Core schema APIs:
@zmdb/schema - Schema building blocks:
/tags,/ir,/derive,/dto,/naming,/relations,/openapi,/custom-types,/entity-modeling
AI is not re-exported from @zmdb/schema. Provider-neutral tools ship from @zmdb/ai; Anthropic, LangChain, and Vercel integrations ship from their matching @zmdb/ai-* packages; MCP client and
server cores ship from @zmdb/mcp.
Documentation
Full docs: https://ambasta.github.io/zmdb/
License
GNU General Public License v3.0 or later (GPL-3.0-or-later) — see LICENSE.
