mit einem Klick
workers-fetch
// yusukebe/workers-fetch is a curl-like CLI that boots a Worker on demand from its wrangler config and sends a single request. Reach for it instead of `bun run dev` + `curl` when you just want to check one response.
// yusukebe/workers-fetch is a curl-like CLI that boots a Worker on demand from its wrangler config and sends a single request. Reach for it instead of `bun run dev` + `curl` when you just want to check one response.
| name | workers-fetch |
| title | workers-fetch — test a Cloudflare Worker without running a dev server |
| description | yusukebe/workers-fetch is a curl-like CLI that boots a Worker on demand from its wrangler config and sends a single request. Reach for it instead of `bun run dev` + `curl` when you just want to check one response. |
| tags | ["cli","cloudflare-workers","testing","http"] |
| references | ["https://github.com/yusukebe/workers-fetch","https://developers.cloudflare.com/workers/testing/unstable_startworker/"] |
| related | ["cloudflare","hono","rj"] |
workers-fetch is a tiny curl-like CLI that uses Cloudflare's unstable_startWorker() to spin up a Worker from its wrangler.json(c) / wrangler.toml, send a single request, and print the response. Use it when you would otherwise start bun run dev in one terminal just to issue one curl in another — workers-fetch does both in one shot, then exits.
npm install -g workers-fetch
# GET / — auto-detects wrangler.jsonc in cwd
workers-fetch
# With a path
workers-fetch /skills/hono
# Other methods, headers, body
workers-fetch -X POST -H 'content-type: application/json' -d '{"a":1}' /api/foo
# Pin a config file
workers-fetch -c wrangler.toml /api/test
# Longer timeout (default 3s)
workers-fetch --timeout 10 /api/slow
Output is JSON with status, statusText, headers, and body — pipe through jq to extract a field:
workers-fetch /skills.json | jq '.body | fromjson | .skills[].id'
package.json script or CI step.bun run dev is still betterworkers-fetch re-boots the Worker on every invocation.rj — same idea, but for any HTTP endpoint over the network (not just local Workers).cloudflare — the runtime this tool drives.When a project on Hono needs real React — for the React component ecosystem, SSR, or an SPA — drop hono/jsx and wire React in via vite-ssr-components.
Owner-only. Reviews honojs/hono PRs or local branches with two checks — tests (do they pass, is the approach right) and breaking change (public API, types, hc).
Anything Cloudflare (Workers, D1, R2, KV, Durable Objects, Queues). Detailed guidance lives in the official cloudflare/skills collection.
How to add or update a skill in yusukebe/skills from inside another working project. Owner-only — uses Yusuke's local gh CLI auth.
Use @hono/inertia on the server and @ts-76/inertia-hono-jsx on the client to get SPA-style interactivity without leaving the Hono/hono-jsx stack.
Hono is the default web framework for any project here. Detailed guidance lives in the yusukebe/hono-skill collection on GitHub.