valibot
npmv1.4.2TypeScriptThe modular and type safe schema library for validating structural data
Safe to adopt
Yes — valibot scores well across adoption, maintenance, weight, supply chain, and licensing. 16.8M downloads per week and 5 known dependents. Last published 73 days ago. 31 releases in the last 2 years.
- AAdoption: grade A, Excellent.
16.8M downloads per week and 5 known dependents.
- AMaintenance: grade A, Excellent.
Last published 73 days ago. 31 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 1.8 MB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding valibot to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the valibot README.
import * as v from 'valibot'; // 1.31 kB
// Create login schema with email and password
const LoginSchema = v.object({
email: v.pipe(v.string(), v.email()),
password: v.pipe(v.string(), v.minLength(8)),
});
// Infer output TypeScript type of login schema as
// { email: string; password: string }
type LoginData = v.InferOutput<typeof LoginSchema>;
// Throws error for email and password
const output1 = v.parse(LoginSchema, { email: '', password: '' });valibot vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| valibotthis page | 16.8M | 5 | MIT | 2 months ago |
| zod | 246.7M | 13 | MIT | 1 day ago |
| @standard-schema/spec | 99.1M | 9 | MIT | 1 day ago |
| tsx | 61.9M | 26 | MIT | 1 day ago |
| ts-node | 42.2M | 38 | MIT | 1 day ago |
| kysely | 15.6M | 1 | MIT | 1 day ago |
Dependencies
Declared by valibot v1.4.2. Runtime dependencies are installed with the package; dev dependencies are not.
Peer (1)
Dev (15)
Used by
Popular packages that depend on valibot.
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
The official, opinionated, batteries-included toolset for efficient Redux development
Hub layer that orchestrates devframe docks, terminals, messages, and commands on any host.
Framework for building one portable devtool integration that runs in any viewer.
Devframe plugin providing terminal panels for streamed output and interactive PTY shells.
Relationship graph
Dependencies (left) and dependents (right) of valibot.
Frequently installed together
Simple yet powerful framework for building command-line apps.
Universal filesystem path utils
Framework for building one portable devtool integration that runs in any viewer.
Minimal H(TTP) framework built for high performance and portability.
Get an available TCP port to listen
Missing ECMAScript module utils for Node.js
<!-- automd:badges color=yellow codecov bundlephobia packagephobia -->
URL utils for humans
A family of specs for interoperable TypeScript
Structured diagnostic code library
Model Context Protocol implementation for TypeScript - Client package
Model Context Protocol implementation for TypeScript - Server package
Release history
19 releases in the last two years, typically about 9 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.4.2latest | 2 months ago | 1.8 MB | MIT |
| 1.4.1 | 3 months ago | 1.8 MB | MIT |
| 1.4.0 | 4 months ago | 1.8 MB | MIT |
| 1.3.1 | 5 months ago | 1.7 MB | MIT |
| 1.3.0 | 5 months ago | 1.7 MB | MIT |
| 1.2.0 | 9 months ago | 1.7 MB | MIT |
| 1.1.0 | 1 year ago | 1.7 MB | MIT |
| 1.0.0 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-rc.4 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-rc.3 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-rc.2 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-rc.1 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-rc.0 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-beta.15 | 1 year ago | 1.6 MB | MIT |
| 1.0.0-beta.14 | 1 year ago | 1.6 MB | MIT |
Overview
valibot is an npm package that the modular and type safe schema library for validating structural data. It is extremely widely used, with about 16.8M downloads per week and 5 known dependents in the graph. The latest version is 1.4.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need the modular and type safe schema library for validating structural data and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (16.8M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (16 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use valibot?
Yes — valibot scores well across adoption, maintenance, weight, supply chain, and licensing. 16.8M downloads per week and 5 known dependents. Last published 73 days ago. 31 releases in the last 2 years.
How do I install valibot?
Run `npm install valibot` to add valibot to your npm project.
What license is valibot released under?
valibot is distributed under the MIT license.
How popular is valibot?
valibot has approximately 16,750,502 downloads per week and 5 known dependent packages.
Is valibot still maintained?
The most recent release of valibot (v1.4.2) was published 2 months ago.
Does valibot run install scripts?
No. valibot does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.