How kosmo471/agan-browser works
AğanBrowser is a Windows desktop browser built on WebView2, with a local Ollama assistant and privacy-focused browsing features. The main workflow is navigating pages in tabs, with MainWindow coordinating browser events and handing work to feature services. The graph also preserves documented capabilities whose implementations were not sampled. Edges are limited to calls visible in excerpts or relationships stated in the README; some feature internals remain unsampled.
Main entry points: MainWindow.xaml.cs Window & Tabs · OllamaService.cs Ollama Client · ExtensionService.cs Browser Extensions · ThemeService.cs Theme Settings
Components 24
Browser Core
- Window & Tabs
MainWindow.xaml.cs - WebView2 Pages
MainWindow.xaml.cs - Session Restore
Services/SessionService.cs - Incognito Mode
MainWindow.xaml.cs - Address & Search
MainWindow.xaml.cs
Privacy & Storage
- Ad & Tracker Blocking
Services/AdBlockerService.cs - Password Vault
Services/PasswordService.cs
Local Assistant
- Ollama Server
- Ağan Assistant
Assets/Agan.html - Ollama Client
Services/OllamaService.cs - Assistant Personality
Services/PersonalityService.cs
Browser Features
- Bookmarks
Services/BookmarkService.cs - Browsing History
Services/HistoryService.cs - Download Tracking
Services/DownloadService.cs - Read Later PDFs
Services/ReadLaterService.cs - Browser Extensions
Services/ExtensionService.cs - Extension Catalog
Services/ExtensionService.cs
Interface
- Theme Settings
Services/ThemeService.cs - Theme Resources
Themes - Feature Dialogs
Services/DialogWindows.cs - Dialog Helper
Services/DialogHelper.cs - New Tab Page
Assets/NewTab.html - Onboarding
Assets/Onboarding.html
Other components
- Browser User
Connections 25
- Browser User → Window & Tabs: uses
README.md - Window & Tabs → WebView2 Pages: hosts pages
MainWindow.xaml.cs - Window & Tabs → Session Restore: saves session
MainWindow.xaml.cs - Window & Tabs → Session Restore: loads session
README.md - Window & Tabs → Incognito Mode: creates tabs
MainWindow.xaml.cs - Window & Tabs → Address & Search: handles navigation
README.md - Window & Tabs → Ad & Tracker Blocking: filters requests
README.md - Window & Tabs → Password Vault: manages passwords
README.md - Window & Tabs → Bookmarks: manages bookmarks
MainWindow.xaml.cs - Window & Tabs → Browsing History: records history
MainWindow.xaml.cs - Window & Tabs → Window & Tabs: tracks downloads
MainWindow.xaml.cs - Window & Tabs → Download Tracking: attaches handler
MainWindow.xaml.cs - Window & Tabs → Read Later PDFs: archives pages
README.md - Window & Tabs → Browser Extensions: installs extensions
README.md - Browser Extensions → Extension Catalog: fetches catalog
Services/ExtensionService.cs - Window & Tabs → Ağan Assistant: opens assistant
MainWindow.xaml.cs - Window & Tabs → Ollama Client: streams chat
MainWindow.xaml.cs - Ollama Client → Ollama Server: sends requests
Services/OllamaService.cs - Window & Tabs → Assistant Personality: gets prompts
MainWindow.xaml.cs - Window & Tabs → Theme Settings: applies theme
MainWindow.xaml.cs - Theme Settings → Theme Resources: loads resources
Services/ThemeService.cs - Window & Tabs → Feature Dialogs: opens dialogs
README.md - Window & Tabs → Dialog Helper: shows messages
MainWindow.xaml.cs - WebView2 Pages → New Tab Page: loads page
README.md - Browser User → Onboarding: starts onboarding
README.md