{"id":23896595,"url":"https://github.com/brecert/radix-router-deno","last_synced_at":"2026-04-22T21:32:13.889Z","repository":{"id":113036394,"uuid":"346252307","full_name":"brecert/radix-router-deno","owner":"brecert","description":"A very simple radix tree and rotuer based on radix/patrica trees made for deno","archived":false,"fork":false,"pushed_at":"2021-03-10T06:20:38.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T22:04:04.972Z","etag":null,"topics":["deno","radix-tree","router","typescript"],"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/brecert.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":"2021-03-10T06:14:15.000Z","updated_at":"2021-03-10T06:31:47.000Z","dependencies_parsed_at":"2023-06-06T15:30:23.311Z","dependency_job_id":null,"html_url":"https://github.com/brecert/radix-router-deno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brecert/radix-router-deno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fradix-router-deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fradix-router-deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fradix-router-deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fradix-router-deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brecert","download_url":"https://codeload.github.com/brecert/radix-router-deno/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brecert%2Fradix-router-deno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32156481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"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":["deno","radix-tree","router","typescript"],"created_at":"2025-01-04T16:53:32.539Z","updated_at":"2026-04-22T21:32:13.868Z","avatar_url":"https://github.com/brecert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Radix Rotuer Deno\n\n\u003e A very simple [radix tree](radix_trees) and rotuer based on [radix/patrica trees](radix_trees) made for deno\n\nPlease note that performance hasn't actually been tested.\n\nThis isn't particuarly useful unless you have completely static routes really, there's no wildcards or any sort of advanced string matching, although I do hope to add those eventually.\n\n# Example\n\n```ts\nimport {\n  Response,\n  serve,\n  ServerRequest,\n} from \"https://deno.land/std@0.90.0/http/server.ts\";\n\nimport { Router } from \"../router.ts\";\n\ntype RouteHandler = (ctx: ServerRequest) =\u003e void;\n\nconst routes = new Router\u003cRouteHandler\u003e({\n  \"GET /\": (ctx) =\u003e {\n    ctx.respond({ body: \"hello world!\" });\n  },\n  \"GET /about\": (ctx) =\u003e {\n    ctx.respond({ body: JSON.stringify({ version: \"0.0.0\" }) });\n  },\n  \"POST /ping\": (ctx) =\u003e {\n    ctx.respond({ body: \"pong!\" });\n  },\n});\n\nconst server = serve({ port: 8080 });\nconsole.log(\"listening on localhost:8080\");\n\nfor await (const req of server) {\n  const path = `${req.method} ${req.url}`;\n  const fn = routes.getData(path);\n  if (fn) {\n    fn(req);\n  } else {\n    req.respond({ status: 404, body: \"404 not found\" });\n  }\n}\n```\n\n[radix_trees]: (https://wikipedia.org/wiki/Radix_tree)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Fradix-router-deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrecert%2Fradix-router-deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrecert%2Fradix-router-deno/lists"}