{"id":28028332,"url":"https://github.com/pykeio/zod-compiler","last_synced_at":"2025-07-25T02:13:32.739Z","repository":{"id":286373910,"uuid":"959002081","full_name":"pykeio/zod-compiler","owner":"pykeio","description":"Speed up your Zod schemas / export TypeScript definitions","archived":false,"fork":false,"pushed_at":"2025-04-23T14:42:21.000Z","size":75,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T13:18:51.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/zod-compiler","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pykeio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"pykeio","open_collective":"pyke-osai"}},"created_at":"2025-04-02T05:36:07.000Z","updated_at":"2025-06-02T06:14:39.000Z","dependencies_parsed_at":"2025-04-06T03:51:04.074Z","dependency_job_id":"b2d30b91-c985-4059-b3e7-0bcb017e0834","html_url":"https://github.com/pykeio/zod-compiler","commit_stats":null,"previous_names":["pykeio/zod-compiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pykeio/zod-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fzod-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fzod-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fzod-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fzod-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pykeio","download_url":"https://codeload.github.com/pykeio/zod-compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykeio%2Fzod-compiler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266944046,"owners_count":24010481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-11T07:09:36.733Z","updated_at":"2025-07-25T02:13:32.666Z","avatar_url":"https://github.com/pykeio.png","language":"TypeScript","funding_links":["https://github.com/sponsors/pykeio","https://opencollective.com/pyke-osai"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e⚡ \u003ccode\u003ezod-compiler\u003c/code\u003e ⚡\u003c/h1\u003e\n\u003c/div\u003e\n\n### Speed up your Zod schemas\n```ts\nimport z from 'zod';\n\nconst schema = z.object({\n\ttitle: z.string().min(3).max(64),\n\ttags: z.array(z.string()).optional(),\n\t...\n});\n\n// ❌ slow!\nconst { success, data, error } = schema.safeParse(input);\n\n// 🚀\nimport zc from 'zod-compiler';\nconst compiledSchema = zc.compile(schema);\n\nconst { success, data, error } = compiledSchema.safeParse(input);\n```\n\n### Export your Zod schemas to TypeScript types\n```ts\nconsole.log(zc.types(schema));\n// export type Schema = {\n//     title: string;\n//     tags?: string[];\n//     ...\n// };\n```\n\n## Installation\n```shell\n$ npm i --save zod-compiler\n```\n\nRequires **Zod 3.x** and **TypeScript 5.x** to be installed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykeio%2Fzod-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpykeio%2Fzod-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykeio%2Fzod-compiler/lists"}