Skip to content

marilari88/zod-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 28, 2026
b304a91 · · Mar 28, 2026

History

225 Commits
Feb 25, 2026
Aug 12, 2024
Aug 13, 2024
Mar 25, 2026
Mar 8, 2026
Apr 25, 2025
Jan 16, 2026
Jan 13, 2026
Apr 29, 2024
Feb 21, 2026
Jan 13, 2026
Apr 25, 2024
Mar 28, 2026
Mar 28, 2026
Jan 16, 2026
Mar 25, 2026
Mar 25, 2026
Aug 9, 2024

Repository files navigation

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.ly.

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.
  • Test Zod localization: Switch between different locales to see how Zod handles internationalized error messages and validation responses.

Features

  • Real-time validation
  • Version switch
  • Shareable links
  • User-friendly interface
  • User-friendly validation errors
  • Validation result panels
  • Dark/light mode
  • Multi-language support

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.e.

Run locally

To get started with Zod Playground development, you will need to have node.js and npm installed.

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

npm test:install
npm  test

License

This project is licensed under the MIT License.