{"id":16419022,"url":"https://github.com/neo-ciber94/keiro","last_synced_at":"2026-04-11T01:50:09.369Z","repository":{"id":245960339,"uuid":"819679690","full_name":"Neo-Ciber94/keiro","owner":"Neo-Ciber94","description":"A WinterGC compilant file system router middleware","archived":false,"fork":false,"pushed_at":"2024-07-19T21:51:45.000Z","size":1712,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T17:46:56.337Z","etag":null,"topics":["bun","deno","fetch","file-system-routing","nodejs","routing"],"latest_commit_sha":null,"homepage":"https://neo-ciber94.github.io/keiro/","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/Neo-Ciber94.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-25T02:01:39.000Z","updated_at":"2024-07-19T21:51:49.000Z","dependencies_parsed_at":"2024-06-25T03:24:14.211Z","dependency_job_id":"26c7a165-544e-4fe8-b952-2e8aed3481b4","html_url":"https://github.com/Neo-Ciber94/keiro","commit_stats":null,"previous_names":["neo-ciber94/fs-web-router"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neo-Ciber94%2Fkeiro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neo-Ciber94%2Fkeiro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neo-Ciber94%2Fkeiro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neo-Ciber94%2Fkeiro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neo-Ciber94","download_url":"https://codeload.github.com/Neo-Ciber94/keiro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240468746,"owners_count":19806237,"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","deno","fetch","file-system-routing","nodejs","routing"],"created_at":"2024-10-11T07:15:39.578Z","updated_at":"2026-04-11T01:50:04.341Z","avatar_url":"https://github.com/Neo-Ciber94.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keiro\n\n[![CI](https://github.com/Neo-Ciber94/keiro/actions/workflows/ci.yml/badge.svg)](https://github.com/Neo-Ciber94/keiro/actions/workflows/ci.yml)\n[![npm version](https://badge.fury.io/js/keiro.svg)](https://badge.fury.io/js/keiro)\n[![Bundle size](https://pkg-size.dev/badge/bundle/243)](https://pkg-size.dev/keiro)\n\nA file-system router compatible with [WinterGC](https://wintercg.org/).\n\n## ⚡ Features\n\n- Middlewares\n- Request Locals\n- Worker Threads\n\n## 📖 Check out the [Docs](https://neo-ciber94.github.io/keiro/)\n\n## 📦 Examples\n\n```ts\n// src/routes/index.ts\nimport { defineHandler } from \"keiro\";\n\nexport default defineHandler(() =\u003e {\n  return new Response(\"Hello World\");\n});\n```\n\n### 🐢 Node\n\n```ts\n// src/main.ts\nimport express from \"express\";\nimport { fileSystemRouter } from \"keiro/node\";\n\nconst port = Number(process.env.PORT ?? 5022);\nconst origin = `http://localhost:${port}`;\n\nconst app = express();\napp.use(fileSystemRouter({ origin }));\n\napp.listen(port, () =\u003e {\n  console.log(`Listening on http://localhost:${port}`);\n});\n```\n\n### 🌐 Web\n\n```ts\n// src/main.ts\nimport { fileSystemRouter } from \"keiro/web\";\n\nconst port = Number(process.env.PORT ?? 5021);\n\nconst server = Bun.serve({\n  port,\n  fetch: fileSystemRouter(),\n});\n\nconsole.log(`Listening on http://${server.hostname}:${server.port}`);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo-ciber94%2Fkeiro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo-ciber94%2Fkeiro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo-ciber94%2Fkeiro/lists"}