Paste a package.json JSON payload and get a Valibot v.object schema you can run inside your handler. Smaller bundle than Zod, same boundary guarantee — useful for Cloudflare Workers, Vercel Edge, and any runtime where bundle size matters.
Tools that read package.json (build wrappers, monorepo managers, registry analyzers) crash hard when a manifest is malformed or uses an unfamiliar field shape. A parse turns a malformed exports map into one named error at the top of the tool, not a deep-property crash twenty calls in.
Build tools that ship to the browser (online package explorers, in-browser monorepo viewers, devtools panels) benefit from Valibot's smaller footprint at first paint — and the validator only pulls in the v.string / v.number / v.optional primitives the manifest actually uses. The output is a copy-paste-runnable v.object using the canonical namespace import (import * as v from "valibot"); only the primitives your shape actually uses (v.string, v.number, v.array, v.union, v.optional) get pulled in.