How ember1414/forgedesk works
ForgeDesk is a cross-platform desktop Git client. The user opens or selects a repository, inspects its status and history, then stages, previews, and performs Git operations; snapshots and operation history provide recovery. Separate branches cover GitHub collaboration, terminal/editor/diagnostics, and plugins/themes/settings. The sampled source confirms the React route and history-query path, the Rust Git engine split, and the plugin sandbox; other feature connections are documented in the README but their implementation was not sampled.
Main entry points: src Command handlers · routes.tsx Feature routes · client.ts Tauri IPC · repository.rs Repository service
Components 21
Desktop interface
- React application
src/app/App.tsx - Feature routes
src/app/routes.tsx - Tauri IPC
src/lib/ipc/client.ts
Repository operations
- Command handlers
crates/commands/src - Repository service
crates/services/src/repository.rs - Git engines
crates/git-engine/src/engine/libgit2_engine.rs - Git domain
crates/domain/src/git - Workspace and sync
crates/services/src/workspace.rs
History and recovery
- History graph
src/features/history/useGraphQuery.ts - Snapshots and operations
src/features/snapshots/SnapshotsPage.tsx - Snapshot manager
crates/snapshot/src/ref_manager.rs - SQLite storage
crates/storage/src/database.rs
GitHub integration
- GitHub features
src/features/github - GitHub provider
crates/provider/src/client.rs
Extensions and platform
- Terminal and editor
src/features/terminal/manager.ts - Diagnostics
crates/diagnostics/src/lib.rs - Plugin interface
src/features/plugins/PluginPanelsPage.tsx - Plugin sandbox
crates/plugin-host/src/engine_wasmi.rs - Settings and themes
src/stores/settingsStore.ts
Other components
- User
- GitHub
Connections 20
- User → React application: uses
- React application → Feature routes: loads
src/app/App.tsx - Feature routes → History graph: routes to
- Feature routes → Snapshots and operations: routes to
src/app/routes.tsx - Feature routes → GitHub features: routes to
src/app/routes.tsx - History graph → Tauri IPC: requests pages
src/features/history/useGraphQuery.ts - Tauri IPC → Command handlers: invokes
- Command handlers → Repository service: delegates
crates/commands/src/repository.rs - Repository service → Git engines: uses engines
- Git engines → Git domain: implements operations
crates/git-engine/src/engine/libgit2_engine.rs - Repository service → Workspace and sync: supports workspace
- Command handlers → Snapshot manager: backs up writes
- Snapshots and operations → Snapshot manager: restores snapshots
- Command handlers → SQLite storage: persists state
- GitHub features → GitHub provider: uses provider
- GitHub provider → GitHub: calls API
- Terminal and editor → Tauri IPC: refreshes state
src/features/terminal/manager.ts - Diagnostics → Command handlers: supports diagnosis
- Plugin interface → Plugin sandbox: manages plugins
- Settings and themes → Tauri IPC: loads settings
src/stores/settingsStore.ts