https://github.com/jackdbd/zod-schemas
Zod schemas I reuse across projects
https://github.com/jackdbd/zod-schemas
schema zod
Last synced: 2 months ago
JSON representation
Zod schemas I reuse across projects
- Host: GitHub
- URL: https://github.com/jackdbd/zod-schemas
- Owner: jackdbd
- License: mit
- Created: 2024-01-29T09:26:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T12:30:47.000Z (about 2 years ago)
- Last Synced: 2025-09-23T00:12:39.788Z (9 months ago)
- Topics: schema, zod
- Language: JavaScript
- Homepage: https://jackdbd.github.io/zod-schemas/
- Size: 503 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Zod schemas
[](https://badge.fury.io/js/@jackdbd%2Fzod-schemas)


[](https://conventionalcommits.org)
[](https://packagephobia.com/result?p=@jackdbd/zod-schemas)
[](https://socket.dev/npm/package/@jackdbd/zod-schemas)
Some [Zod](https://github.com/colinhacks/zod) schemas I reuse across projects.
Table of Contents
- [Installation](#installation)
- [Development](#development)
- [Docs](#docs)
## Installation
```sh
npm install @jackdbd/zod-schemas
```
## Development
Launch both the TypeScript compiler and the [Node.js test runner](https://nodejs.org/api/test.html) in watch mode:
```sh
npm run dev
```
Build all TypeScript files with the TypeScript compiler, and all docs with [TypeDoc](https://github.com/TypeStrong/typedoc) and [api-extractor + api-documenter](https://api-extractor.com/pages/setup/generating_docs/):
```sh
npm run build
```
You can also build the TypeScript files and the docs separately:
```sh
npm run build:ts
npm run docs
```
Whenever you change the public API of this project, you need to run api-extractor with the `--local` flag:
```sh
npx api-extractor run --config ./config/api-extractor.json --verbose --local
```
## Docs
Preview the documentation generated by TypeDoc:
```sh
npm run serve:docs
```
Note: it doesn't make much sense to preview the API docs generated by api-extractor + api-documenter. They are just a bunch of markdown files.