https://github.com/ryanccn/worker-template
Cloudflare Worker template with Hono, Wrangler, TypeScript, and ESLint
https://github.com/ryanccn/worker-template
cloudflare cloudflare-worker cloudflare-workers eslint hono serverless typescript wrangler
Last synced: 2 months ago
JSON representation
Cloudflare Worker template with Hono, Wrangler, TypeScript, and ESLint
- Host: GitHub
- URL: https://github.com/ryanccn/worker-template
- Owner: ryanccn
- License: cc0-1.0
- Created: 2023-07-01T08:25:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T03:39:04.000Z (2 months ago)
- Last Synced: 2025-04-14T04:32:49.034Z (2 months ago)
- Topics: cloudflare, cloudflare-worker, cloudflare-workers, eslint, hono, serverless, typescript, wrangler
- Language: TypeScript
- Homepage:
- Size: 496 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# worker-template
This is a template for building a [Cloudflare Worker](https://workers.cloudflare.com/).
It uses [**Hono**](https://hono.dev/) as the underlying framework that handles routing, body parsing, and much more. [TypeScript](https://www.typescriptlang.org/) is used for type safety, along with [TypeScript ESLint](https://typescript-eslint.io/). [Wrangler](https://developers.cloudflare.com/workers/wrangler/) is Cloudflare's official CLI that handles deployment and local development. [GitHub Actions](https://docs.github.com/en/actions) lint the codebase and deploy to Cloudflare on push. [Prettier](https://prettier.io/) is used for code formatting. The package manager is [pnpm](https://pnpm.io/).
## Getting started
1. [Use this template](https://github.com/ryanccn/worker-template/generate) on GitHub.

2. [Create an API token](https://dash.cloudflare.com/profile/api-tokens) on Cloudflare with the default Edit Workers template and set it as a repository secret named `CLOUDFLARE_API_TOKEN`.
3. Rerun the failed deploy run.## License
Creative Commons Zero v1.0 Universal (Public Domain)