//open-circle-utilsbysandros94

open-circle-utils

A monorepo of Valibot schema utilities providing AST serialization and runtime introspection capabilities.

1
0
1
TypeScript

Open Circle Utils

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.

Packages

valibot-ast

Open on npmx.dev

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

formisch-utils

Open on npmx.dev

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@main

Development

This is a pnpm workspace monorepo.

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run tests
pnpm test

# Lint
pnpm lint

Future Plans

  • Support for more validation libraries (Zod, ArkType, Yup)
  • Separate AST packages for each library
  • Shared library-agnostic AST types

License

MIT

[beta]v0.14.0