How j-dudek/merathon works
Merathon is a desktop Git repository manager: users open a repository in a tab, inspect history and working-tree changes, perform Git operations, and optionally manage forge accounts and pull/merge requests. The frontend calls a Tauri Rust backend through IPC; the backend uses Git functionality and provides account, forge, OAuth, and terminal capabilities. The README documents major features not visible in sampled implementation. Some frontend-to-backend routing details are unsampled, so those links are shown as unverified.
Main entry points: commands.rs Command handlers · commands.ts Tauri IPC client · App.tsx Application shell · actions.ts Git action runner
Components 23
Desktop workflow
- Application shell
git-client/src/App.tsx - Repository tabs
git-client/src/store/useTabsStore.ts - Repository state
git-client/src/store/useRepoStore.ts - Git action runner
git-client/src/lib/actions.ts - History graph
git-client/src/graph/CommitGraph.tsx - Repository views
git-client/src/components/Sidebar.tsx - PR review UI
git-client/src/components/PullRequestReviewDialog.tsx - Tauri IPC client
git-client/src/ipc/commands.ts
Git repository operations
- Command handlers
git-client/src-tauri/src/commands.rs - Git operations
git-client/src-tauri/src/git/ops.rs - Repository inspection
git-client/src-tauri/src/git/repository.rs - History and refs
git-client/src-tauri/src/git/history.rs - Merge and conflicts
git-client/src-tauri/src/git/merge.rs - Interactive rebase
git-client/src-tauri/src/git/interactive.rs
Forge and accounts
- Forge API client
git-client/src/api/forge.ts - Forge services
git-client/src-tauri/src/forge.rs - Account storage
git-client/src-tauri/src/accounts.rs - OAuth login
git-client/src-tauri/src/oauth.rs - GitHub and GitLab
git-client/src/api/github.ts
Runtime support
- Integrated terminal
git-client/src-tauri/src/terminal.rs - HTTP agent
git-client/src-tauri/src/http.rs - Operation journal
git-client/src/lib/actions.ts
Other components
- User
Connections 28
- User → Application shell: uses
- Application shell → Repository tabs: persists session
git-client/src/App.tsx - Repository tabs → Repository state: snapshots state
git-client/src/store/useTabsStore.ts - Repository state → Tauri IPC client: loads repository
git-client/src/store/useRepoStore.ts - Application shell → Repository views: renders
git-client/src/App.tsx - Application shell → History graph: renders
git-client/src/App.tsx - History graph → Tauri IPC client: requests operations
git-client/src/graph/CommitGraph.tsx - Repository views → Git action runner: initiates actions
- Git action runner → Repository state: refreshes state
git-client/src/lib/actions.ts - Git action runner → Tauri IPC client: invokes operations
- Tauri IPC client → Command handlers: dispatches commands
- Command handlers → Git operations: dispatches Git calls
git-client/src-tauri/src/commands.rs - Command handlers → Repository inspection: queries repository
git-client/src-tauri/src/commands.rs - Command handlers → History and refs: queries history
git-client/src-tauri/src/commands.rs - Command handlers → Merge and conflicts: dispatches merge
git-client/src-tauri/src/commands.rs - Command handlers → Interactive rebase: dispatches rebase
git-client/src-tauri/src/commands.rs - Application shell → PR review UI: hosts review
- PR review UI → Forge API client: requests PR actions
git-client/src/components/PullRequestReviewDialog.tsx - Forge API client → GitHub and GitLab: delegates provider calls
git-client/src/api/forge.ts - Forge API client → Tauri IPC client: uses account commands
git-client/src/api/forge.ts - Command handlers → Forge services: dispatches forge calls
git-client/src-tauri/src/commands.rs - Forge services → Account storage: loads credentials
git-client/src-tauri/src/forge.rs - Command handlers → Account storage: manages accounts
git-client/src-tauri/src/commands.rs - Command handlers → OAuth login: dispatches login
git-client/src-tauri/src/commands.rs - OAuth login → HTTP agent: sends OAuth requests
git-client/src-tauri/src/oauth.rs - Forge services → HTTP agent: uses HTTP agent
git-client/src-tauri/src/forge.rs - Command handlers → Integrated terminal: dispatches terminal
git-client/src-tauri/src/commands.rs - Tauri IPC client → Operation journal: records operations
git-client/src/ipc/commands.ts