{"id":20618248,"url":"https://github.com/tddschn/cf-worker-template-itty-router-openapi","last_synced_at":"2026-04-21T06:32:36.209Z","repository":{"id":220616082,"uuid":"752112158","full_name":"tddschn/cf-worker-template-itty-router-openapi","owner":"tddschn","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-03T13:13:40.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-16T21:06:06.946Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tddschn.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":"2024-02-03T04:04:53.000Z","updated_at":"2024-02-03T04:12:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1c88928-a7c7-4dc9-b452-943288e94559","html_url":"https://github.com/tddschn/cf-worker-template-itty-router-openapi","commit_stats":null,"previous_names":["tddschn/cf-worker-template-itty-router-openapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tddschn/cf-worker-template-itty-router-openapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fcf-worker-template-itty-router-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fcf-worker-template-itty-router-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fcf-worker-template-itty-router-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fcf-worker-template-itty-router-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tddschn","download_url":"https://codeload.github.com/tddschn/cf-worker-template-itty-router-openapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fcf-worker-template-itty-router-openapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32080318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"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":[],"created_at":"2024-11-16T12:07:42.050Z","updated_at":"2026-04-21T06:32:36.195Z","avatar_url":"https://github.com/tddschn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Workers OpenAPI 3.1\n\n- [Cloudflare Workers OpenAPI 3.1](#cloudflare-workers-openapi-31)\n  - [Use this template](#use-this-template)\n  - [Get started](#get-started)\n  - [Project structure](#project-structure)\n  - [Development](#development)\n  - [Compared to the stock template](#compared-to-the-stock-template)\n\n\nThis is a Cloudflare Worker with OpenAPI 3.1 using [itty-router-openapi](https://github.com/cloudflare/itty-router-openapi).\n\nThis is an example project made to be used as a quick start into building OpenAPI compliant Workers that generates the\n`openapi.json` schema automatically from code and validates the incoming request to the defined parameters or request body.\n\n## Use this template\n\n```\nalias c3='npm create cloudflare@latest'\nc3 -- --template https://github.com/tddschn/cf-worker-template-itty-router-openapi \u003cname-of-your-project\u003e\n```\n\n## Get started\n\n1. Sign up for [Cloudflare Workers](https://workers.dev). The free tier is more than enough for most use cases.\n2. Clone this project and install dependencies with `npm install`\n3. Run `wrangler login` to login to your Cloudflare account in wrangler\n4. Run `wrangler deploy` to publish the API to Cloudflare Workers\n\n## Project structure\n\n1. Your main router is defined in `src/index.ts`.\n2. Each endpoint has its own file in `src/endpoints/`.\n3. For more information read the [itty-router-openapi official documentation](https://cloudflare.github.io/itty-router-openapi/).\n\n## Development\n\n1. Run `wrangler dev` to start a local instance of the API.\n2. Open `http://localhost:9000/` in your browser to see the Swagger interface where you can try the endpoints.\n3. Changes made in the `src/` folder will automatically trigger the server to reload, you only need to refresh the Swagger interface.\n\n## Compared to the stock template\n\n- CORS example\n- 404 undefined routes\n- removes `task` example\n- custom domain in `wrangler.toml`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fcf-worker-template-itty-router-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftddschn%2Fcf-worker-template-itty-router-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fcf-worker-template-itty-router-openapi/lists"}