{"id":16585272,"url":"https://github.com/antonvasin/routeno","last_synced_at":"2026-04-29T02:44:05.135Z","repository":{"id":51676138,"uuid":"507078606","full_name":"antonvasin/routeno","owner":"antonvasin","description":"Small, zero-dependency router for Deno using URLPattern","archived":false,"fork":false,"pushed_at":"2024-03-01T15:11:55.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T08:47:01.032Z","etag":null,"topics":["deno","router","urlpattern"],"latest_commit_sha":null,"homepage":"","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/antonvasin.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}},"created_at":"2022-06-24T16:36:58.000Z","updated_at":"2022-11-01T17:20:55.000Z","dependencies_parsed_at":"2022-08-13T01:01:17.410Z","dependency_job_id":null,"html_url":"https://github.com/antonvasin/routeno","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/antonvasin/routeno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonvasin%2Frouteno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonvasin%2Frouteno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonvasin%2Frouteno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonvasin%2Frouteno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonvasin","download_url":"https://codeload.github.com/antonvasin/routeno/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonvasin%2Frouteno/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263047660,"owners_count":23405280,"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":["deno","router","urlpattern"],"created_at":"2024-10-11T22:47:23.535Z","updated_at":"2026-04-29T02:43:55.122Z","avatar_url":"https://github.com/antonvasin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# routeno\n\nSmall opinionated router for Deno.\n\n- Uses `URLPattern` for route matching which supports Express-like route params\n- Does not extend `Request` or have any helper functions\n- Strives to be very simple and very minimal\n\n## Usage\n\n```typescript\nimport { createRouter } from \"https://deno.land/x/routeno@0.1.0/mod.ts\";\nimport { serve } from \"https://deno.land/std@0.145.0/http/mod.ts\";\n\nfunction getProject(req: Request, params: Record\u003c\"id\", string\u003e) {\n  return new Response(getProjectById(params.id));\n}\n\nconst router = createRouter({\n  \"/api/projects\": {\n    \"GET\": getProjects,\n    \"POST\": createProject,\n  },\n  \"/api/projects/:id\": {\n    \"GET\": getProject,\n  },\n  \"/api/check\": check, // Will respond to any HTTP method\n});\n\nawait serve(router);\n```\n\n## Design\n\nGoal is to have tiny wrapper around standard `Request`, `Response` and\n`URLPattern` workflow.\n\nIt doesn't have middleware interface (e.g. `router.get('/route', endpoint)`) and\naccepts mapping object instead.\n\nRouter does not extend default `Request` object and instead passes route params\nas second argument to handler function.\n\n## Performance\n\nThis router written to be as fast as possible while using `URLPattern` (which\nuses `path-to-regexp`), which is slower than, e.g. using Radix Trees or RegEx\nfor matching.\n\nBenchmark script with comparison to several popular Deno routers is available.\nRun it with `deno bench --unstable`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonvasin%2Frouteno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonvasin%2Frouteno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonvasin%2Frouteno/lists"}