How sai113/bare works
Bare is a minimal Windows Chromium browser built on CEF. A user launches a URL, file, or search; the browser resolves it, opens a tab, and CEF loads the page while request handlers enforce HTTPS and filtering. The UI also exposes built-in pages and browsing features backed by local profile state, plus network controls and signed app/engine updates. The graph preserves README capabilities, but unsampled modules are represented only where their paths and broad roles are documented; uncertain wiring is omitted.
Main entry points: app.rs Startup and CEF · ui.rs Tabs and toolbar · handlers.rs CEF callbacks · pages.rs Built-in pages
Components 26
Browser runtime
- Startup and CEF
src/app.rs - Tabs and toolbar
src/ui.rs - CEF callbacks
src/handlers.rs - URL resolution
src/url.rs - CEF engine
src/engine.rs
Privacy and network
- Ad blocking
src/block.rs - DNS and proxy
src/network.rs - Site permissions
src/permissions.rs
Browsing data
- Settings
src/settings.rs - History
src/history.rs - Bookmarks
src/bookmarks.rs - Password manager
src/passwords.rs
Browser features
- Downloads
src/downloads.rs - Built-in pages
src/pages.rs - Reader view
src/reader.rs - Tab audio
src/audio.rs - Tab memory
src/memory.rs - OS integration
src/system.rs
Updates
- App updater
src/update.rs - Engine files
src/engine_files.rs
Other components
- User
- Windows shell
- Chromium Embedded Framework
- Web sites
- Local profile
- Signed update service
Connections 44
- User → Startup and CEF: launches
src/app.rs - Windows shell → Startup and CEF: opens target
src/app.rs - Startup and CEF → Settings: initializes
src/app.rs - Startup and CEF → Ad blocking: initializes
src/app.rs - Startup and CEF → History: initializes
src/app.rs - Startup and CEF → Bookmarks: initializes
src/app.rs - Startup and CEF → Password manager: initializes
src/app.rs - Startup and CEF → Site permissions: initializes
src/app.rs - Startup and CEF → App updater: initializes
src/app.rs - Startup and CEF → CEF engine: initializes
src/app.rs - Startup and CEF → DNS and proxy: applies settings
src/app.rs - Startup and CEF → Tabs and toolbar: creates window
src/app.rs - Startup and CEF → CEF callbacks: configures client
src/app.rs - Startup and CEF → Chromium Embedded Framework: starts runtime
src/app.rs - Tabs and toolbar → Chromium Embedded Framework: hosts tabs
src/ui.rs - Tabs and toolbar → URL resolution: resolves input
src/url.rs - Tabs and toolbar → History: suggests entries
- Tabs and toolbar → Bookmarks: shows bookmarks
- Tabs and toolbar → Tab audio: controls sound
- Tabs and toolbar → Tab memory: shows usage
- Tabs and toolbar → Built-in pages: opens internal pages
- CEF callbacks → Ad blocking: filters requests
src/handlers.rs - CEF callbacks → Tabs and toolbar: forwards callbacks
src/handlers.rs - CEF callbacks → Downloads: updates progress
src/handlers.rs - CEF callbacks → Password manager: captures logins
src/handlers.rs - CEF callbacks → Reader view: handles reports
src/handlers.rs - CEF callbacks → Site permissions: handles requests
src/handlers.rs - CEF callbacks → Web sites: loads pages
- Ad blocking → Web sites: filters traffic
src/block.rs - Settings → Local profile: persists settings
src/settings.rs - History → Local profile: persists visits
src/history.rs - Bookmarks → Local profile: stores bookmarks
- Password manager → Local profile: stores credentials
- Built-in pages → Settings: reads configuration
src/pages.rs - Built-in pages → DNS and proxy: shows providers
src/pages.rs - Built-in pages → App updater: shows status
src/pages.rs - Built-in pages → CEF engine: shows engine status
src/pages.rs - Tabs and toolbar → Downloads: manages downloads
- Tabs and toolbar → Password manager: fills credentials
src/ui.rs - Tabs and toolbar → OS integration: opens OS settings
src/ui.rs - App updater → Signed update service: checks signed releases
src/update.rs - App updater → CEF engine: checks engine
src/update.rs - CEF engine → Engine files: stages engine
- CEF engine → Chromium Embedded Framework: queries version
src/engine.rs