{"id":44576135,"url":"https://github.com/ofabiodev/elysia-routing","last_synced_at":"2026-02-14T05:10:38.796Z","repository":{"id":332963873,"uuid":"1135746006","full_name":"ofabiodev/elysia-routing","owner":"ofabiodev","description":"🧭 Declarative routing for Elysia that turns simple definitions into clean predictable routes.","archived":false,"fork":false,"pushed_at":"2026-01-16T14:36:02.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-17T04:41:43.950Z","etag":null,"topics":["autoroute","autorouting","elysia","elysia-plugin","elysiajs","middleware"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/elysia-routing","language":"TypeScript","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/ofabiodev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ofabiodev"]}},"created_at":"2026-01-16T14:33:18.000Z","updated_at":"2026-01-16T14:39:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ofabiodev/elysia-routing","commit_stats":null,"previous_names":["ofabiodev/elysia-routing"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ofabiodev/elysia-routing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabiodev%2Felysia-routing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabiodev%2Felysia-routing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabiodev%2Felysia-routing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabiodev%2Felysia-routing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofabiodev","download_url":"https://codeload.github.com/ofabiodev/elysia-routing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofabiodev%2Felysia-routing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29437371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T03:34:37.767Z","status":"ssl_error","status_checked_at":"2026-02-14T03:34:09.092Z","response_time":53,"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":["autoroute","autorouting","elysia","elysia-plugin","elysiajs","middleware"],"created_at":"2026-02-14T05:10:38.287Z","updated_at":"2026-02-14T05:10:38.788Z","avatar_url":"https://github.com/ofabiodev.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ofabiodev"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://github.com/ofabiodev/elysia-routing/blob/main/.github/assets/logo.svg\" align=\"center\" width=\"200\" alt=\"Elysia Routing Logo\"\u003e\n \u003ch1 align=\"center\"\u003eElysia Routing\u003c/h1\u003e\n \u003cp align=\"center\"\u003e\n  File-based routing for Elysia with built-in type-safe validation.\n \u003c/p\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n\u003cp align=\"center\"\u003e\n \u003ca href=\"https://github.com/ofabiodev/elysia-routing/actions?query=branch%3Amain\" rel=\"nofollow\"\u003e\u003cimg alt=\"GitHub Actions Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/ofabiodev/elysia-routing/ci_test.yml?branch=main\u0026event=push\"\u003e\u003c/a\u003e\n \u003ca href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/badge/license-MIT-brightgreen\"\u003e\u003c/a\u003e\n \u003ca href=\"https://www.npmjs.com/package/elysia-routing\" rel=\"nofollow\"\u003e\u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dw/elysia-routing\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Why Elysia Routing?\n\nStop manually registering routes. **elysia-routing** scans your file structure and automatically creates routes based on filenames. Add type-safe validation with zero dependencies, keep your codebase organized, and scale without the boilerplate.\n\n## Installation\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd width=\"300\"\u003e\n\n```bash\n# Using Bun\nbun add elysia-routing\n```\n\n\u003c/td\u003e\n\u003ctd width=\"300\"\u003e\n\n```bash\n# Using NPM\nnpm install elysia-routing\n```\n\n\u003c/td\u003e\n\u003ctd width=\"300\"\u003e\n\n```bash\n# Using Yarn\nyarn add elysia-routing\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Supported Conventions\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eConvention\u003c/th\u003e\n    \u003cth\u003eExample\u003c/th\u003e\n    \u003cth\u003eResult\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003e(group)\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003e(admin)/dashboard.get.ts\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eGET /dashboard\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003e[param]\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eusers/[id]/index.get.ts\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eGET /users/:id\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eindex\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eusers/index.post.ts\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003ePOST /users\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003ename.method\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eusers/profile.get.ts\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eGET /users/profile\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003e.all\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003ehealth.all.ts\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003eAll HTTP methods\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Examples\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cblockquote\u003eroutes/index.get.ts\u003c/blockquote\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"1200\"\u003e\n\n```ts\nimport { defineRoute } from \"elysia-routing\"\n\nexport default defineRoute({\n  handler: () =\u003e ({ message: \"Hello World\" })\n})\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cblockquote\u003eroutes/users/[id]/index.get.ts\u003c/blockquote\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"1200\"\u003e\n\n```ts\nimport { defineRoute, v } from \"elysia-routing\"\n\nexport default defineRoute({\n  schema: {\n    params: v.object({\n      id: v.string()\n    })\n  },\n  handler: ({ params }) =\u003e ({\n    user: { id: params.id }\n  })\n})\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cblockquote\u003eroutes/users/index.post.ts\u003c/blockquote\u003e\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd width=\"1200\"\u003e\n\n```ts\nimport { defineRoute, v } from \"elysia-routing\"\n\nexport default defineRoute({\n  schema: {\n    body: v.object({\n      name: v.string().min(3),\n      email: v.string().regex(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/),\n      age: v.number().min(18)\n    })\n  },\n  handler: ({ body }) =\u003e ({\n    created: body\n  })\n})\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\n[MIT](LICENSE) © [ofabiodev](https://github.com/ofabiodev)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofabiodev%2Felysia-routing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofabiodev%2Felysia-routing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofabiodev%2Felysia-routing/lists"}