zod-compiler turns Zod schemas into build-time validation functions, up to 43x faster
hichaelmart · x · 2026-08-19
Open-source zod-compiler compiles existing Zod schemas into zero-overhead validation functions at build time — 1.2–43x faster validation with no code changes, and up to 190x on rejected input. It works with Vite, webpack, esbuild and Rollup, and has been tested in large projects with tens of thousands of schemas.
Default automatic mode detects and compiles every exported Zod schema with no wrappers or extra imports. Developer thomasankcorn reported it halved their memory usage. The repo currently sits at 761 stars.
More from coding & agent
- Holistic Evaluation of Memory Substrates in Long-Horizon Agents — Wei-Chieh Huang · 2026-08-19
- Fable One-Shots Old Minecraft Mod Port to Newer Version — repligate · 2026-08-19
- Is Agent Continuity About Preserving State or Coherent Trajectories? — National_Actuator_89 · 2026-08-19
- Databricks competition winners share lessons: parsing unsolved, build on coding agents — EchoShao8899 · 2026-08-19
- Langfuse Deep Dive: How This Open Source LLM Observability Platform Solves Production "Magic" — 大模型之路 · 2026-08-19
- GitHub Outage Inspires Durable Objects-based Git Forge — tobowers · 2026-08-19