colinhacks/zod
TypeScript-first 結構驗證函式庫,定義 schema 即得靜態型別與執行期驗證。 TypeScript-first schema validation with static type inference
runtime-validationschema-validationstatic-typestype-inferencetypescript
AI 推薦理由 Why AI picked it
定義 schema 後 .parse 即可取得型別安全的深拷貝結果,支援 JSON Schema 轉換與 AOT 編譯加速,適用於任何需要執行期驗證的 TS/JS 專案。零依賴、2kb 核心,npm install 即可使用,成熟度與生態明確。 Define schema then .parse returns type-safe deep clone; supports JSON Schema conversion and AOT compilation. Zero dependencies, 2kb core, npm install ready. Mature ecosystem for TS/JS runtime validation.
上榜紀錄 Trending history
- 2026-09-08 每週 Weekly #16
- 2026-09-07 每週 Weekly #13
- 2026-09-05 每週 Weekly #12
- 2026-09-04 每週 Weekly #15
- 2026-09-03 每週 Weekly #18
- 2026-08-31 每日 Daily #16