monaco-zod-subset-mode
v0.0.1
Published
A custom language definition and mode for the Monaco Editor that enables syntax highlighting, validation, and autocompletion for a subset of Zod schemas.
Maintainers
Readme
monaco-zod-subset-mode
A custom language definition and mode for the Monaco Editor that enables syntax highlighting, validation, and autocompletion for a subset of Zod schemas.
Features
- Syntax highlighting for Zod types and methods
- Validation against disallowed constructs (e.g.,
.refine(), variables) - Autocompletion for common Zod methods
Getting Started
- Install dependencies:
pnpm install - Build the project:
pnpm build && pnpm bundle - To test the editor, run a local web server from the project root (e.g.,
python -m http.server) and openexample/index.htmlin your browser.
License
This project is licensed under the MIT License - see the LICENSE file for details.
