How center4solution/redis-desktop-manager works
Redis Desktop Manager is an Electron/React desktop client for managing Redis profiles, browsing and editing keys, running raw commands, and inspecting server state. The main workflow is profile setup and connection, cursor-based key discovery, type-aware value viewing/editing, with CLI and server tools as parallel capabilities. The renderer uses a typed preload bridge to reach main-process IPC, which owns Redis sessions and persisted credentials. The README documents product capabilities; some IPC and renderer implementations were not excerpted, so uncertain internal links are omitted.
Main entry points: main/index.ts Main process · connectionManager.ts Redis sessions · App.tsx App shell · preload/index.ts Typed API bridge
Components 25
Renderer UI
- App shell
src/renderer/src/App.tsx - Connection controls
src/renderer/src/components/ConnectionForm.tsx - Sidebar and browser
src/renderer/src/components/Sidebar.tsx - Key browser
src/renderer/src/components/KeyBrowser.tsx - Namespace tree
src/renderer/src/lib/keyTree.ts - Value viewer
src/renderer/src/components/ValueViewer.tsx - CLI console
src/renderer/src/components/CliConsole.tsx - Server panel
src/renderer/src/components/ServerPanel.tsx
Electron Bridge
- Typed API bridge
src/preload/index.ts - Main process
src/main/index.ts - Auto-updater
src/main/updater.ts
Redis Operations
- Profile IPC
src/main/ipc/configHandlers.ts - Connection IPC
src/main/ipc/redisHandlers.ts - Key scan IPC
src/main/ipc/keyHandlers.ts - Value read IPC
src/main/ipc/valueHandlers.ts - Value edit IPC
src/main/ipc/valueEditHandlers.ts - CLI IPC
src/main/ipc/cliHandlers.ts - Server IPC
src/main/ipc/serverHandlers.ts - Redis sessions
src/main/connectionManager.ts
Profiles and State
- Connection state
src/renderer/src/store/connectionsStore.ts - Key state
src/renderer/src/store/keysStore.ts - CLI state
src/renderer/src/store/cliStore.ts - Encrypted profiles
src/main/configStore.ts
Other components
- Redis user
- Redis server
Connections 38
- Redis user → App shell: uses
- App shell → Connection controls: renders
src/renderer/src/App.tsx - App shell → Sidebar and browser: renders
src/renderer/src/App.tsx - App shell → Value viewer: renders
src/renderer/src/App.tsx - App shell → CLI console: renders
src/renderer/src/App.tsx - App shell → Server panel: renders
src/renderer/src/App.tsx - Sidebar and browser → Key browser: renders
src/renderer/src/components/Sidebar.tsx - Key browser → Key state: updates
src/renderer/src/components/KeyBrowser.tsx - Key state → Namespace tree: builds tree
src/renderer/src/store/keysStore.ts - Connection controls → Connection state: submits profile
src/renderer/src/store/connectionsStore.ts - Connection state → Typed API bridge: requests connection
- Key state → Typed API bridge: requests key data
- Value viewer → Typed API bridge: requests values
- CLI console → CLI state: uses history
src/renderer/src/components/CliConsole.tsx - CLI state → Typed API bridge: sends commands
- Server panel → Typed API bridge: requests stats
- Typed API bridge → Main process: invokes IPC
- Main process → Connection IPC: registers
src/main/index.ts - Main process → Profile IPC: registers
src/main/index.ts - Main process → Key scan IPC: registers
src/main/index.ts - Main process → Value read IPC: registers
src/main/index.ts - Main process → Value edit IPC: registers
src/main/index.ts - Main process → CLI IPC: registers
src/main/index.ts - Main process → Server IPC: registers
src/main/index.ts - Main process → Auto-updater: routes updates
src/main/index.ts - Profile IPC → Encrypted profiles: reads and writes
src/main/ipc/configHandlers.ts - Connection IPC → Redis sessions: manages sessions
src/main/ipc/redisHandlers.ts - Key scan IPC → Redis sessions: uses sessions
src/main/ipc/keyHandlers.ts - Value read IPC → Redis sessions: reads through
src/main/ipc/valueHandlers.ts - Value edit IPC → Redis sessions: mutates through
src/main/ipc/valueEditHandlers.ts - CLI IPC → Redis sessions: executes through
src/main/ipc/cliHandlers.ts - Server IPC → Redis sessions: queries through
src/main/ipc/serverHandlers.ts - Redis sessions → Redis server: connects
- Key scan IPC → Redis server: scans keys
- Value read IPC → Redis server: reads typed values
src/main/ipc/valueHandlers.ts - Value edit IPC → Redis server: edits values
- CLI IPC → Redis server: runs commands
- Server IPC → Redis server: reads server state