Personal projectPrototype under redevelopment

Trace

Capture, preserve and inspect Chromium exchanges.

A Chromium extension within Λbstract for capturing and inspecting network exchanges locally.

My workI work on capture, local storage and the inspection interface, with explicit collection limits.

Trace is a Chromium network-inspection extension within Λbstract. It lets users inspect requests, responses and available bodies locally. I develop capture, storage and the inspection interface; the project remains a prototype under redevelopment.

Capturing Chromium exchanges

The Manifest V3 extension uses a service worker and requires Chrome 125 or later. Capture uses chrome.debugger to send CDP commands and receive Network events.

The manager attempts attachment to eligible, ordinary, non-incognito tabs. It enables Network and requests auto-attachment to related targets. This request does not prove that all iframe or worker events are correctly routed. Detachment or attachment failure produces coverage information.

  1. Network.requestWillBeSent

    Create request metadata.

  2. Network.responseReceived

    Add status, headers and provenance.

  3. Network.loadingFinished

    Attempt to read the body using getResponseBody.

Capture lifecycle diagram.

Correlation key

debugger session + CDP requestId

The processor builds its key from the debugger-session identity and the CDP requestId. Successive events enrich the request record. The capture session grouping those records is distinct from this debugger identity.

Preserving and inspecting data

Request, body and WebSocket-frame writes use separate queues into IndexedDB. The queue batches writes; at capacity it removes the oldest pending item before adding a new one. This bounds pending items but does not guarantee lossless capture.

  1. Pending

    Batched writes with bounded capacity.

  2. Stored locally

    Sessions, requests and bodies in separate object stores.

  3. Read on demand

    Filter metadata, then separately read the selected body.

Batched writes and on-demand reads in IndexedDB.

Inspecting metadata and response bodies

The dashboard selects a session and filters requests by information such as method, URL, status or body availability. A responseBodyId reference allows the content to be read separately. The interface does not fill capture gaps by requesting the original site again.

Body available

Local content can be loaded for inspection or downloaded separately.

Body unavailable

Metadata may exist without readable content. The processor can record a retrieval failure or size limit; absence is not an empty response.

Illustrative examples without real browsing data.

What capture can miss

Capture can be incomplete in the following situations.

Before attachment
Exchanges already underway may be missing. Trace does not reconstruct earlier traffic.
Pages and debuggers
Internal or restricted pages are excluded; DevTools or another debugger may prevent or interrupt attachment.
Secondary targets
Auto-attachment is requested, but worker and iframe coverage requires real Chromium validation.
Bodies and limits
Buffer eviction, streaming, a failure or a configured limit may prevent body retention.
Write pressure
The queue can remove older pending items. A flush method does not prove exhaustive persistence.
Retention
The code identifies retention candidates and estimates storage. Integrated automatic pruning has not been established.

What the exports contain

JSON: references, not a complete archive.

The dashboard export contains sessions and requests with references to separately stored bodies. It does not transfer all captured content by itself.

HAR: a partial representation.

Timings are simplified and the output omits some CDP fields, WebSocket frames and bodies. It does not establish faithful replay.

Validation still required

Reliability tests use mocked Chrome APIs and fake IndexedDB. They target correlation, writes and state changes among other behaviours. Real-browser extension behaviour still requires validation.

The next validation needs to load the extension in an isolated Chromium profile with synthetic data, then check secondary targets, write saturation and exports.