{"repo":"syumai/workers","free":true,"listed":false,"github":"https://github.com/syumai/workers","clone":"git clone https://github.com/syumai/workers.git","description":"Go package to run an HTTP server on Cloudflare Workers.","language":"Go","stars":1124,"topics":["cloudflare","cloudflare-workers","go","golang"],"license":"MIT","category":"dev-tools","readme_excerpt":"workers workers is a package to run an HTTP server written in Go on Cloudflare Workers. This package can easily serve http.Handler on Cloudflare Workers. Caution: This is an experimental project. Features [x] serve http.Handler [ ] R2 - [x] Head - [x] Get - [x] Put - [x] Delete - [x] List - [ ] Options for R2 methods [ ] KV - [x] Get - [x] List - [x] Put - [x] Delete - [ ] Options for KV methods [x] Cache API [ ] Durable Objects - [x] Calling stubs [x] D1 (alpha) [x] Environment variables [x] FetchEvent [x] Cron Triggers [x] TCP Sockets [x] Queues - [x] Producer - [x] Consumer Installation Usage implement your http.Handler and give it to workers.Serve() . or just call http.Handle and http.HandleFunc , then invoke workers.Serve() with nil. For concrete examples, see examples directory. Quick Start You can easily create and deploy a project from Deploy to Cloudflare button. If you want to create a project manually, please follow the guide below. Requirements Node.js (and npm) Go 1.24.0 or later Create a new Worker project Run the following command: After creating the project, follow the steps below to initialize it. Initialize the project 1. Navigate to your new project directory: 2. Initialize Go modules: 3. Start the development server: 4. Verify the worker is running: You will see \"Hello!\" as the response. If you want a more detailed description, please refer to the README.md file in the generated directory. FAQ How do I deploy a worker implemented in this package? To deploy","default_branch":null,"files":null,"tree":[],"storefront":"/r/syumai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/syumai/workers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}