Skip to content
Library
Forms

Valibot

Lightweight schema validation library focused on small bundles and composable parsing.

UnverifiedActive

Unverified

Compatibility has not been verified yet in the PreactHub catalog.

Packagevalibot

Facts at a glance
Preact compatibility
Unverified
Tested Preact versions
Not documented
TypeScript
Native TypeScript
SSR
SSR supported
Maintenance
Active
License
MIT
Last verified
Not yet verified
Terminal
npm install valibot
preact-example.ts
import * as v from "valibot"; const schema = v.object({ email: v.pipe(v.string(), v.email()) });

Introduction

Valibot is a compelling option when bundle size matters and you want modern schema composition.

Preact configuration

No Preact-specific adapter is required for schema parsing.

SSR notes

Pure validation logic works consistently across server and client rendering paths.

Islands notes

When using this library inside an island, keep browser-specific setup inside the island component or an effect, and pass only serializable props from the server-rendered page.

Alternatives