| Crates.io | chaser-oxide |
| lib.rs | chaser-oxide |
| version | 0.1.1 |
| created_at | 2026-01-13 06:09:22.029101+00 |
| updated_at | 2026-01-24 09:40:11.856085+00 |
| description | Undetectable browser automation library |
| homepage | |
| repository | https://github.com/ccheshirecat/chaser-oxide |
| max_upload_size | |
| id | 2039425 |
| size | 1,401,474 |
A Rust-based fork of chromiumoxide modified for hardened browser automation.
chaser-oxide is an experimental fork of the chromiumoxide library. It incorporates modifications to the core Chrome DevTools Protocol (CDP) client and high-level interaction utilities to reduce the footprint of automated browser sessions.
cargo add chaser-oxide tokio futures
Or add to your Cargo.toml:
[dependencies]
chaser-oxide = "0.1"
tokio = { version = "1", features = ["full"] }
futures = "0.3"
use chaser_oxide::{Browser, BrowserConfig, ChaserPage, ChaserProfile};
use futures::StreamExt;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// 1. Create a fingerprint profile
let profile = ChaserProfile::windows().build();
// 2. Launch browser
let (browser, mut handler) = Browser::launch(
BrowserConfig::builder().build()?
).await?;
tokio::spawn(async move {
while let Some(_) = handler.next().await {}
});
// 3. Create page and wrap in ChaserPage
let page = browser.new_page("about:blank").await?;
let chaser = ChaserPage::new(page);
// 4. Apply profile (sets UA + injects stealth scripts) - BEFORE navigation
chaser.apply_profile(&profile).await?;
// 5. Navigate to target
chaser.goto("https://example.com").await?;
// 6. Execute JS safely (stealth - no Runtime.enable leak)
let title: Option<String> = chaser.evaluate("document.title").await?;
// 7. Use human-like interaction methods
chaser.move_mouse_human(400.0, 300.0).await?;
chaser.click_human(500.0, 400.0).await?;
chaser.type_text("Search query").await?;
Ok(())
}
Create customized browser fingerprint profiles:
use chaser_oxide::{ChaserProfile, Gpu};
// Quick presets
let windows = ChaserProfile::windows().build();
let linux = ChaserProfile::linux().build();
let mac_arm = ChaserProfile::macos_arm().build();
let mac_intel = ChaserProfile::macos_intel().build();
// Custom profile with builder
let custom = ChaserProfile::windows()
.chrome_version(130) // Chrome version for UA
.gpu(Gpu::NvidiaRTX4080) // WebGL renderer
.memory_gb(32) // navigator.deviceMemory
.cpu_cores(16) // navigator.hardwareConcurrency
.locale("de-DE") // navigator.language
.timezone("Europe/Berlin") // Intl timezone
.screen_size(2560, 1440) // screen.width/height
.build();
pub enum Gpu {
// NVIDIA
NvidiaRTX4090, NvidiaRTX4080, NvidiaRTX4070,
NvidiaRTX3090, NvidiaRTX3080, NvidiaRTX3070, NvidiaRTX3060,
NvidiaGTX1660, NvidiaGTX1080,
// AMD
AmdRX7900XTX, AmdRX6800XT, AmdRX6700XT,
// Intel
IntelUHD630, IntelIrisXe,
// Apple
AppleM1, AppleM1Pro, AppleM2, AppleM3, AppleM4Max,
}
impl ChaserPage {
// Profile
async fn apply_profile(&self, profile: &ChaserProfile) -> Result<()>;
// Safe Page Operations
async fn goto(&self, url: &str) -> Result<()>;
async fn content(&self) -> Result<String>;
async fn url(&self) -> Result<Option<String>>;
async fn evaluate(&self, script: &str) -> Result<Option<Value>>; // Stealth!
// Human-like Mouse Movement (Bezier curves)
async fn move_mouse_human(&self, x: f64, y: f64) -> Result<()>;
async fn click_human(&self, x: f64, y: f64) -> Result<()>;
async fn scroll_human(&self, delta_y: i32) -> Result<()>;
// Human-like Typing
async fn type_text(&self, text: &str) -> Result<()>;
async fn type_text_with_typos(&self, text: &str) -> Result<()>;
// Request Interception
async fn enable_request_interception(&self, pattern: &str, resource_type: Option<ResourceType>) -> Result<()>;
async fn disable_request_interception(&self) -> Result<()>;
async fn fulfill_request_html(&self, request_id: RequestId, html: &str, status: u16) -> Result<()>;
async fn continue_request(&self, request_id: RequestId) -> Result<()>;
// Access underlying Page (use raw_page().evaluate() with caution - triggers detection!)
fn raw_page(&self) -> &Page;
}
let config = BrowserConfig::builder()
.chrome_executable("/path/to/chrome") // Custom Chrome path
.with_head() // Show browser window (default)
.headless() // Run headless
.viewport(Viewport {
width: 1920,
height: 1080,
device_scale_factor: None,
emulating_mobile: false,
is_landscape: false,
has_touch: false,
})
.build()?;
Standard CDP clients trigger internal browser signals during initialization. chaser-oxide modifies these behaviors:
Runtime.enable Mitigation: Uses Page.createIsolatedWorld to execute scripts in a secondary environment that bypasses detection vectors.Anti-bot systems look for discrepancies between the reported User-Agent and the browser's execution environment.
navigator.platform, WebGL vendor/renderer strings, and hardware concurrency values.IsolatedWorld mechanism to ensure they are available before the target site's scripts execute.The ChaserProfile.bootstrap_script() injects comprehensive stealth at page load:
| Feature | What It Does |
|---|---|
| CDP Marker Cleanup | Removes cdc_, $cdc_, __webdriver, __selenium markers |
navigator.webdriver |
Set to false (not deleted) |
navigator.platform |
Matches profile OS (e.g., "Win32") |
navigator.hardwareConcurrency |
Profile-configurable CPU cores |
navigator.deviceMemory |
Profile-configurable RAM |
| WebGL Spoofing | Custom GPU vendor/renderer strings |
| Client Hints | navigator.userAgentData with matching brands |
window.chrome |
Complete runtime object with connect(), sendMessage() |
chrome.csi() |
Chrome Speed Index mock |
chrome.loadTimes() |
Deprecated API mock (still checked by some sites) |
chrome.app |
Chrome app object mock |
Tested against: Cloudflare Turnstile, bot.sannysoft.com, CreepJS
| Metric | chaser-oxide | Node.js Alternatives |
|---|---|---|
| Language | Rust | JavaScript |
| Memory Footprint | ~50MB - 100MB (per process) | ~500MB+ (per process) |
| Transport Patching | Protocol-level (Internal Fork) | High-level (Wrapper/Plugin) |
This project is a specialized fork of chromiumoxide. The core CDP client and session management are derived from their excellent work.
Licensed under either of: