# tiny-craft/tiny-rdm architecture

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

- Interactive diagram: https://gitdiagram.com/tiny-craft/tiny-rdm
- Repository: https://github.com/tiny-craft/tiny-rdm

## Overview

Tiny RDM is a cross-platform Redis desktop manager with a deployable web mode. Users configure connections, browse databases and keys, inspect or edit values, and use operational tools such as monitoring, CLI, slow logs, and pub/sub. The graph reflects the documented capabilities and the sampled frontend composition; backend internals and several frontend-to-backend links were not shown in excerpts, so those relationships are omitted or marked unverified.

Main entry points: [`frontend/src/App.vue`](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/App.vue) (Application shell), [`frontend/src/AppContent.vue`](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/AppContent.vue) (Workspace layout), [`frontend/src/components/dialogs/ConnectionDialog.vue`](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/ConnectionDialog.vue) (Connection editor), [`frontend/src/stores/browser.js`](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/browser.js) (Browser state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Client interface"]
  node_app["Application shell<br/>[App.vue]"]
  node_workspace["Workspace layout<br/>[AppContent.vue]"]
  node_browserui["Key browser<br/>[BrowserPane.vue]"]
  node_content["Key content views<br/>[ContentPane.vue]"]
  node_dialogs["Key operation dialogs<br/>[NewKeyDialog.vue]"]
end

subgraph group_connection["Connection management"]
  node_connectionsui["Connection editor"]
  node_connectionstate["Connection state<br/>[connections.js]"]
  node_connectionapi["Connection API<br/>[connection_api.go]"]
  node_connectionservice["Connection service"]
  node_profiledata[("Connection profiles<br/>[connections.go]")]
end

subgraph group_redis["Redis operations"]
  node_browserstate["Browser state<br/>[browser.js]"]
  node_browserapi["Browser API<br/>[browser_api.go]"]
  node_browserservice["Redis operations<br/>[browser_service.go]"]
  node_monitor["Command monitoring<br/>[monitor_service.go]"]
  node_pubsub["Publish and subscribe<br/>[pubsub_service.go]"]
  node_cli["Command-line mode<br/>[cli_service.go]"]
end

subgraph group_support["Preferences and tools"]
  node_preferencesui["Preferences dialog"]
  node_preferencesstate["Preferences state<br/>[preferences.js]"]
  node_preferencesapi["Preferences API<br/>[preferences_api.go]"]
  node_preferencesservice["Preferences service"]
  node_prefdata[("Saved preferences<br/>[preferences.go]")]
  node_converters["Value conversion<br/>[convert.go]"]
end

node_user(("Redis user"))
node_redisserver[("Redis server")]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_workspace
node_workspace -->|"renders"| node_browserui
node_workspace -->|"renders"| node_content
node_app -->|"opens"| node_connectionsui
node_connectionsui -->|"uses"| node_connectionstate
node_connectionsui -->|"tests connection"| node_connectionservice
node_browserui -.->|"dispatches browser actions"| node_browserstate
node_content -.->|"reads key data"| node_browserstate
node_dialogs -->|"writes key data"| node_browserstate
node_user -->|"manages keys"| node_redisserver
node_user -->|"monitors commands"| node_monitor
node_user -->|"publishes and subscribes"| node_pubsub
node_user -->|"runs commands"| node_cli
node_user -->|"converts values"| node_converters
node_preferencesui -->|"saves settings"| node_preferencesstate
node_app -->|"loads settings"| node_preferencesstate

click node_app "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/App.vue"
click node_workspace "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/AppContent.vue"
click node_browserui "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/sidebar/BrowserPane.vue"
click node_content "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/content/ContentPane.vue"
click node_dialogs "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/NewKeyDialog.vue"
click node_connectionsui "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/ConnectionDialog.vue"
click node_connectionstate "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/connections.js"
click node_connectionapi "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/api/connection_api.go"
click node_connectionservice "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/connection_service.go"
click node_profiledata "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/storage/connections.go"
click node_browserstate "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/browser.js"
click node_browserapi "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/api/browser_api.go"
click node_browserservice "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/browser_service.go"
click node_monitor "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/monitor_service.go"
click node_pubsub "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/pubsub_service.go"
click node_cli "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/cli_service.go"
click node_preferencesui "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/PreferencesDialog.vue"
click node_preferencesstate "https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/preferences.js"
click node_preferencesapi "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/api/preferences_api.go"
click node_preferencesservice "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/preferences_service.go"
click node_prefdata "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/storage/preferences.go"
click node_converters "https://github.com/tiny-craft/tiny-rdm/blob/main/backend/utils/convert/convert.go"

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_workspace,node_browserui,node_content,node_dialogs toneBlue
class node_connectionsui,node_connectionstate,node_connectionapi,node_connectionservice,node_profiledata,node_user,node_redisserver toneAmber
class node_browserstate,node_browserapi,node_browserservice,node_monitor,node_pubsub,node_cli toneMint
class node_preferencesui,node_preferencesstate,node_preferencesapi,node_preferencesservice,node_prefdata,node_converters toneRose
```

## Components

### Client interface

- [Application shell](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/App.vue): `frontend/src/App.vue`
- [Workspace layout](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/AppContent.vue): `frontend/src/AppContent.vue`
- [Key browser](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/sidebar/BrowserPane.vue): `frontend/src/components/sidebar/BrowserPane.vue`
- [Key content views](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/content/ContentPane.vue): `frontend/src/components/content/ContentPane.vue`
- [Key operation dialogs](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/NewKeyDialog.vue): `frontend/src/components/dialogs/NewKeyDialog.vue`

### Connection management

- [Connection editor](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/ConnectionDialog.vue): `frontend/src/components/dialogs/ConnectionDialog.vue`
- [Connection state](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/connections.js): `frontend/src/stores/connections.js`
- [Connection API](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/api/connection_api.go): `backend/api/connection_api.go`
- [Connection service](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/connection_service.go): `backend/services/connection_service.go`
- [Connection profiles](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/storage/connections.go): `backend/storage/connections.go`

### Redis operations

- [Browser state](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/browser.js): `frontend/src/stores/browser.js`
- [Browser API](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/api/browser_api.go): `backend/api/browser_api.go`
- [Redis operations](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/browser_service.go): `backend/services/browser_service.go`
- [Command monitoring](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/monitor_service.go): `backend/services/monitor_service.go`
- [Publish and subscribe](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/pubsub_service.go): `backend/services/pubsub_service.go`
- [Command-line mode](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/cli_service.go): `backend/services/cli_service.go`

### Preferences and tools

- [Preferences dialog](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/components/dialogs/PreferencesDialog.vue): `frontend/src/components/dialogs/PreferencesDialog.vue`
- [Preferences state](https://github.com/tiny-craft/tiny-rdm/blob/main/frontend/src/stores/preferences.js): `frontend/src/stores/preferences.js`
- [Preferences API](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/api/preferences_api.go): `backend/api/preferences_api.go`
- [Preferences service](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/services/preferences_service.go): `backend/services/preferences_service.go`
- [Saved preferences](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/storage/preferences.go): `backend/storage/preferences.go`
- [Value conversion](https://github.com/tiny-craft/tiny-rdm/blob/main/backend/utils/convert/convert.go): `backend/utils/convert/convert.go`

### Other components

- **Redis user**
- **Redis server**

## Connections

- Redis user → Application shell: uses (evidence: `README.md`)
- Application shell → Workspace layout: renders (evidence: `frontend/src/App.vue`)
- Workspace layout → Key browser: renders (evidence: `frontend/src/AppContent.vue`)
- Workspace layout → Key content views: renders (evidence: `frontend/src/AppContent.vue`)
- Application shell → Connection editor: opens (evidence: `frontend/src/App.vue`)
- Connection editor → Connection state: uses (evidence: `frontend/src/components/dialogs/ConnectionDialog.vue`)
- Connection editor → Connection service: tests connection (evidence: `frontend/src/components/dialogs/ConnectionDialog.vue`)
- Key browser → Browser state: dispatches browser actions
- Key content views → Browser state: reads key data
- Key operation dialogs → Browser state: writes key data (evidence: `frontend/src/components/dialogs/NewKeyDialog.vue`)
- Redis user → Redis server: manages keys (evidence: `README.md`)
- Redis user → Command monitoring: monitors commands (evidence: `README.md`)
- Redis user → Publish and subscribe: publishes and subscribes (evidence: `README.md`)
- Redis user → Command-line mode: runs commands (evidence: `README.md`)
- Redis user → Value conversion: converts values (evidence: `README.md`)
- Preferences dialog → Preferences state: saves settings (evidence: `frontend/src/components/dialogs/PreferencesDialog.vue`)
- Application shell → Preferences state: loads settings (evidence: `frontend/src/App.vue`)
