browser_oxide 0.1.3

Stealth headless browser engine in Rust: real HTML/CSS/DOM/JS, V8 via deno_core, own BoringSSL TLS/JA4 fingerprint, no Chromium, no CDP — for anti-bot web scraping, archival, and AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Benchmark helper: read an HTML body from stdin, print the canonical
//! `engine_classify` tag + byte length. Lets the competitor benchmark
//! harness scores every browser's final
//! rendered DOM through the *exact same* classifier browser_oxide uses
//! for its own corpus sweep, so the comparison has zero classifier drift.
//!
//! Output: one line `<tag>\t<len>` on stdout.

use std::io::Read;

fn main() {
    let mut body = String::new();
    std::io::stdin()
        .read_to_string(&mut body)
        .expect("read stdin");
    let ec = browser_oxide::engine_classify(&body);
    println!("{}\t{}", ec.tag, ec.len);
}