A lightweight HTML browser built with Rust and egui.
- Basic HTML rendering
- Simple navigation (forward/back)
- URL input and loading
- Configurable user agent (Firefox, Chrome, Safari, Edge)
- Raw HTML source view toggle
- White background for web content with dark UI elements
- Rust (stable)
- Cargo (comes with Rust)
Clone the repository and build:
git clone [your-repository-url]
cd egui_browser
cargo build --release
The executable will be available at:
- Windows:
target/release/egui_browser.exe
- Linux/macOS:
target/release/egui_browser
# From the project directory
cargo run --release
# Or run the executable directly
./target/release/egui_browser
- Enter a URL in the address bar
- Press Enter or click "Load" to navigate to the URL
- Use back/forward buttons to navigate through history
- Toggle "Show Source" to view raw HTML
- Select different user agents via the buttons
src/main.rs
- Entry pointsrc/app.rs
- Main application logicsrc/html_renderer.rs
- HTML rendering enginesrc/style.rs
- CSS-like styling for HTML elementssrc/ui_components.rs
- UI elements and display components
- egui - Pure Rust immediate mode GUI
- eframe - egui framework
- ehttp - HTTP client
- html-parser - HTML parsing
- poll-promise - Promises for async operations
MIT License