A debugging loop, not a log viewer
Capture console output, exceptions, XHR, Fetch, Beacon, WebSocket, SSE, resource timing, DOM, storage, and main-thread long tasks.
One script, no server, and no runtime dependencies. Diagnose logs, traffic, DOM, storage, and performance inside mobile browsers and WebViews.
Capture console output, exceptions, XHR, Fetch, Beacon, WebSocket, SSE, resource timing, DOM, storage, and main-thread long tasks.
JSON tree and code views, syntax highlighting, line numbers, folding, bulk copy, cURL, and privacy-safe HAR 1.2 export.
HAR export omits bodies and redacts credentials by default. Data stays in-page unless you explicitly attach a trusted transport.
Shadow DOM isolation, 100dvh, safe areas, 44px touch targets, non-HTTPS copy fallback, and incomplete-API resilience.
Ring buffers, lazy object handles, bounded tree expansion, and capped body capture prevent unbounded growth.
A CDP-shaped protocol separates collection from UI and can back Workers, WebSockets, or custom plugins.
<script src="https://unpkg.com/optik-sol@0.4.1"></script>Collection starts as soon as the script executes. Tap Optik in the bottom-right corner to open the panel. Continue with Getting Started for bundlers, controlled mounting, and production-safe patterns.
Enable only in controlled environments
Optik can read request headers, request bodies, and page storage. Do not mount it unconditionally on untrusted pages or in builds served to every production user.