{"id":15239094,"url":"https://github.com/bunsvr/router","last_synced_at":"2025-10-05T01:31:39.340Z","repository":{"id":65148251,"uuid":"583820661","full_name":"bunsvr/router","owner":"bunsvr","description":"A blazing-fast router for Stric","archived":true,"fork":false,"pushed_at":"2023-10-29T14:27:06.000Z","size":243,"stargazers_count":50,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-16T13:34:24.292Z","etag":null,"topics":["bun","router","stric"],"latest_commit_sha":null,"homepage":"https://stricjs.netlify.app/#/basic/routing/main","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/bunsvr.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":"2022-12-31T03:24:17.000Z","updated_at":"2024-07-23T17:11:24.000Z","dependencies_parsed_at":"2023-02-18T17:30:59.380Z","dependency_job_id":"62985efb-132f-469c-a2d1-322fe441b3c7","html_url":"https://github.com/bunsvr/router","commit_stats":{"total_commits":62,"total_committers":2,"mean_commits":31.0,"dds":0.467741935483871,"last_synced_commit":"b93f46de34290684917b9fcd1b75a85fdfeab052"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunsvr%2Frouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunsvr%2Frouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunsvr%2Frouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bunsvr%2Frouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bunsvr","download_url":"https://codeload.github.com/bunsvr/router/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235348732,"owners_count":18975720,"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":["bun","router","stric"],"created_at":"2024-09-29T10:05:17.015Z","updated_at":"2025-10-05T01:31:33.981Z","avatar_url":"https://github.com/bunsvr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"An minimal, heavily-optimized router for Stric.\r\n\r\n```typescript\r\nimport { Router, macro } from '@stricjs/router';\r\n\r\n// Create a router and serve using Bun\r\nexport default new Router()\r\n  // Handle GET request to `/`\r\n  .get('/', macro('Hi'))\r\n  // Handle POST request to `/json`\r\n  .post('/json', ctx =\u003e ctx.data, { body: 'json', wrap: 'json' })\r\n  // Return 90 for requests to `/id/90` for instance\r\n  .get('/id/:id', ctx =\u003e ctx.params.id, { wrap: true })\r\n  // Use the default 404 handler\r\n  .use(404);\r\n```\r\n\r\nSee the [docs](https://stricjs.netlify.app) for more details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunsvr%2Frouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbunsvr%2Frouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbunsvr%2Frouter/lists"}