{"id":30767767,"url":"https://github.com/youpy/nihonbashi","last_synced_at":"2026-05-15T13:33:18.402Z","repository":{"id":44534660,"uuid":"457373527","full_name":"youpy/nihonbashi","owner":"youpy","description":"A type-safe routing utility","archived":false,"fork":false,"pushed_at":"2023-05-30T13:12:46.000Z","size":184,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-13T08:51:02.436Z","etag":null,"topics":["routing","typescript","utility"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/youpy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-09T13:38:01.000Z","updated_at":"2022-10-07T05:44:00.000Z","dependencies_parsed_at":"2022-09-13T13:15:05.600Z","dependency_job_id":null,"html_url":"https://github.com/youpy/nihonbashi","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/youpy/nihonbashi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fnihonbashi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fnihonbashi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fnihonbashi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fnihonbashi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youpy","download_url":"https://codeload.github.com/youpy/nihonbashi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youpy%2Fnihonbashi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"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":["routing","typescript","utility"],"created_at":"2025-09-04T20:09:19.574Z","updated_at":"2026-05-15T13:33:18.388Z","avatar_url":"https://github.com/youpy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nihonbashi\n\nA type-safe routing utility for Typescript\n\n## install\n\n```\n$ yarn add nihonbashi\n```\n\n## Usage\n\n```typescript\nimport { RouteGen } from 'nihonbashi'\n\ntype Param = string \u0026 { readonly __opaque__: 'param' }\n\nconst gen = new RouteGen\u003c{ param1: Param }\u003e()\nconst r = gen.route('/foo/:param1/bar/:param2')\n\nr({ param1: 'xxx' as Param, param2: 'yyy' }) // =\u003e '/foo/xxx/bar/yyy'\nr({ param1: 'xxx' as Param }) // =\u003e '/foo/xxx/bar/:param2'\nr({ param1: 'xxx' }) // =\u003e error: Type 'string' is not assignable to type 'Param'.\n\n// currying\ngen.route(r({ param1: 'xxx' as Param }))({ param2: 'yyy' }) // =\u003e '/foo/xxx/bar/yyy'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupy%2Fnihonbashi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoupy%2Fnihonbashi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoupy%2Fnihonbashi/lists"}