# gabbo65/rove architecture

> Architecture diagram of the GitHub repository gabbo65/rove, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gabbo65/rove
- Repository: https://github.com/gabbo65/rove

## Overview

Rove is a desktop browser built on Electron. The principal workflow is a user entering an address in the browser chrome; the UI sends commands to the main process, which resolves the address and manages a tab that displays the page. The graph also preserves documented privacy, history, favorites, downloads, customization, and phone-remote capabilities. Some subsystem links rely on the README or source-index references; unsampled implementation details are not assumed.

Main entry points: [`src/main/app.js`](https://github.com/gabbo65/rove/blob/main/src/main/app.js) (App startup), [`src/main/ipc.js`](https://github.com/gabbo65/rove/blob/main/src/main/ipc.js) (UI IPC), [`src/main/tab.js`](https://github.com/gabbo65/rove/blob/main/src/main/tab.js) (Tabs and pages), [`src/main/remote.js`](https://github.com/gabbo65/rove/blob/main/src/main/remote.js) (Phone remote)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Browser interaction"]
  node_chrome["Browser chrome<br/>[main.js]"]
  node_chrome_modules["Chrome controls"]
  node_ipc["UI IPC<br/>[ipc.js]"]
end

subgraph group_browsing["Browsing runtime"]
  node_app["App startup<br/>[app.js]"]
  node_windows["Window manager<br/>[windows.js]"]
  node_window["Browser window<br/>[window.js]"]
  node_tabs["Tabs and pages<br/>[tab.js]"]
  node_address["Address resolver<br/>[urls.js]"]
  node_suggestions["Address suggestions<br/>[suggest.js]"]
  node_permissions["Page permissions<br/>[permissions.js]"]
end

subgraph group_personal["Personal data and settings"]
  node_database[("Local database<br/>[db.js]")]
  node_favorites["Favorites<br/>[favorites.js]"]
  node_history["Browsing history<br/>[history.js]"]
  node_downloads["Downloads<br/>[downloads.js]"]
  node_settings["Settings<br/>[settings.js]"]
  node_autofill["Safe autofill<br/>[autofill.js]"]
  node_updates["Update checker<br/>[updates.js]"]
end

subgraph group_extensions["Customization and remote"]
  node_hex["Hex customization<br/>[core.js]"]
  node_hex_injector["Page injector<br/>[injector.js]"]
  node_hex_scripts["User scripts<br/>[scripts.js]"]
  node_remote["Phone remote<br/>[remote.js]"]
  node_stream["Remote streaming<br/>[stream.js]"]
end

node_user(("Browser user"))
node_web(("Web destinations"))
node_phone(("Phone user"))

node_user -->|"uses"| node_chrome
node_chrome -->|"wires controls"| node_chrome_modules
node_chrome -->|"sends commands"| node_ipc
node_ipc -->|"dispatches commands"| node_windows
node_app -->|"registers"| node_ipc
node_app -->|"starts"| node_windows
node_windows -->|"manages"| node_window
node_window -->|"hosts"| node_tabs
node_tabs -->|"resolves addresses"| node_address
node_tabs -->|"loads pages"| node_web
node_ipc -->|"requests suggestions"| node_suggestions
node_ipc -->|"dispatches favorite actions"| node_favorites
node_tabs -->|"records visits"| node_history
node_favorites -->|"reads and writes"| node_database
node_settings -->|"persists settings"| node_database
node_app -->|"opens"| node_database
node_app -->|"loads"| node_settings
node_ipc -->|"dispatches history actions"| node_history
node_ipc -->|"dispatches download actions"| node_downloads
node_app -->|"registers"| node_autofill
node_app -->|"configures"| node_permissions
node_app -->|"sets up"| node_hex
node_hex -->|"sets up"| node_hex_injector
node_hex_injector -->|"uses"| node_hex_scripts
node_phone -->|"connects to"| node_remote
node_app -->|"starts"| node_remote
node_remote -->|"reads favorites"| node_favorites
node_remote -->|"uses streaming"| node_stream
node_app -->|"starts"| node_updates
node_ipc -->|"dispatches settings actions"| node_settings

click node_chrome "https://github.com/gabbo65/rove/blob/main/src/ui/chrome/js/main.js"
click node_chrome_modules "https://github.com/gabbo65/rove/tree/main/src/ui/chrome/js"
click node_ipc "https://github.com/gabbo65/rove/blob/main/src/main/ipc.js"
click node_app "https://github.com/gabbo65/rove/blob/main/src/main/app.js"
click node_windows "https://github.com/gabbo65/rove/blob/main/src/main/windows.js"
click node_window "https://github.com/gabbo65/rove/blob/main/src/main/window.js"
click node_tabs "https://github.com/gabbo65/rove/blob/main/src/main/tab.js"
click node_address "https://github.com/gabbo65/rove/blob/main/src/main/urls.js"
click node_database "https://github.com/gabbo65/rove/blob/main/src/main/db.js"
click node_favorites "https://github.com/gabbo65/rove/blob/main/src/main/favorites.js"
click node_history "https://github.com/gabbo65/rove/blob/main/src/main/history.js"
click node_downloads "https://github.com/gabbo65/rove/blob/main/src/main/downloads.js"
click node_settings "https://github.com/gabbo65/rove/blob/main/src/main/settings.js"
click node_suggestions "https://github.com/gabbo65/rove/blob/main/src/main/suggest.js"
click node_autofill "https://github.com/gabbo65/rove/blob/main/src/main/autofill.js"
click node_permissions "https://github.com/gabbo65/rove/blob/main/src/main/permissions.js"
click node_hex "https://github.com/gabbo65/rove/blob/main/src/main/hex/core.js"
click node_hex_injector "https://github.com/gabbo65/rove/blob/main/src/main/hex/injector.js"
click node_hex_scripts "https://github.com/gabbo65/rove/blob/main/src/main/hex/scripts.js"
click node_remote "https://github.com/gabbo65/rove/blob/main/src/main/remote.js"
click node_stream "https://github.com/gabbo65/rove/blob/main/src/main/stream.js"
click node_updates "https://github.com/gabbo65/rove/blob/main/src/main/updates.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_chrome,node_chrome_modules,node_ipc,node_user,node_phone toneBlue
class node_app,node_windows,node_window,node_tabs,node_address,node_suggestions,node_permissions toneAmber
class node_database,node_favorites,node_history,node_downloads,node_settings,node_autofill,node_updates toneMint
class node_hex,node_hex_injector,node_hex_scripts,node_remote,node_stream toneRose
class node_web toneIndigo
```

## Components

### Browser interaction

- [Browser chrome](https://github.com/gabbo65/rove/blob/main/src/ui/chrome/js/main.js): `src/ui/chrome/js/main.js`
- [Chrome controls](https://github.com/gabbo65/rove/tree/main/src/ui/chrome/js): `src/ui/chrome/js`
- [UI IPC](https://github.com/gabbo65/rove/blob/main/src/main/ipc.js): `src/main/ipc.js`

### Browsing runtime

- [App startup](https://github.com/gabbo65/rove/blob/main/src/main/app.js): `src/main/app.js`
- [Window manager](https://github.com/gabbo65/rove/blob/main/src/main/windows.js): `src/main/windows.js`
- [Browser window](https://github.com/gabbo65/rove/blob/main/src/main/window.js): `src/main/window.js`
- [Tabs and pages](https://github.com/gabbo65/rove/blob/main/src/main/tab.js): `src/main/tab.js`
- [Address resolver](https://github.com/gabbo65/rove/blob/main/src/main/urls.js): `src/main/urls.js`
- [Address suggestions](https://github.com/gabbo65/rove/blob/main/src/main/suggest.js): `src/main/suggest.js`
- [Page permissions](https://github.com/gabbo65/rove/blob/main/src/main/permissions.js): `src/main/permissions.js`

### Personal data and settings

- [Local database](https://github.com/gabbo65/rove/blob/main/src/main/db.js): `src/main/db.js`
- [Favorites](https://github.com/gabbo65/rove/blob/main/src/main/favorites.js): `src/main/favorites.js`
- [Browsing history](https://github.com/gabbo65/rove/blob/main/src/main/history.js): `src/main/history.js`
- [Downloads](https://github.com/gabbo65/rove/blob/main/src/main/downloads.js): `src/main/downloads.js`
- [Settings](https://github.com/gabbo65/rove/blob/main/src/main/settings.js): `src/main/settings.js`
- [Safe autofill](https://github.com/gabbo65/rove/blob/main/src/main/autofill.js): `src/main/autofill.js`
- [Update checker](https://github.com/gabbo65/rove/blob/main/src/main/updates.js): `src/main/updates.js`

### Customization and remote

- [Hex customization](https://github.com/gabbo65/rove/blob/main/src/main/hex/core.js): `src/main/hex/core.js`
- [Page injector](https://github.com/gabbo65/rove/blob/main/src/main/hex/injector.js): `src/main/hex/injector.js`
- [User scripts](https://github.com/gabbo65/rove/blob/main/src/main/hex/scripts.js): `src/main/hex/scripts.js`
- [Phone remote](https://github.com/gabbo65/rove/blob/main/src/main/remote.js): `src/main/remote.js`
- [Remote streaming](https://github.com/gabbo65/rove/blob/main/src/main/stream.js): `src/main/stream.js`

### Other components

- **Browser user**
- **Web destinations**
- **Phone user**

## Connections

- Browser user → Browser chrome: uses (evidence: `README.md`)
- Browser chrome → Chrome controls: wires controls (evidence: `src/ui/chrome/js/main.js`)
- Browser chrome → UI IPC: sends commands (evidence: `src/ui/chrome/js/main.js`)
- UI IPC → Window manager: dispatches commands (evidence: `src/main/app.js`)
- App startup → UI IPC: registers (evidence: `src/main/app.js`)
- App startup → Window manager: starts (evidence: `src/main/app.js`)
- Window manager → Browser window: manages (evidence: `src/main/windows.js`)
- Browser window → Tabs and pages: hosts (evidence: `src/main/window.js`)
- Tabs and pages → Address resolver: resolves addresses (evidence: `src/main/tab.js`)
- Tabs and pages → Web destinations: loads pages (evidence: `README.md`)
- UI IPC → Address suggestions: requests suggestions (evidence: `src/main/ipc.js`)
- UI IPC → Favorites: dispatches favorite actions (evidence: `src/main/ipc.js`)
- Tabs and pages → Browsing history: records visits (evidence: `src/main/tab.js`)
- Favorites → Local database: reads and writes (evidence: `src/main/favorites.js`)
- Settings → Local database: persists settings (evidence: `src/main/settings.js`)
- App startup → Local database: opens (evidence: `src/main/app.js`)
- App startup → Settings: loads (evidence: `src/main/app.js`)
- UI IPC → Browsing history: dispatches history actions (evidence: `src/main/ipc.js`)
- UI IPC → Downloads: dispatches download actions (evidence: `src/main/ipc.js`)
- App startup → Safe autofill: registers (evidence: `src/main/app.js`)
- App startup → Page permissions: configures (evidence: `src/main/app.js`)
- App startup → Hex customization: sets up (evidence: `src/main/app.js`)
- Hex customization → Page injector: sets up (evidence: `src/main/hex/index.js`)
- Page injector → User scripts: uses (evidence: `src/main/hex/injector.js`)
- Phone user → Phone remote: connects to (evidence: `README.md`)
- App startup → Phone remote: starts (evidence: `src/main/app.js`)
- Phone remote → Favorites: reads favorites (evidence: `src/main/remote.js`)
- Phone remote → Remote streaming: uses streaming (evidence: `src/main/remote.js`)
- App startup → Update checker: starts (evidence: `src/main/app.js`)
- UI IPC → Settings: dispatches settings actions (evidence: `src/main/ipc.js`)
