{"id":18782277,"url":"https://github.com/lukeshay/pongjs","last_synced_at":"2026-04-28T23:34:11.954Z","repository":{"id":65333336,"uuid":"583772710","full_name":"lukeshay/pongjs","owner":"lukeshay","description":"A simple router for Cloudflare workers","archived":false,"fork":false,"pushed_at":"2023-12-15T15:00:31.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T14:15:29.400Z","etag":null,"topics":["cloudflare","cloudflare-workers","router"],"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/lukeshay.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-30T21:43:00.000Z","updated_at":"2023-01-17T22:15:05.000Z","dependencies_parsed_at":"2023-12-15T16:24:18.562Z","dependency_job_id":"fe6a5b54-9d70-4d75-9139-37b297d9f342","html_url":"https://github.com/lukeshay/pongjs","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"d6672c02b2d67cf4724ff132fa3769f9d59687a2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fpongjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fpongjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fpongjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeshay%2Fpongjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukeshay","download_url":"https://codeload.github.com/lukeshay/pongjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699584,"owners_count":19682574,"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":["cloudflare","cloudflare-workers","router"],"created_at":"2024-11-07T20:35:31.434Z","updated_at":"2025-12-19T20:30:18.963Z","avatar_url":"https://github.com/lukeshay.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Worker Router\n\nA simple router for Cloudflare workers.\n\n```ts\nimport { router } from \"@pongjs/router\";\n\nexport interface Env {\n\tDB: D1Database;\n}\n\nrouter.add(\"GET\", \"/hello/:name\", async (request: Request, env: Env) =\u003e {\n\treturn Response.json({\n\t\tmessage: `Hello, ${name}`,\n\t});\n});\n\nexport default router;\n```\n\nSee [path-to-regex](https://www.npmjs.com/package/path-to-regex) for how the paths work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeshay%2Fpongjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeshay%2Fpongjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeshay%2Fpongjs/lists"}