Skip to content

The best Ajv alternatives

4 tools that do a similar job to Ajv, 4 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

Ajv

A fast library that checks whether JSON data matches a schema, for Node.js and browsers.

  1. 1

    Zod

    Open source · MIT · ★ 44.2k

    TypeScript-first library for validating data at runtime and inferring static types from the same schema.

    Best for: TypeScript developers who want runtime checks that match their static types; Teams validating API request or response data in TypeScript projects

  2. 2

    Formily

    Open source · MIT · ★ 12.6k

    A form library for React and Vue that handles complex and JSON-schema-driven forms.

    Best for: Frontend developers building data-heavy forms with many linked fields; Teams that want forms generated from JSON Schema sent by a back end

  3. 3

    Pydantic

    Open source · MIT · ★ 29.3k

    Validates Python data using standard type hints, converting and checking inputs automatically.

    Best for: Python developers who already use type hints and want runtime checks on incoming data; Teams parsing JSON or config files into typed objects

  4. 4

    SQLModel

    Open source · MIT · ★ 18.5k

    A Python library for working with SQL databases using Python classes, built on Pydantic and SQLAlchemy.

    Best for: Python developers building FastAPI applications that use a SQL database; Developers who already know SQLAlchemy or Pydantic and want less duplicated model code

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to Ajv. We don't take payment for placement.