{"id":29079426,"url":"https://github.com/axtk/unpack-schema","last_synced_at":"2025-07-11T03:07:14.736Z","repository":{"id":300453077,"uuid":"1001950361","full_name":"axtk/unpack-schema","owner":"axtk","description":"Define and extract common schema types without importing those packages","archived":false,"fork":false,"pushed_at":"2025-06-21T19:40:42.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T19:41:52.529Z","etag":null,"topics":["inference","schema","typed-schema","yup","zod"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unpack-schema","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axtk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-14T11:44:44.000Z","updated_at":"2025-06-21T19:40:45.000Z","dependencies_parsed_at":"2025-06-21T19:41:55.021Z","dependency_job_id":"099dead7-cb76-4571-b44e-7826499e90bd","html_url":"https://github.com/axtk/unpack-schema","commit_stats":null,"previous_names":["axtk/unpack-schema"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/axtk/unpack-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtk%2Funpack-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtk%2Funpack-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtk%2Funpack-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtk%2Funpack-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axtk","download_url":"https://codeload.github.com/axtk/unpack-schema/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtk%2Funpack-schema/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264719240,"owners_count":23653542,"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","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":["inference","schema","typed-schema","yup","zod"],"created_at":"2025-06-27T17:02:38.096Z","updated_at":"2025-07-11T03:07:14.716Z","avatar_url":"https://github.com/axtk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unpack-schema\n\n*Define and extract Zod or Yup schema types without importing those packages*\n\n🔹 Define types accepting schemas created with Zod or Yup in an abstract way without importing those packages:\n\n```ts\nimport type {Schema} from 'unpack-schema';\n\ntype ParamsShape = Record\u003cstring, unknown\u003e;\ntype Params = Schema\u003cParamsShape\u003e;\n```\n\n🔹 Extract types from Zod/Yup schemas without importing `.infer` or `InferType` of those packages:\n\n```ts\nimport type {UnpackedSchema} from 'unpack-schema';\n\nfunction process(params: UnpackedSchema\u003cParams, ParamsShape\u003e) {\n    // ...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtk%2Funpack-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxtk%2Funpack-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtk%2Funpack-schema/lists"}