
The Smallest Schema Library on the Market (and the Form Hook Built on Top of It)
I'm going to make a claim and back it up: @railway-ts/pipelines ships the smallest schema validation bundle of any library available today. Smaller than Valibot. Smaller than Zod, Yup, TypeBox, io-ts — all of them. Don't take my word for it. This is benchmarked by schemabenchmarks.dev , a comparison site created by Open Circle — the organization behind Valibot. That alone might be interesting. But a small schema library isn't useful if it can't handle real forms. So I built @railway-ts/use-form — a 3.6 kB React hook where the schema is the validator. No resolver. No adapter. No translation layer between your validation logic and your form state. Here's what that actually means in practice, and why I think the current form ecosystem has a glue-code problem worth solving. The Glue-Code Tax The standard React form stack looks like this: pick a schema library, pick a form library, install a resolver package to connect them, then manually thread errors.fieldName?.message through your JSX. I
Continue reading on Dev.to React
Opens in a new tab

