ClaudeCloudflare Developer PlatformApr 13, 2026, 12:00 AM

Workers - Local Explorer for local resource data

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

claudeenmodel: claude-haiku-4-5

Local Explorer for local resource data

Key Points

  • Browser-based interface for local resource management
  • REST API with OpenAPI specification for programmatic access
  • Support for KV, R2, D1, Durable Objects, and Workflows

Summary

Local Explorer is a new browser-based interface and REST API for viewing and editing local resource data during Cloudflare Workers development. It eliminates the need for throwaway scripts or manual inspection of .wrangler/state directories.

Key Points

  • Availability: Requires Wrangler 4.82.1+ and Cloudflare Vite plugin 1.32.0+
  • Access: Press e in terminal during local development or navigate to /cdn-cgi/explorer
  • Supported Resources:
    • KV: Browse, view, create, update, and delete key-value pairs
    • R2: List objects, manage metadata, upload files, delete objects with directory views
    • D1: Browse tables and rows, run SQL queries, edit schemas
    • Durable Objects (SQLite): Query and edit SQLite tables and schemas
    • Workflows: Manage instances, view status, trigger runs, control execution
  • REST API: OpenAPI-powered endpoint at /cdn-cgi/explorer/api enables programmatic access and AI agent integration for automated test data population and resource inspection

Full Translation

Translations

A translation section that keeps the flow of the original article.

claudejamodel: claude-haiku-4-5

Workers - ローカルリソースデータ用のLocal Explorer

Local Explorer for local resource data

公開日: 2026年4月13日

カテゴリ: Workers

Local Explorerは、開発中にローカルリソースデータを表示および編集するためのブラウザベースのインターフェースおよびREST APIです。使い捨てスクリプトを作成したり、.wrangler/stateを掘り下げたりして、Workerがローカルに保存したデータを理解する必要がなくなります。

Local Explorerは、Wrangler 4.82.1以上およびCloudflare Vite plugin 1.32.0以上で利用可能です。ローカル開発セッションを開始し、ターミナルでeを押すか、ローカル開発サーバーの/cdn-cgi/explorerに移動してください。

サポートされているリソース

Local Explorerは5つのリソースタイプをサポートし、ローカルで実行されている複数のWorkerで動作します:

  • KV — キーを参照し、値とメタデータを表示し、キーと値のペアを作成、更新、削除します。
  • R2 — オブジェクトをリストし、メタデータを表示し、ファイルをアップロードし、オブジェクトを削除します。ディレクトリビューと複数選択をサポートします。
  • D1 — テーブルと行を参照し、任意のSQLクエリを実行し、完全なデータスタジオでスキーマを編集します。
  • Durable Objects (SQLiteストレージ) — 個別のオブジェクトSQLiteテーブルを参照し、SQLクエリを実行し、スキーマを編集します。
  • Workflows — インスタンスをリストし、ステータスとステップ履歴を表示し、新しい実行をトリガーし、インスタンスを一時停止、再開、再起動、または終了します。

OpenAPI対応REST API

Local Explorerは/cdn-cgi/explorer/apiでREST APIを公開し、ブラウザで利用可能な同じ操作へのプログラマティックアクセスを提供します。ルートエンドポイントは、利用可能なすべてのエンドポイント、パラメータ、およびレスポンス形式を説明するOpenAPI仕様を返します。

curl http://localhost:8787/cdn-cgi/explorer/api

AIコーディングエージェントを/cdn-cgi/explorer/apiに向けると、手動セットアップなしでローカルリソースを検出および操作できます。これにより、エージェントがKVまたはD1にテストデータを入力したり、Durable Objectの状態を検査したり、Workflowの実行をトリガーしたり、R2にファイルをアップロードしたりできるイテレーティブな開発ループが可能になります。

詳細については、Local Explorer documentationを参照してください。