Measures the (tree shaken) size of a schema and validation defined with each library.
This will have a direct correlation with download time.
| Library | Version | Downloads (/wk) | Uncompressed | Gzipped | Time | ||
|---|---|---|---|---|---|---|---|
ajv | 8.20.0 | 290.47M | 136.48 KB | 38.47 KB | 53 ms | ||
zod | 4.4.3 | 180.69M | 63.92 KB | 17.05 KB | 23 ms | ||
zod (default) | 4.4.3 | 180.69M | 268.75 KB | 60.9 KB | 83 ms | ||
zod/mini | 4.4.3 | 180.69M | 15.67 KB | 5.04 KB | 7 ms | ||
zod/v3 | 4.4.3 | 180.69M | 55.6 KB | 12.63 KB | 17 ms | ||
zod/v3 (default) | 4.4.3 | 180.69M | 58.53 KB | 13.72 KB | 19 ms | ||
joi | 18.2.1 | 19.35M | 169.5 KB | 52.31 KB | 71 ms | ||
effect | 3.21.2 | 16.32M | 183.51 KB | 55.49 KB | 76 ms | ||
effect@beta | 4.0.0-beta.71 | 16.32M | 56.53 KB | 18.38 KB | 25 ms | ||
valibot | 1.4.1 | 10.84M | 6.22 KB | 1.93 KB | 3 ms | ||
yup | 1.7.1 | 10.62M | 41.13 KB | 12.78 KB | 17 ms | ||
superstruct | 2.0.2 | 4.9M | 4.79 KB | 1.9 KB | 3 ms | ||
typebox | 1.1.38 | 3.8M | 118.59 KB | 31.08 KB | 42 ms | ||
typebox (compile) | 1.1.38 | 3.8M | 139.26 KB | 36.67 KB | 50 ms | ||
typebox (namespace + compile) | 1.1.38 | 3.8M | 112.78 KB | 31.11 KB | 42 ms | ||
typebox (namespace) | 1.1.38 | 3.8M | 91.53 KB | 25.35 KB | 35 ms | ||
typebox (schema + compile) | 1.1.38 | 3.8M | 59.21 KB | 17.08 KB | 23 ms | ||
typebox (schema) | 1.1.38 | 3.8M | 42.98 KB | 12.53 KB | 17 ms | ||
typebox (script) | 1.1.38 | 3.8M | 101.86 KB | 26.52 KB | 36 ms | ||
io-ts | 2.2.22 | 2.99M | 12.23 KB | 3.51 KB | 5 ms | ||
arktype | 2.2.0 | 1.01M | 149 KB | 44.59 KB | 61 ms | ||
@sapphire/shapeshift | 4.0.0 | 777.87K | 74.79 KB | 17.72 KB | 24 ms | ||
runtypes | 7.0.4 | 282.69K | 15.22 KB | 4.68 KB | 6 ms | ||
typia | 12.1.1 | 275.54K | 7.71 KB | 1.65 KB | 2 ms | ||
sury | 11.0.0-alpha.6 | 236.4K | 24.81 KB | 9.2 KB | 13 ms | ||
decoders | 2.9.3 | 48.89K | 7.98 KB | 3.08 KB | 4 ms | ||
ata-validator | 0.18.2 | 2.58K | 164.46 KB | 40.19 KB | 55 ms | ||
@railway-ts/pipelines | 0.1.29 | 63 | 4.03 KB | 1.52 KB | 2 ms |