Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
pub(crate) const DEFAULT_SCREENCAST_INTERVAL_MS: u32 = 1000;
/// Network and connection settings for the automation protocol server.
#[derive(Debug, Clone)]
pub struct ServerConfig {
pub host: String,
pub port: u16,
pub timeout_secs: u32,
/// Base screencast interval in milliseconds; must be positive.
pub screencast_interval_ms: u32,
}
impl ServerConfig {
pub fn bind_target(&self) -> (&str, u16) {
(&self.host, self.port)
}
}
impl Default for ServerConfig {
fn default() -> Self {
Self {
host: "127.0.0.1".to_owned(),
port: 9222,
timeout_secs: 10,
screencast_interval_ms: DEFAULT_SCREENCAST_INTERVAL_MS,
}
}
}