{"id":15891496,"url":"https://github.com/msutkowski/cloudflare-workers-typescript-router","last_synced_at":"2025-04-02T17:24:49.059Z","repository":{"id":151677106,"uuid":"311903644","full_name":"msutkowski/cloudflare-workers-typescript-router","owner":"msutkowski","description":"A template for Cloudflare workers with a fully-typed router","archived":false,"fork":false,"pushed_at":"2020-11-11T17:47:23.000Z","size":118,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T04:04:17.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/msutkowski.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":"2020-11-11T08:09:00.000Z","updated_at":"2022-04-13T07:00:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"dfec7461-fc63-4fef-b7d2-73d11610c5e9","html_url":"https://github.com/msutkowski/cloudflare-workers-typescript-router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fcloudflare-workers-typescript-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fcloudflare-workers-typescript-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fcloudflare-workers-typescript-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msutkowski%2Fcloudflare-workers-typescript-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msutkowski","download_url":"https://codeload.github.com/msutkowski/cloudflare-workers-typescript-router/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246857987,"owners_count":20845227,"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":[],"created_at":"2024-10-06T07:22:27.659Z","updated_at":"2025-04-02T17:24:49.033Z","avatar_url":"https://github.com/msutkowski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ʕ •́؈•̀) `Cloudflare Workers TS Template with a Router`\n\nThis is just used for quickly prototyping handlers with TS.\n\n## 🔋 Getting Started\n\nUpdate `wrangler.toml` with your information\n\n```shell\nyarn\nyarn dev\nwrangler preview\n```\n\n### 👩 💻 Developing\n\nThe router returns the specified request handler, and will return the [request method](https://developer.mozilla.org/en-US/docs/Web/API/Request/method) for the given request.\n\n### 🧪 Testing\n\nThis comes with mocha tests which simply test that the request handler can handle each request method. `yarn test` will run your tests.\n\n### ✏️ Formatting\n\nThis uses [`prettier`](https://prettier.io/) to format the project. To invoke, run `yarn format`.\n\n### 👀 Previewing and Publishing\n\nGithub actions will automatically deploy anything pushed to `main`.\n\nFor information on how to preview and publish workers, please see the [Wrangler docs](https://developers.cloudflare.com/workers/tooling/wrangler/commands/#publish).\n\n## ⚠️ Caveats\n\nThe `service-worker-mock` used by the tests is not a perfect representation of the Cloudflare Workers runtime. It is a general approximation. We recommend that you test end to end with `wrangler dev` in addition to a [staging environment](https://developers.cloudflare.com/workers/tooling/wrangler/configuration/environments/) to test things before deploying.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsutkowski%2Fcloudflare-workers-typescript-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsutkowski%2Fcloudflare-workers-typescript-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsutkowski%2Fcloudflare-workers-typescript-router/lists"}