driftkit is a tiny, dependency-free form library for React — schema validation, great DX, and 4kb gzipped. Loved by 200+ contributors.
$ npm i driftkit
# or
$ pnpm add driftkitInfer types from your schema — no casting.
4kb gzipped, zero dependencies.
React adapter today, more coming.
Helpful errors and full IntelliSense.
MIT, community-governed, no rug pulls.
Used in production by thousands of teams.
import { useForm } from "driftkit";
const form = useForm({
email: string().email(),
password: string().min(8),
});
// form.values and form.errors are fully typedA few of the people who keep driftkit moving.
Creator & maintainer
Wrote the first commit on a train.
Core maintainer
Owns the validation engine.
Docs & DX
Makes the errors friendly.
Shaped by RFCs and votes in Discord — every milestone is public.
Type inference rewrite, 4kb gzipped, zero deps. The API is locked.
The framework-agnostic core, wired to two more renderers. In beta.
First-class async rules and a server-side validation helper.
A community-requested playground for composing schemas.
Star the repo, open a PR, or sponsor a maintainer hour.
Open source lives on contributions, not vibes.