local-explorer
Skill4.6k starsChanged 6 months agoApache-2.0View on GitHub
How to add products/resources to the local explorer or local API. Use when implementing new local APIs, or UI routes under packages/miniflare/src/workers/local-explorer or packages/local-explorer-ui.
- Reads credentials
Trending
Quiet since August.about the whole repository
Who's talking about cloudflare/workers-sdk
- cloudflare/workerd“🐛 BUG: The cache field on RequestInitializerDict is not implemented in fetch”GitHub · Apr 7, 2023 · 85 reactions
- sveltejs/kit“feat: Vite environment API”GitHub · Jul 17, 2025 · 31 reactions
- remix-run/remix“Cloudflare support for Vite”GitHub · Jan 16, 2024 · 25 reactions
- cloudflare/workerd“🐛 BUG: Workers TTFB slows down based on unused dynamic imports (additional modules)”GitHub · Mar 27, 2024 · 22 reactions
- withastro/astro“Cloudflare adapter returning [object Object]”GitHub · Oct 10, 2025 · 18 reactions
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on GitHub, Bluesky and Hacker News (17 times).
On GitHub · 14
- Apr 7, 2023🐛 BUG: The cache field on RequestInitializerDict is not implemented in fetch — cloudflare/workerd85 reactions · 61 comments
- Jul 17, 2025feat: Vite environment API — sveltejs/kit31 reactions · 16 comments
- Jan 16, 2024Cloudflare support for Vite — remix-run/remix25 reactions · 21 comments
- Mar 27, 2024🐛 BUG: Workers TTFB slows down based on unused dynamic imports (additional modules) — cloudflare/workerd22 reactions · 6 comments
- Oct 10, 2025Cloudflare adapter returning [object Object] — withastro/astro18 reactions · 15 comments
9 more on GitHub
- May 24, 2023Support Node Compat in Cloudflare Adaptor — sveltejs/kit17 reactions · 2 comments
- Oct 17, 2024Support Wrangler, the CLI for Cloudflare Workers — denoland/deno15 reactions · 8 comments
- Aug 10, 2026feat: `@cloudflare/vite-plugin` integration, take 2 — sveltejs/kit11 reactions · 5 comments
- Jul 22, 2023Feature Request — Runtime APIs: Superfluous throws — cloudflare/workerd11 reactions
- Oct 29, 2025Add --target=cloudflare support to bundler — oven-sh/bun8 reactions · 10 comments
- Nov 6, 2025placement just got better (finally) — cloudflare/cloudflare-docs7 reactions · 6 comments
- Oct 28, 2025vitest 4.0 fails with "TypeError: filename.replace is not a function" — withastro/astro7 reactions · 3 comments
- May 23, 2025'scopes' for Secret Store's secrets not retained in local development — cloudflare/developer-platform7 reactions · 7 comments
- Jul 23, 2024bun fetch to wrangler dev server crashes server and fails with "socket connection was closed unexpectedly" — oven-sh/bun7 reactions · 20 comments
On Bluesky · 2
- Oct 20, 2023📦 cloudflare / workers-sdk ⭐ 1,781 (+48) 🗒 TypeScript ⛅️ Home to Wrangler, the CLI for Cloudflare Workers® — @github-trending-js.bsky.social1 likes and repost
- Oct 20, 2023📦 cloudflare / workers-sdk ⭐ 1,734 (+4) 🗒 TypeScript ⛅️ Home to Wrangler, the CLI for Cloudflare Workers® — @github-trending.bsky.social1 likes and repost
On Hacker News · 1
- May 2, 2026Cloudflare Workers let you deploy serverless code instantly across the globe3 points
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/auto-triage-bot/AGENTS.mdAGENTS.md
- packages/create-cloudflare/AGENTS.mdAGENTS.md
- packages/miniflare/AGENTS.mdAGENTS.md
- packages/vite-plugin-cloudflare/AGENTS.mdAGENTS.md
- packages/vitest-plugin/AGENTS.mdAGENTS.md
- packages/workers-auth/AGENTS.mdAGENTS.md
- packages/workers-utils/AGENTS.mdAGENTS.md
- packages/wrangler/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 8 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Use this skill when adding a new product or resource type to the local API and/or local explorer.
- Distinctive: line 12
Read these files before editing:
- Distinctive: line 20
If there are UI changes, also read:
- Very specific: line 28
Add the API surface to packages/miniflare/scripts/openapi-filter-config.ts.
- Very specific: line 37
Add or extend resource binding metadata in packages/miniflare/src/plugins/core/types.ts.
- Very specific: line 42
Add Miniflare tests in packages/miniflare/test/plugins/local-explorer/<product>.spec.ts.
- Distinctive: line 49
Add UI routes/components. Use Kumo components for new UI.
- Very specific: line 50
Add Playwright e2e tests under packages/local-explorer-ui/src/__e2e__/<product>/ for new visible product flows.
- Very specific: line 54
Do not edit generated files like packages/miniflare/src/workers/local-explorer/openapi.local.json or …
- Distinctive: line 55
Prefer upstream Cloudflare API paths when a public API exists.
- Very specific: line 56
Use extensions.paths in openapi-filter-config.ts only for local-only APIs or APIs that do not exist in the public Cloudflare API.
- Distinctive: line 57
Add ignores for unsupported params, headers, request body properties, and response fields rather than pretending to support them.
- Very specific: line 63
If an API needs direct filesystem access, call through the loopback service (c.env.MINIFLARE_LOOPBACK) to a Node.js endpoint.
- Very specific: line 64
If an endpoint needs metadata that is not available on the runtime binding itself, put that metadata in BindingIdMap and pass it through …
- Very specific: line 65
If a product should appear in /api/local/workers, add it to WorkerResourceBindings and populate it in constructExplorerWorkerOpts().
- Very specific: line 71
Add route files under packages/local-explorer-ui/src/routes/.
- Distinctive: line 73
Use Kumo for new UI components wherever possible.
- Distinctive: line 74
Do not use tailwindCSS color tokens, use Kumo color tokens instead.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cloudflare Local Explorer Products
Use this skill when adding a new product or resource type to the local API and/or local explorer.
Start Here
Read these files before editing:
packages/miniflare/src/workers/local-explorer/explorer.worker.tspackages/miniflare/src/plugins/core/explorer.tspackages/miniflare/src/plugins/core/types.ts- One existing resource implementation in
packages/miniflare/src/workers/local-explorer/resources/, preferably the product most similar to the new one - One matching test in
packages/miniflare/test/plugins/local-explorer/
If there are UI changes, also read:
packages/local-explorer-ui/src/components/Sidebar.tsx- Existing route files under
packages/local-explorer-ui/src/routes/ - Existing product e2e tests under
packages/local-explorer-ui/src/__e2e__/
Workflow
- Add the API surface to
packages/miniflare/scripts/openapi-filter-config.ts. - Generate Miniflare's filtered spec and backend types from a full Cloudflare OpenAPI spec:
OPENAPI_INPUT_PATH=<path-to-full-openapi-spec> pnpm --dir packages/miniflare generate:api- Inspect
packages/miniflare/src/workers/local-explorer/openapi.local.jsonand generated types. If the generated schemas include fields local explorer will not support, add ignores inopenapi-filter-config.tsand regenerate. - The explorer worker should have access to all user resource bindings. Ensure
proxyBindingsinclude bindings to the new product and thatgetExplorerServices()exposes any extra bindings the explorer worker needs. Wire product bindings throughconstructExplorerBindingMap()andconstructExplorerWorkerOpts()inpackages/miniflare/src/plugins/core/explorer.ts. - Add or extend resource binding metadata in
packages/miniflare/src/plugins/core/types.ts. - Implement handlers in
packages/miniflare/src/workers/local-explorer/resources/<product>.ts. Make sure to account for cross-instance aggregation, if applicable. - Register Hono routes in
packages/miniflare/src/workers/local-explorer/explorer.worker.ts. - Validate request bodies and query params with generated Zod schemas from
generated/zod.gen.tsusingvalidateRequestBody()andvalidateQuery(). - Return Cloudflare API envelope responses using
wrapResponse()anderrorResponse()fromcommon.tsunless an existing endpoint for that product uses a different response shape. - Add Miniflare tests in
packages/miniflare/test/plugins/local-explorer/<product>.spec.ts. - Regenerate the UI API client:
pnpm --dir packages/local-explorer-ui build- Add UI routes/components. Use Kumo components for new UI. See https://github.com/cloudflare/kumo/blob/main/AGENTS.md.
- Add Playwright e2e tests under
packages/local-explorer-ui/src/__e2e__/<product>/for new visible product flows.
OpenAPI Rules
- Do not edit generated files like
packages/miniflare/src/workers/local-explorer/openapi.local.jsonorpackages/miniflare/src/workers/local-explorer/generated/directly. - Prefer upstream Cloudflare API paths when a public API exists.
- Use
extensions.pathsinopenapi-filter-config.tsonly for local-only APIs or APIs that do not exist in the public Cloudflare API. - Add ignores for unsupported params, headers, request body properties, and response fields rather than pretending to support them.
Backend Patterns
- Local list endpoints such as listing KV namespaces should not implement pagination as this may require cross-instance aggregation. Pagination should be supported when targeting individual resources, such as listing KV keys within a specific namespace.
- For cross-worker aggregation, use
aggregateListResults(),getPeerUrlsIfAggregating(), andfetchFromPeer()fromaggregation.ts; do not hand-roll peer discovery. Add tests for both local-only behavior and aggregated behavior when the product can span multiple instances. - If an API needs direct filesystem access, call through the loopback service (
c.env.MINIFLARE_LOOPBACK) to a Node.js endpoint. The local explorer API runs inside workerd, so it cannot access the host filesystem directly. - If an endpoint needs metadata that is not available on the runtime binding itself, put that metadata in
BindingIdMapand pass it throughCoreBindings.JSON_LOCAL_EXPLORER_BINDING_MAP. - If a product should appear in
/api/local/workers, add it toWorkerResourceBindingsand populate it inconstructExplorerWorkerOpts().
UI Patterns
- The UI API client is generated from
packages/miniflare/src/workers/local-explorer/openapi.local.jsonintopackages/local-explorer-ui/src/api/generated/. - Sidebar resources come from
/api/local/workers; updateLocalExplorerWorkerBindingsusage andSidebar.tsxwhen the product should appear in navigation. - Add route files under
packages/local-explorer-ui/src/routes/. TanStack Router regeneratessrc/routeTree.gen.tsduring UI build/dev. - Preserve worker selection by carrying the
workersearch param through product links when following sidebar patterns. - Use Kumo for new UI components wherever possible. Do not introduce a parallel component system.
- Do not use tailwindCSS color tokens, use Kumo color tokens instead.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

