Skip to main content

Module browser

Module browser 

Source
Expand description

Browser bridge: drive HTTP requests through an authenticated browser tab.

The bridge runs two planes — a WebSocket plane the browser connects to (via a pasted DevTools snippet) and an HTTP control plane the operator drives — joined by an id-keyed correlator. It deliberately lets a local process borrow the browser’s authenticated session (a confused-deputy by design), so both planes are authenticated and default-closed. See docs/browser-bridge.md and ADR-0036.

Re-exports§

pub use bridge::run;
pub use bridge::BridgeConfig;

Modules§

auth
Authentication and request-guard primitives for the browser bridge.
bridge
The long-lived bridge server.
protocol
Wire-protocol types for the browser bridge.
snippet
Renders the browser-side JS snippet that the operator pastes into a DevTools console. The template is embedded at compile time; the WebSocket port and session token are interpolated at print time.