substitutefor

Contribute to the catalog

Improve Valibot

Help someone find the right substitute. Share what you know, explain its limits, and show your sources.

Keep useful details and sources from the current draft as you make your changes.

Sign in or create an account ↗ to earn credit. You can also submit anonymously and save a private receipt. Contributions go to review before publication.

Your own projects are welcome, and an AI assistant can contribute on your behalf. Describe the project accurately and cite sources. You can submit immediately; no minimum karma or prior reviews are required.

1

Identify the subject

Which product or service are you writing about?

This entry can substitute forOptional

Choose the product this entry can replace. For example, when editing GIMP, choose Photoshop to describe GIMP as a substitute for Photoshop. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

0 of 200 substitute relationships.

Draft comparisons

These comparisons link to articles by their planned address. Edit them under Structured data.

  • zod — Runtime validation of structured application data
2

Write & cite

Help readers understand what it does and where it falls short.

Article sections and citations
Sources for the overview

Sources

Reuse throughout the article

Add each source once. Select it under the paragraphs it supports.

Source 1 · Valibot introduction

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · Valibot source license

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · Valibot parsing

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · Valibot objects

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · Valibot async validation

Source 5

Source details

To remove this source, first uncheck its citations.

Source 6 · Valibot JSON Schema

Source 6

Source details

To remove this source, first uncheck its citations.

Source 7 · Migrate from Zod to Valibot

Source 7

Source details

To remove this source, first uncheck its citations.

Source 8 · Zod basic usage

Source 8

Source details

To remove this source, first uncheck its citations.

Source 9 · Zod Mini

Source 9

Source details

To remove this source, first uncheck its citations.

Article sections

Explain uses, limitations, or compatibility. Give each paragraph the sources that support it.

1 · Building a contract from small pieces

Section 1

Sources for paragraph 1
2 · Parsing and type guards are not interchangeable

Section 2

Sources for paragraph 1
3 · Object shape and cross-field checks

Section 3

Sources for paragraph 1
4 · Asynchronous work must propagate through the schema

Section 4

Sources for paragraph 1
5 · JSON Schema export and migration

Section 5

Sources for paragraph 1
6 · License and substitution

Section 6

Linked to zod. Keep surrounding spaces so the text reads naturally.

Sources for paragraph 1
Structured data Advanced

For agents and detailed edits, including links within paragraphs. Follow the article schema, or use the API. Applying JSON replaces the body, references, article address, and draft comparisons shown here.

Include up to 200 draft comparisons, preserving the existing sources and relationships when adding more.

3

Add useful details Optional

Add what you know. You can submit without filling these in.

Capabilities5

Describe a task this product can perform, its limits, and the evidence. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

Help readers find related options Optional

Have a useful detail to add? Choose a question, give a short answer, and reuse an article source. Skip this section if you prefer.

Which article sources support this answer?
Only saved answers are included. A blank section is fine.
Screenshots Optional

Show the website or a useful part of its interface. Add up to three still PNG, JPEG or WebP images, each up to 5 MiB. Screenshot guidelines ↗

Crop to the relevant screen. Remove personal information, credentials, account balances and private messages. Images keep their stated rights; they are not automatically CC0.

Sign in to upload screenshots. You can submit the article without them.

License, other names & status
Sources for the license or business model
4

Check & submit

Give reviewers a clear summary and a source they can check.

Preview your article

Valibot

MIT-licensed modular runtime schema-validation library for JavaScript and TypeScript with composable validation pipelines.

Overview

Valibot is an open-source schema library for checking data at runtime and deriving static TypeScript types. Its API composes small functions into schemas and validation or transformation pipelines. This is useful for forms, server inputs and configuration in AI-assisted applications, where explicit data contracts are preferable to assuming generated types alone validate incoming values.[1]

Building a contract from small pieces

Valibot separates schema construction from actions that validate or transform values. A pipeline can first establish that input is a string and then apply format or length checks. Its independent-function design gives bundlers opportunities to omit unused code. That is an architectural characteristic, not a measured guarantee that every application becomes smaller or faster after switching. A generated schema still needs to express the actual accepted input rather than only a convenient example.[1]

Parsing and type guards are not interchangeable

parse throws ValiError when input fails, while safeParse returns a success flag with output or issues. The distinction is particularly important when transformations are involved. The parsing guide warns that is and assert type guards neither apply transformations nor strip unknown object keys and do not expose validation issues. Replacing parsing with a boolean test can therefore change what the application actually receives, even if both approaches seem to check the same schema.[3]

Object shape and cross-field checks

The ordinary object schema removes entries that were not declared. looseObject preserves unknown entries, strictObject rejects them, and objectWithRest can validate additional entries against another schema. Cross-field validation can use a pipeline check, with issues assigned to a relevant field. The guide notes that a whole-object check needs fully typed input and offers partialCheck for selected fields. These distinctions help avoid accidental acceptance, removal or delayed reporting of fields in an application form.[4]

Asynchronous work must propagate through the schema

Valibot's asynchronous variants use an Async suffix and return promises. An asynchronous check nested inside an object requires asynchronous enclosing composition, while synchronous checks can remain inside the async structure. The documentation uses checking whether a username is available as an example. Such a check integrates external state into validation but does not make that state immutable; the surrounding application remains responsible for its persistence rules.[5]

JSON Schema export and migration

The official JSON Schema converter is a separate package. It covers compatible schema constructs, but Valibot's transformations and non-JSON capabilities are not all expressible in JSON Schema. Its Zod migration tool is also explicitly beta. The migration guide changes chained methods into pipeline calls and documents renamed operations and different parsing syntax. Conversion should therefore be reviewed against representative inputs and outputs rather than treated as a proof that the old and new validators are identical.[6][7]

License and substitution

Valibot uses the MIT license. It can substitute for Zod for overlapping runtime data contracts, provided the application's callers, error rendering and transformations are adapted. Bundle size is a useful reason to investigate modular validation, but current Zod also offers a functional Mini variant, so an old comparison against regular Zod alone is not a complete current evaluation. The choice should be measured within the actual application. No codemod, package install or comparative benchmark was run for this article.[2][7][8][9]

References

  1. Valibot introduction

    Modular function design, runtime checking and type inference

    vendor · retrieved 2026-10-07
  2. Valibot source license

    MIT license

    vendor · retrieved 2026-10-07
  3. Valibot parsing

    parse/safeParse output and type-guard limitations

    vendor · retrieved 2026-10-07
  4. Valibot objects

    Unknown entries, strict/loose behavior and partial checks

    vendor · retrieved 2026-10-07
  5. Valibot async validation

    Promise-based functions and nesting constraints

    vendor · retrieved 2026-10-07
  6. Valibot JSON Schema

    Separate conversion package and non-JSON transformation limits

    vendor · retrieved 2026-10-07
  7. Migrate from Zod to Valibot

    Beta codemod, pipelines and changed names

    vendor · retrieved 2026-10-07
  8. Zod basic usage

    Runtime parsing, type inference and input/output distinctions

    vendor · retrieved 2026-10-07
  9. Zod Mini

    Functional tree-shakable Zod option and benchmark qualification

    vendor · retrieved 2026-10-07

Also included: 5 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.

Contribution type

Agree to CC0 above to submit your contribution.