How howarewoo/git-stacks works
Git Stacks is a local-first Electron desktop app for managing Git branches and pull-request stacks, reviewing changes, and coordinating publishing workflows without a separate stack CLI. The principal path is a developer operating the renderer, which uses the preload bridge to request main-process Git or GitHub work and displays the resulting repository, stack, and review state. The graph also preserves onboarding, settings, notifications, and signed updates. Several implementation links are documented or visible in the source index; unsampled subsystem wiring is not asserted.
Main entry points: App.tsx Workspace UI · index.ts Main process · clone-repository.ts Repository clone · service.ts Update service
Components 26
Desktop experience
- Workspace UI
apps/desktop/src/renderer/src/App.tsx - Repository views
apps/desktop/src/renderer/src/components/repository-views.tsx - Stack workflows
apps/desktop/src/renderer/src/components/workflow-dialog.tsx - Workflow composition
apps/desktop/src/renderer/src/components/workflow-composition.tsx - Graph workbench
apps/desktop/src/renderer/src/components/graph-workbench.tsx - Onboarding
apps/desktop/src/renderer/src/components/onboarding.tsx - Settings UI
apps/desktop/src/renderer/src/components/settings-dialog.tsx - Preload bridge
apps/desktop/src/preload/index.ts - Main process
apps/desktop/src/main/index.ts
Local Git
- Git operations
apps/desktop/src/main/git-core.ts - Git runtime
apps/desktop/src/main/git-runtime.ts - Repository clone
apps/desktop/src/main/clone-repository.ts - Repository refresh
apps/desktop/src/main/repository-scheduler.ts - Clone promotion
apps/desktop/src/main/promote-repository.ts
Pull requests
- GitHub services
apps/desktop/src/main/github.ts - PR inbox
apps/desktop/src/main/pr-inbox.ts - Review services
apps/desktop/src/main/review.ts
Shared and platform
- Review domain
packages/shared/src/review.ts - Shared domain
packages/shared/src/types.ts - UI components
packages/ui/src/components/ui/button.tsx - Update service
apps/desktop/src/main/update/service.ts - Update verification
apps/desktop/src/main/update/manifest.ts - Update artifacts
apps/desktop/src/main/update/artifact.ts - Update installation
apps/desktop/src/main/update/install.ts
Other components
- Developer
- GitHub
Connections 27
- Developer → Workspace UI: operates
README.md - Workspace UI → Preload bridge: requests via
README.md - Preload bridge → Main process: bridges to
README.md - Workspace UI → Repository views: renders
apps/desktop/src/renderer/src/App.tsx - Workspace UI → Stack workflows: opens
apps/desktop/src/renderer/src/App.tsx - Stack workflows → Workflow composition: renders
apps/desktop/src/renderer/src/components/workflow-dialog.tsx - Workspace UI → Graph workbench: renders
apps/desktop/src/renderer/src/App.tsx - Workspace UI → Onboarding: renders
apps/desktop/src/renderer/src/App.tsx - Workspace UI → Settings UI: opens
apps/desktop/src/renderer/src/App.tsx - Main process → Repository clone: dispatches
- Repository clone → Git operations: executes Git
apps/desktop/src/main/clone-repository.ts - Repository clone → Git runtime: resolves runtime
apps/desktop/src/main/clone-repository.ts - Repository clone → Clone promotion: promotes clone
apps/desktop/src/main/clone-repository.ts - Git operations → Git runtime: uses runtime
apps/desktop/src/main/git-core.ts - Main process → Repository refresh: dispatches
- Repository refresh → Git operations: refreshes through
apps/desktop/src/main/repository-scheduler.ts - Main process → GitHub services: dispatches
- Main process → PR inbox: dispatches
- Main process → Review services: dispatches
- GitHub services → GitHub: communicates with
- Review services → Review domain: uses domain types
- Review domain → Shared domain: imports types
packages/shared/src/review.ts - Workspace UI → UI components: uses controls
- Main process → Update service: dispatches
- Update service → Update verification: loads verified feed
apps/desktop/src/main/update/service.ts - Update service → Update artifacts: downloads artifact
apps/desktop/src/main/update/service.ts - Update service → Update installation: resolves install
apps/desktop/src/main/update/service.ts