r/madeinrust • • 12d ago
AI Assisted [Early Alpha] Ferro — a 7-crate multi-process Windows browser shell in Rust (egui + WebView2 + Tantivy + rkyv + Rhai). Built with AI assistance — code critique & bug reports welcome!
Hi r/madeinrust,
I just published the first **early alpha (`v0.1.0`)** of **Ferro**, a modular multi-process Windows browser written in Rust.
Being completely upfront from the start:
- **AI-assisted / vibe-coded project:** This is my project, design, and iteration workflow built together with AI helping write and refactor parts of the code. Everything builds cleanly under `cargo clippy --workspace --all-targets -- -D warnings` with 83 passing unit/integration tests, and I’m actively learning and tightening things up as I go.
- **Not a custom HTML engine:** Web rendering uses embedded **WebView2** (`wry` + `webview2-com`), while the entire browser shell and infrastructure around it is a 7-crate Rust workspace (`browser-ipc`, `browser-net`, `browser-storage`, `browser-renderer`, `browser-scripting`, `browser-core`, `browser-ui`).
### Technical highlights so far:
- **Event-driven `egui`/`eframe` shell:** Avoids continuous 60–144 FPS idle repaints (~0% idle CPU when reading or minimized), with frameless Win32 styling + Windows Acrylic.
- **Multi-process IPC & zero-copy hibernation:** Separate `--tab-process` workers over `ipc-channel` + `IpcSharedMemory`, paired with `rkyv` + `lz4_flex` tab hibernation to disk and native `ICoreWebView2_3::TrySuspend` RAM management.
- **Storage & full-text search:** `SQLite` in WAL mode with a 500 ms debounced Tokio persistence worker, plus workspace-isolated `Tantivy` indexing for visited pages and offline snapshots.
- **De-Edging WebView2 via COM:** Intercepts `ContextMenuRequested` (`ICoreWebView2_11`) to render a floating borderless `egui` context menu above the HWND, disables built-in Edge error pages / autofill / status-bar popups, blocks/redirects `edge://` routes, and integrates unpacked **uBlock Origin Lite (MV3)** — while preserving `User-Agent` / `Sec-CH-UA` so YouTube BotGuard keeps working.
- **Sandboxed scripting:** `Rhai` DOM user scripts / Site Mods + a native Reader Mode that tears down the WebView2 controller while reading.
### Looking for honest critique & bug reports
This is a **very early alpha (`v0.1.0`)**. Especially since AI helped write parts of the codebase, I’m sure there are non-idiomatic Rust patterns, architectural weak spots, and Windows edge-case bugs that real Rust devs will spot right away.
**Feel free to criticize the code, architecture, or UX, and open issues for any bugs you find** — honest critique is completely fine and genuinely helps me fix and improve the project.
- **Repo:** https://github.com/Momenzi/ferro-browser
- **Portable Windows x64 Release:** https://github.com/Momenzi/ferro-browser/releases/tag/v0.1.0 *(unsigned alpha binary, so SmartScreen may warn — or build from source with `cargo build --release -p browser-ui --bin ferro`)*
Would love to hear your thoughts!
1
u/AutoModerator 12d ago
Upvote this comment if you think this project is AI slop. Downvote this comment if you think this project is not AI slop.
This is to indicate to other users of the subreddit and is not used for moderation.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.