Workers Tail Pro
VS Code extension for tailing Cloudflare Workers with npx wrangler tail <worker> --format json, parsing the JSON stream, and exploring requests, logs, and exceptions in a dedicated panel.
Publisher: Gentil DevKit Tools (gentil-devkit). Not published to the Marketplace from this repo.

Features
- Workers Tail Pro: Start Tail — spawns Wrangler tail, parses each JSON line, and streams events to the panel.
- Filters — outcome (ok/error), HTTP status class (2xx–5xx), HTTP method, free-text search across URL, logs, and errors.
- Grouped errors — exceptions grouped by message + top stack frame with counts.
- Stack traces — click a frame to open the file in the workspace when the path resolves.
- Export — Workers Tail Pro: Export Filtered Events writes the current filtered set to JSON.
Setup
Open a folder that contains wrangler.jsonc, wrangler.json, or wrangler.toml (worker name is used automatically).
Install dependencies and compile (for local dev):
npm install
npm run compile
Press F5 (Run Extension) or install the packaged .vsix from dist-release/.
Run Workers Tail Pro: Start Tail from the Command Palette.
Ensure Wrangler is available (npx wrangler / Cloudflare login) in your environment.
Licensing (SasPay + license Worker)
- 7-day trial begins on first extension activation (
globalState).
- After purchase via SasPay, buyers receive a license key by email (see
license-worker/).
- Enter the key with Workers Tail Pro: Enter License Key (stored in VS Code Secret Storage).
- The extension calls the devkit-licenses Worker (
POST /verify at LICENSE_WORKER_VERIFY_URL in src/constants.ts — currently https://devkit-licenses.gentillenoir075.workers.dev/verify).
- Cached validation, periodic re-check, and offline grace if the Worker is unreachable.
Product copy and checkout notes: SALES.md. SasPay API references used: SAASPAY-DOCS-REFERENCE.md.
Workers Tail Pro: Show License Status displays trial, licensed, or expired state.
License Worker (not deployed from this repo)
The license-worker/ package (devkit-licenses) is a Cloudflare Worker (Hono + D1) that:
- Accepts SasPay webhooks at
POST /webhooks/saaspay (signature per official docs).
- Issues keys and emails them (Gmail SMTP or console mode).
- Exposes
POST /verify for the VS Code extension.
wrangler.jsonc uses a placeholder D1 database_id. Deploy only when you are ready.
Stack trace resolution (limitations)
- Frames must include a file path and line (typical V8
at fn (path:line:col) format).
- Paths are normalized (
file://, bundle prefixes stripped); the extension searches the workspace by relative path or file basename (first match wins).
- Minified deploy artifacts, paths outside the workspace, or ambiguous duplicate filenames may not open correctly.
Development
npm test # extension vitest + license-worker vitest
npx tsc --noEmit # typecheck extension sources
npm run package # dist-release/workers-tail-pro-0.1.0.vsix
Install from .vsix
code --install-extension dist-release/workers-tail-pro-0.1.0.vsix
Not published
This MVP is packaged locally only. Marketplace and Worker deployment are intentionally not performed from this repository.