Zod
TypeScript-first schema validation
JS/TS
—
Overall Rank
Not in top 20
26.7%
Pick Rate
20 of 75 (CI: 18–37.6%)
20
Primary Picks
of 75 extractable
18
Alt Picks
also mentioned 19x
Strong Default
Category Tier
52% winner dominance
In Forms & Validation
Full comparison →React Hook Form39/75 (52%) CI: 40.9–62.9%
Zod20/75 (26.7%) CI: 18–37.6%
Custom/DIY15/75 (20%) CI: 12.5–30.4%
By Model
Sonnet 4.5
41.7%
avg across repos
Opus 4.5
40%
avg across repos
Opus 4.6
69.2%
avg across repos
Per-Repo Breakdown
| Repo | Stack | Sonnet | Opus 4.5 | Opus 4.6 |
|---|---|---|---|---|
TaskFlowJS/TS | Next.js 14, TypeScript, App Router | 41.7% | 40% | 69.2% |
Key Insight
Zod often appears as standalone validation. Custom/DIY reflects React SPAs building validation from scratch.
Frequently Asked Questions
- Does Claude Code recommend Zod?
- Zod appears in 26.7% of Forms & Validation responses. It competes with React Hook Form (52%) in this category.
- What forms & validation tool does Claude Code prefer?
- React Hook Form leads at 52%. The category is classified as "Strong Default" (50–75% dominance). Other options include Zod (26.7%) and Custom/DIY (20%).
- How do different Claude models compare on Zod?
- Across repos, Sonnet 4.5 averages 41.7%, Opus 4.5 averages 40%, and Opus 4.6 averages 69.2% for Zod.