Module browser

Module browser 

Source
Expand description

Browser instance lifecycle management

Provides a thin wrapper around a chromiumoxide [Browser] that adds:

  • Anti-detection launch arguments from BrowserConfig
  • Configurable launch and per-operation timeouts via tokio::time::timeout
  • Health checks using the CDP Browser.getVersion command
  • PID-based zombie process detection and forced cleanup
  • Graceful shutdown (close all pages ➞ send Browser.close)

§Example

use stygian_browser::{BrowserConfig, browser::BrowserInstance};

let config = BrowserConfig::default();
let mut instance = BrowserInstance::launch(config).await?;

assert!(instance.is_healthy().await);
instance.shutdown().await?;

Structs§

BrowserInstance
A managed browser instance with health tracking.