zod-compiler

Compile Zod schemas into zero-overhead validation functions at build time. Works with Vite, webpack, esbuild, Rollup, etc (by gajus)

Zod-compiler Alternatives

Similar projects and alternatives to zod-compiler

  1. TypeScript

    1,515 zod-compiler VS TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  2. Puter.js

    Puter.js - The Backend for AI-Generated Apps. One-shot full-stack apps with your existing AI coding tool. Puter.js gives you Auth, Storage, DB, AI & more, with up to 90% fewer AI tokens than other backend platforms.

    Puter.js logo
  3. node

    1,379 zod-compiler VS node

    Node.js JavaScript runtime ✨🐢🚀✨

  4. porffor

    14 zod-compiler VS porffor

    An ahead-of-time JavaScript compiler

  5. zerolang

    The programming language for agents

  6. scriptc

    7 zod-compiler VS scriptc

    TypeScript-to-Native Compiler

  7. pry

    4 zod-compiler VS pry

    A fast, native JSON viewer built with Perry — TypeScript compiled to native ARM64 (by PerryTS)

  8. dynascript

    project moved to https://github.com/corporatepiyush/dynajs

  9. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  10. Primes

    Prime number projects in 100+ programming languages, to compare their speed - and their programmer's cleverness (by EliasWatson)

  11. Rallly

    31 zod-compiler VS Rallly

    Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better zod-compiler alternative or higher similarity.

zod-compiler discussion

Log in or Post with

zod-compiler reviews and mentions

Posts with mentions or reviews of zod-compiler. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-07-26.
  • Scriptc by Vercel: TypeScript-to-Native Compiler
    13 projects | news.ycombinator.com | 26 Jul 2026
    Excellent problem space.

    Related problem: Using AI to write compilers that optimize runtime code. I did this for Zod.

    https://github.com/gajus/zod-compiler

    Zod schemas, compiled at build time into raw boolean chains. 2-74x faster. No code changes. The plugin swaps Zod with compiled parse.

    I wrote almost none of the optimizations. Claude did, in a loop, over 100+ iterations.

    It works because the compiled version can be diffed against real Zod. Correctness isn't a judgment call. Same as scriptc.

    This applies to every program with a reference implementation and a benchmark. Compilers, serializers, formatters, query planners, etc.

    Excited for faster Internet.

  • Compile Zod (30x faster Zod validation)
    1 project | dev.to | 19 Jun 2026
    That's zod-compiler. Same deal as hoisting – you keep writing plain Zod, the tooling reorganizes it. Drop it into your bundler:

Stats

Basic zod-compiler repo stats
2
559
8.0
3 days ago

gajus/zod-compiler is an open source project licensed under BSD 3-clause "New" or "Revised" License which is an OSI approved license.

The primary programming language of zod-compiler is TypeScript.

Popular Comparisons


Sponsored
Puter.js - The Backend for AI-Generated Apps
One-shot full-stack apps with your existing AI coding tool. Puter.js gives you Auth, Storage, DB, AI & more, with up to 90% fewer AI tokens than other backend platforms.
developer.puter.com

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?