Skip to content
React Libraries
On this page

Validate incoming data

Check forms, API payloads, and configuration against explicit schemas.

Options for this task

ArkType

Library / tool

A runtime validator with TypeScript-like schema syntax.

Good for
Validating external data while keeping schema definitions close to static types.

io-ts

Library / tool

A runtime type system for decoding and encoding data.

Good for
Validating data at application boundaries in functional TypeScript code.

Joi

Library / tool

A schema-based validation library for JavaScript.

Good for
Checking structured request payloads and configuration objects.

Superstruct

Library / tool

Composable validators for JavaScript and TypeScript values.

Good for
Checking application input with small reusable data structures.

T3 Env

Library / tool

Utilities for validating environment variables with typed schemas.

Good for
Failing early when server or client configuration is missing or invalid.

Yup

Library / tool

A schema builder for parsing and validating values.

Good for
Defining form constraints and reusable object validation rules.

Zod

Library / tool

A TypeScript-oriented schema validation library.

Good for
Validating unknown data and deriving static types from schemas.

Before you decide

Try a small, realistic example. Check the runtime, accessibility, maintenance, and license requirements for the features you need.

Browse runtime validation →

Explore more tasks →