{"id":24280985,"url":"https://github.com/huakunshen/jsr-client","last_synced_at":"2026-02-06T06:02:22.061Z","repository":{"id":271538923,"uuid":"913781908","full_name":"HuakunShen/jsr-client","owner":"HuakunShen","description":"OpenAPI client for jsr API in 3 flavors","archived":false,"fork":false,"pushed_at":"2025-01-10T07:56:30.000Z","size":102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T00:34:44.023Z","etag":null,"topics":["jsr","openapi","typescript"],"latest_commit_sha":null,"homepage":"https://huakunshen.github.io/jsr-client/","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/HuakunShen.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}},"created_at":"2025-01-08T10:44:49.000Z","updated_at":"2025-03-24T08:41:53.000Z","dependencies_parsed_at":"2025-01-12T07:32:53.002Z","dependency_job_id":null,"html_url":"https://github.com/HuakunShen/jsr-client","commit_stats":null,"previous_names":["huakunshen/jsr-client"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/HuakunShen/jsr-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuakunShen%2Fjsr-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuakunShen%2Fjsr-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuakunShen%2Fjsr-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuakunShen%2Fjsr-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuakunShen","download_url":"https://codeload.github.com/HuakunShen/jsr-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuakunShen%2Fjsr-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29153142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["jsr","openapi","typescript"],"created_at":"2025-01-16T02:51:21.030Z","updated_at":"2026-02-06T06:02:22.045Z","avatar_url":"https://github.com/HuakunShen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSR API Client generated from OpenAPI\n\n**JSR Package:** https://jsr.io/@hk/jsr-client\n\n**TypeDoc:** https://huakunshen.github.io/jsr-client/\n\n## Usage\n\n### HeyAPI\n\n```ts\nimport { client, listPackageVersions } from \"@hk/jsr-client/hey-api-client\";\n\nclient.setConfig({\n  baseUrl: \"https://api.jsr.io\",\n});\n\nconst res = await listPackageVersions({\n  path: {\n    scope: \"kunkun\",\n    package: \"api\",\n  },\n});\n```\n\n### openapi-fetch\n\n```ts\nimport { getClient } from \"@hk/jsr-client\";\n\nconst client = getClient({\n  url: \"https://api.jsr.io\",\n});\n\nconst res = await client.GET(\"/scopes/{scope}/packages/{package}\", {\n  params: {\n    path: {\n      scope: \"kunkun\",\n      package: \"api\",\n    },\n  },\n});\n```\n\n### zod client\n\n```ts\nimport { createApiClient } from \"@hk/jsr-client/zod-client\";\n\nconst client = createApiClient(\"https://api.jsr.io\");\nconst res = await client.getPackage({\n  params: {\n    scope: \"kunkun\",\n    package: \"api\",\n  },\n});\n```\n\n## Generate\n\nhttps://api.jsr.io/.well-known/openapi\n\n### openapi-fetch\n\n```bash\nnpx openapi-typescript https://api.jsr.io/.well-known/openapi -o src/ts-client/schema.d.ts\n```\n\n### heyapi\n\n```bash\nwget https://api.jsr.io/.well-known/openapi\nnpx @hey-api/openapi-ts \\\n  -c @hey-api/client-fetch \\\n  -i ./openapi.yml \\\n  -o src/client\n```\n\n### zod client generation\n\n```bash\ndeno run -A npm:openapi-zod-client \"https://api.jsr.io/.well-known/openapi\" -o \"./src/zod-client.ts\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuakunshen%2Fjsr-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuakunshen%2Fjsr-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuakunshen%2Fjsr-client/lists"}