A monorepo of Valibot schema utilities providing AST serialization and runtime introspection capabilities.
Caution
Highly experimental, work in progress. Read and use at your own risk.
Note
I'm not associated with Open Circle in any way. This is just a personal project inspired by their work and hopefully merged into their ecosystem in the future.
Bidirectional conversion between Valibot schemas and JSON-serializable AST representations. Enables schema persistence, code generation, and cross-platform schema sharing.
- 🔄 Schema ↔ AST conversion
- 📦 JSON-serializable output
- ⚡ Async schema support
- 🔧 Custom operation dictionaries
- 🛠️ Type-safe schema introspection utilities (
valibot-ast/utils) - 🎯 Fully tree-shakeable
AST-first utilities for building Formisch forms from Valibot schemas.
- 🏗️ Derive form field configs from schemas or AST nodes
- 📋 Infer HTML input types, constraints, and metadata
- 🎛️ Generate type-safe initial values
- ⚛️ Framework adapters for React, Preact, Vue, Solid, Qwik
- 🎯 Fully tree-shakeable
Tip
Continuous releases are also available via pkg.pr.new:
pnpm add https://pkg.pr.new/valibot-ast@main
pnpm add https://pkg.pr.new/formisch-utils@mainThis is a pnpm workspace monorepo.
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Lint
pnpm lint- Support for more validation libraries (Zod, ArkType, Yup)
- Separate AST packages for each library
- Shared library-agnostic AST types
MIT