1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! # Headless Engine
//!
//! An ultra-lightweight (<30MB RAM), detection-free pure-Rust headless browser engine
//! architected specifically for AI agents, web scraping, and Go-based MCP servers.
//!
//! ## Quick Start (Rust SDK)
//! ```no_run
//! use headless_engine::{BrowserTab, DeviceProfile};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let mut tab = BrowserTab::with_profile(DeviceProfile::ChromeWindows)?;
//! let report = tab.navigate("https://en.wikipedia.org/wiki/Rust_(programming_language)").await?;
//! println!("Title: {}", report.page_title);
//!
//! let markdown = tab.extract_markdown(None).unwrap();
//! println!("Clean LLM Markdown:\n{}", markdown);
//!
//! Ok(())
//! }
//! ```
//!
//! ## Multi-Tab Engine Example
//! ```no_run
//! use headless_engine::{BrowserEngine, DeviceProfile};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let mut engine = BrowserEngine::new()?;
//! let tab1 = engine.create_tab(Some(DeviceProfile::ChromeWindows))?;
//! let tab2 = engine.create_tab(Some(DeviceProfile::SafariIos))?;
//!
//! engine.get_tab_mut(&tab1).unwrap().navigate("https://news.ycombinator.com/").await?;
//! engine.get_tab_mut(&tab2).unwrap().navigate("https://google.com/").await?;
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use BrowserBuilder;
pub use ;
pub use ;
pub use HtmlToMarkdown;
pub use ;
pub use ;
pub use ;