Chirp DevTools (⌁⌁) — debug overlay for development mode.
The app injects a single script tag on full-page responses. The script itself
is served from an internal route and is idempotent, so it can be included on
multiple navigations without duplicating listeners or toast containers.
The overlay monitors HTMX requests, SSE connections, View Transitions, render
plans, layout chains, route metadata, DOM diffs, and provides an element inspector.
Shortcuts: Ctrl+Shift+D toggles the drawer; Ctrl+Shift+K toggles the inspector.
SetlocalStorage key chirp-debug-verbose to 1to log boot to console.
Features (v3):
- Rosettes syntax highlighting: Highlighted response previews, curl commands,
and DOM diffs via
/__chirp/debug/highlightendpoint (GET, base64 code).
- SSE monitor: EventSource connection lifecycle and event log.
- Network waterfall: Inline bars for request timing phases.
- View Transition tracking: Hooks
document.startViewTransitionlifecycle.
- DOM diff: Before/after swap snapshots with unified diff view.
- Render plan inspector: Decodes
X-Chirp-Render-Planheader into detail panel.
The JavaScript is split into modules underdevtools/js/and concatenated at
import time into a single IIFE. No build step required.