Reference Edit this page on GitHub

Real-world Zod compatibility corpus

Generated: 2026-07-10T20:49:48.310Z

The corpus scans pinned public TypeScript sources without vendoring them. Counts describe observed Zod usage; compilation diagnostics compare the same self-contained files before and after replacing Zod imports. This is a compatibility measurement, not a claim of full semantic parity.

Summary

MetricResult
Repositories9
Files importing Zod1875
Observed Zod calls28758
Unique static paths41
Unique fluent methods50
Self-contained files compiled224
New TypeSea diagnostics0
Missing static paths0
Missing fluent methods0
Missing declaration exports0

The sampled self-contained files compile without replacement-only diagnostics. This result measures the pinned corpus and does not prove full Zod semantic parity. The zero budgets prevent later compatibility drift from entering unnoticed.

Repositories

RepositoryCommitLicenseZod filesCalls
t3-oss/create-t3-app4709861f7e67MIT1940
calcom/cal.diyf00434927386MIT5105373
hoppscotch/hoppscotchafc2cf181c16MIT941629
triggerdotdev/trigger.dev2cac63f13ab1Apache-2.054512489
trpc/trpc340811ba5320MIT1471511
shadcn-ui/ui3cdaa6eb2f0dMIT95874
payloadcms/payloadfd11d0796117MIT23607
medusajs/medusa917ddbe0e56bMIT1701849
supabase/supabasee5df232b44cfApache-2.02724386

Compatibility gaps

  • Static paths: none
  • Fluent methods: none
  • Type exports: none

Most frequent static APIs

APICalls
string12291
object4939
number2545
coerce.number2058
boolean1771
array1333
literal991
enum799
record434
union380
discriminatedUnion201
coerce.date160
unknown133
any118
date105
preprocess98
optional90
nativeEnum85
lazy38
coerce.boolean34
null31
tuple21
nullable19
custom14
instanceof14
undefined14
void10
coerce.string6
bigint5
intersection4

Most frequent fluent methods

APICalls
optional4462
int1595
min1556
default1232
describe654
nullable509
max467
transform350
safeParse330
parse306
trim286
refine269
nullish259
positive223
catch156
array133
or114
url112
extend111
passthrough99
superRefine78
email73
regex66
merge60
strict54
and51
nonnegative47
pipe27
partial26
uuid25

Compilation regressions

No TypeSea-only diagnostics were produced.