Validate everything.
At lightning speed.
VLD is a zero-dependency TypeScript schema validator — the drop-in Zod replacement that parses millions of ops/sec, speaks 27+ languages, and ships a Result pattern your control flow will love.
- 0.00×
- faster than Zod 4
- 0
- runtime dependencies
- 0+
- error languages
- 0
- tests · 100% cov.
Don't take our word for it. Break it.
This page embeds the actual @oxog/vld library, running in your browser right now. Edit the JSON, switch the error language, watch it validate on every keystroke.
Numbers don't flinch. Neither do we.
Every commit runs the benchmark suite in CI with Zod performance floors — regressions fail the build. These are the numbers from the latest run.
node 24 · relative throughput per op-class · run it yourself: npx @oxog/vld bench
A tiny library with an unfair arsenal.
Everything you'd expect from a modern validator — and a few things you wouldn't. All of it in a package with zero runtime dependencies.
Drop-in Zod replacement
Keep your schemas. Keep your types. Swap one import path and watch your benchmarks rewrite themselves — Zod 4 subpath parity included.
Result pattern, built-in
Ok / Err / tryCatch / match — no thrown exceptions in your hot path.
runtime dependencies
Pure TypeScript. Nothing to audit, nothing to break your lockfile.
languages, lazy-loaded
error messages your users actually read
Static type inference
v.infer<typeof S> — your schema is your type. One source of truth.
Tree-shakeable mini API
Bundle-constrained? Import only what you parse. The rest never ships.
Plugin system
Extend schemas with your own kernels, formats and transforms — first-class hooks.
Bidirectional codecs
JSON, base64, hex — parse, encode and decode with the same fluent chains.
The shortest migration you'll ever ship.
No rewrites. No new mental model. One line changed, one benchmark to brag about.
Swap the import
Point zod at @oxog/vld/v4. Schemas, types and errors keep working — 28/28 parity tests say so.
Run your suite
Existing tests stay green. Benchmarks get 3× headroom on the same hardware.
Delete a dependency
Drop zod from package.json. Your node_modules just lost weight — 0 runtime deps left behind.
$ npm install @oxog/vldYour schemas deserve jet fuel.
One install. One import. 3× the speed. The rest of your app won't even notice — your users will.