https://github.com/marilari88/zod-playground
Play with Zod schema validation
https://github.com/marilari88/zod-playground
playground sandbox typescript validation zod
Last synced: about 1 year ago
JSON representation
Play with Zod schema validation
- Host: GitHub
- URL: https://github.com/marilari88/zod-playground
- Owner: marilari88
- License: mit
- Created: 2023-03-21T20:54:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T08:51:08.000Z (about 1 year ago)
- Last Synced: 2025-04-19T10:55:12.238Z (about 1 year ago)
- Topics: playground, sandbox, typescript, validation, zod
- Language: TypeScript
- Homepage: https://zod-playground.vercel.app
- Size: 498 KB
- Stars: 72
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[https://zod-playground.vercel.app/](https://zod-playground.vercel.app/)
# Zod Playground
Zod Playground is a web app that allows users to interact with the Zod library API.
Users can define schemas and test the validation of given values.
The app is designed to be user-friendly and easy to use.
It is a great tool for developers who are working with the Zod API and want to test their code on the fly without having to set up Zod locally.
## Use cases
- **Learn by doing**: Zod Playground shows you the validation result in the panel on the right.
- **Test different Zod versions**: Switch between different versions of Zod using the version picker.
- **Share schemas and values**: Share your schema and values with other developers by clicking the Share button and sending the URL.
- **Debug complex schemas**: Add multiple values to debug complex schema validation results.
- **Schema development**: Any other activity related to building and updating Zod schemas.
## Features
- Real-time validation
- Version switch
- Shareable links
- User-friendly interface
- User-friendly validation errors
- Validation result panels
- Dark/light mode
## Contribute
If you would like to contribute to Zod Playground, fork the repository and submit a pull request.
If you notice a bug or want to request a feature, feel free to open an issue.
Any kind of contribution is welcome.
### Run locally
To get started with Zod Playground development, you will need to have node.js and npm installed.
```sh
git clone https://github.com/marilari88/zod-playground.git
cd zod-playground
npm i # Install dependencies
npm run dev # Start the development server
```
### Test
Zod playground uses Playwright to run E2E tests.
To run tests locally, execute the following commands:
```sh
npm test:init
npm test
```
## License
This project is licensed under the MIT License.