# itskodimitrov/molva architecture

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

- Interactive diagram: https://gitdiagram.com/itskodimitrov/molva
- Repository: https://github.com/itskodimitrov/molva

## Overview

Molva is a local-first desktop workspace for running isolated messaging, meeting, email, and productivity services in native OS webviews. Users configure workspaces and add preset or custom services, select a service to open or wake it, then manage sessions and privacy from the shell. The React app communicates with Tauri commands for configuration and native webview operations. The README documents additional capabilities whose detailed implementation was not sampled; those branches are shown without asserted internal call paths.

Main entry points: [`src/App.tsx`](https://github.com/itskodimitrov/molva/blob/main/src/App.tsx) (App orchestration), [`src/types/app.ts`](https://github.com/itskodimitrov/molva/blob/main/src/types/app.ts) (App data model), [`src-tauri/src/lib.rs`](https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/lib.rs) (Command bridge), [`src/services/ecosystemFeed.ts`](https://github.com/itskodimitrov/molva/blob/main/src/services/ecosystemFeed.ts) (Ecosystem feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Workspace interface"]
  node_app["App orchestration<br/>[App.tsx]"]
  node_sidebar["Workspace sidebar<br/>[Sidebar.tsx]"]
  node_service_item["Service controls<br/>[ServiceItem.tsx]"]
  node_add_service["Add service"]
  node_presets["Service presets<br/>[presets.ts]"]
  node_settings["Settings<br/>[SettingsModal.tsx]"]
  node_titlebar["Window controls<br/>[TitleBar.tsx]"]
  node_config_types["App data model<br/>[app.ts]"]
end

subgraph group_native["Native runtime"]
  node_tauri_commands["Command bridge<br/>[lib.rs]"]
  node_webviews["Webview manager<br/>[webview_manager.rs]"]
  node_app_state[("Configuration state<br/>[state.rs]")]
  node_tray["System tray<br/>[tray.rs]"]
end

subgraph group_local["Local productivity and security"]
  node_quiet_hours["Quiet hours"]
  node_downloads["Downloads manager<br/>[DownloadsModal.tsx]"]
  node_scratchpad["Notes and tasks"]
  node_pin_lock["PIN lock<br/>[PinLockOverlay.tsx]"]
  node_link_safety["Link safety"]
end

subgraph group_ecosystem["Optional ecosystem"]
  node_creator_lab["Creator updates"]
  node_feed["Ecosystem feed<br/>[ecosystemFeed.ts]"]
end

node_user(("Desktop user"))
node_external_services(("Web services"))
node_feed_service(("Feed service"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_add_service
node_app -->|"renders"| node_settings
node_app -->|"renders"| node_titlebar
node_app -->|"renders"| node_quiet_hours
node_app -->|"renders"| node_downloads
node_app -->|"renders"| node_scratchpad
node_app -->|"renders"| node_pin_lock
node_app -->|"renders"| node_link_safety
node_app -->|"renders"| node_creator_lab
node_sidebar -->|"renders"| node_service_item
node_add_service -->|"selects from"| node_presets
node_app -->|"invokes commands"| node_tauri_commands
node_tauri_commands -->|"dispatches"| node_webviews
node_tauri_commands -->|"loads and saves"| node_app_state
node_tauri_commands -->|"initializes"| node_tray
node_webviews -.->|"loads web content"| node_external_services
node_app -->|"uses data model"| node_config_types
node_settings -->|"uses settings types"| node_config_types
node_quiet_hours -->|"uses service config"| node_config_types
node_downloads -->|"uses download types"| node_config_types
node_scratchpad -->|"uses note types"| node_config_types
node_link_safety -->|"uses prompt type"| node_config_types
node_app -->|"uses feed"| node_feed
node_sidebar -->|"uses feed"| node_feed
node_creator_lab -->|"uses feed"| node_feed
node_feed -.->|"fetches catalog"| node_feed_service

click node_app "https://github.com/itskodimitrov/molva/blob/main/src/App.tsx"
click node_sidebar "https://github.com/itskodimitrov/molva/blob/main/src/components/Sidebar.tsx"
click node_service_item "https://github.com/itskodimitrov/molva/blob/main/src/components/ServiceItem.tsx"
click node_add_service "https://github.com/itskodimitrov/molva/blob/main/src/components/AddServiceModal.tsx"
click node_presets "https://github.com/itskodimitrov/molva/blob/main/src/constants/presets.ts"
click node_settings "https://github.com/itskodimitrov/molva/blob/main/src/components/SettingsModal.tsx"
click node_titlebar "https://github.com/itskodimitrov/molva/blob/main/src/components/TitleBar.tsx"
click node_config_types "https://github.com/itskodimitrov/molva/blob/main/src/types/app.ts"
click node_tauri_commands "https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/lib.rs"
click node_webviews "https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/webview_manager.rs"
click node_app_state "https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/state.rs"
click node_tray "https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/tray.rs"
click node_quiet_hours "https://github.com/itskodimitrov/molva/blob/main/src/components/QuietHoursModal.tsx"
click node_downloads "https://github.com/itskodimitrov/molva/blob/main/src/components/DownloadsModal.tsx"
click node_scratchpad "https://github.com/itskodimitrov/molva/blob/main/src/components/ScratchpadPanel.tsx"
click node_pin_lock "https://github.com/itskodimitrov/molva/blob/main/src/components/PinLockOverlay.tsx"
click node_link_safety "https://github.com/itskodimitrov/molva/blob/main/src/components/LinkSafetyModal.tsx"
click node_creator_lab "https://github.com/itskodimitrov/molva/blob/main/src/components/CreatorLabModal.tsx"
click node_feed "https://github.com/itskodimitrov/molva/blob/main/src/services/ecosystemFeed.ts"

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_app,node_sidebar,node_service_item,node_add_service,node_presets,node_settings,node_titlebar,node_config_types,node_user toneBlue
class node_tauri_commands,node_webviews,node_app_state,node_tray toneAmber
class node_quiet_hours,node_downloads,node_scratchpad,node_pin_lock,node_link_safety toneMint
class node_creator_lab,node_feed toneRose
class node_external_services,node_feed_service toneIndigo
```

## Components

### Workspace interface

- [App orchestration](https://github.com/itskodimitrov/molva/blob/main/src/App.tsx): `src/App.tsx`
- [Workspace sidebar](https://github.com/itskodimitrov/molva/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Service controls](https://github.com/itskodimitrov/molva/blob/main/src/components/ServiceItem.tsx): `src/components/ServiceItem.tsx`
- [Add service](https://github.com/itskodimitrov/molva/blob/main/src/components/AddServiceModal.tsx): `src/components/AddServiceModal.tsx`
- [Service presets](https://github.com/itskodimitrov/molva/blob/main/src/constants/presets.ts): `src/constants/presets.ts`
- [Settings](https://github.com/itskodimitrov/molva/blob/main/src/components/SettingsModal.tsx): `src/components/SettingsModal.tsx`
- [Window controls](https://github.com/itskodimitrov/molva/blob/main/src/components/TitleBar.tsx): `src/components/TitleBar.tsx`
- [App data model](https://github.com/itskodimitrov/molva/blob/main/src/types/app.ts): `src/types/app.ts`

### Native runtime

- [Command bridge](https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/lib.rs): `src-tauri/src/lib.rs`
- [Webview manager](https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/webview_manager.rs): `src-tauri/src/webview_manager.rs`
- [Configuration state](https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/state.rs): `src-tauri/src/state.rs`
- [System tray](https://github.com/itskodimitrov/molva/blob/main/src-tauri/src/tray.rs): `src-tauri/src/tray.rs`

### Local productivity and security

- [Quiet hours](https://github.com/itskodimitrov/molva/blob/main/src/components/QuietHoursModal.tsx): `src/components/QuietHoursModal.tsx`
- [Downloads manager](https://github.com/itskodimitrov/molva/blob/main/src/components/DownloadsModal.tsx): `src/components/DownloadsModal.tsx`
- [Notes and tasks](https://github.com/itskodimitrov/molva/blob/main/src/components/ScratchpadPanel.tsx): `src/components/ScratchpadPanel.tsx`
- [PIN lock](https://github.com/itskodimitrov/molva/blob/main/src/components/PinLockOverlay.tsx): `src/components/PinLockOverlay.tsx`
- [Link safety](https://github.com/itskodimitrov/molva/blob/main/src/components/LinkSafetyModal.tsx): `src/components/LinkSafetyModal.tsx`

### Optional ecosystem

- [Creator updates](https://github.com/itskodimitrov/molva/blob/main/src/components/CreatorLabModal.tsx): `src/components/CreatorLabModal.tsx`
- [Ecosystem feed](https://github.com/itskodimitrov/molva/blob/main/src/services/ecosystemFeed.ts): `src/services/ecosystemFeed.ts`

### Other components

- **Desktop user**
- **Web services**
- **Feed service**

## Connections

- Desktop user → App orchestration: uses (evidence: `README.md`)
- App orchestration → Workspace sidebar: renders (evidence: `src/App.tsx`)
- App orchestration → Add service: renders (evidence: `src/App.tsx`)
- App orchestration → Settings: renders (evidence: `src/App.tsx`)
- App orchestration → Window controls: renders (evidence: `src/App.tsx`)
- App orchestration → Quiet hours: renders (evidence: `src/App.tsx`)
- App orchestration → Downloads manager: renders (evidence: `src/App.tsx`)
- App orchestration → Notes and tasks: renders (evidence: `src/App.tsx`)
- App orchestration → PIN lock: renders (evidence: `src/App.tsx`)
- App orchestration → Link safety: renders (evidence: `src/App.tsx`)
- App orchestration → Creator updates: renders (evidence: `src/App.tsx`)
- Workspace sidebar → Service controls: renders (evidence: `src/components/Sidebar.tsx`)
- Add service → Service presets: selects from (evidence: `src/components/AddServiceModal.tsx`)
- App orchestration → Command bridge: invokes commands (evidence: `src/App.tsx`)
- Command bridge → Webview manager: dispatches (evidence: `src-tauri/src/lib.rs`)
- Command bridge → Configuration state: loads and saves (evidence: `src-tauri/src/lib.rs`)
- Command bridge → System tray: initializes (evidence: `src-tauri/src/lib.rs`)
- Webview manager → Web services: loads web content (evidence: `README.md`)
- App orchestration → App data model: uses data model (evidence: `src/App.tsx`)
- Settings → App data model: uses settings types (evidence: `src/components/SettingsModal.tsx`)
- Quiet hours → App data model: uses service config (evidence: `src/components/QuietHoursModal.tsx`)
- Downloads manager → App data model: uses download types (evidence: `src/components/DownloadsModal.tsx`)
- Notes and tasks → App data model: uses note types (evidence: `src/components/ScratchpadPanel.tsx`)
- Link safety → App data model: uses prompt type (evidence: `src/components/LinkSafetyModal.tsx`)
- App orchestration → Ecosystem feed: uses feed (evidence: `src/App.tsx`)
- Workspace sidebar → Ecosystem feed: uses feed (evidence: `src/components/Sidebar.tsx`)
- Creator updates → Ecosystem feed: uses feed (evidence: `src/components/CreatorLabModal.tsx`)
- Ecosystem feed → Feed service: fetches catalog (evidence: `README.md`)
