How brxj19/revforge works
RevForge is a self-hosted Mercurial forge. Users browse and manage repositories, inspect revisions and code, and collaborate through review workflows; operators manage access and observe activity. The backend exposes API workflows and Mercurial HTTP/SSH transport, while the current React app and redesigned Solid app provide separate web interfaces. The sampled startup, routing, dependency, and read-service references support the shown links; README capability statements preserve major unsampled areas. Other implementation connections are omitted where excerpts do not establish them.
Main entry points: router.py API router · session.py Forge database · App.tsx Redesigned web app · main.py Backend application
Components 27
Web interfaces
- Current web app
frontend/src/app/router.tsx - Revision graph
frontend/src/routes/repository-graph.tsx - Redesigned web app
frontend-next/src/app/App.tsx - Feature routes
frontend-next/src/app/routes.tsx - Web API client
frontend-next/src/lib/api/client.ts
API workflows
- Backend application
backend/app/main.py - API router
backend/app/api/v1/router.py - Organization API
backend/app/api/v1/organizations.py - Repository API
backend/app/api/v1/repositories.py - Pull request API
backend/app/api/v1/pull_requests.py - Webhook API
backend/app/api/v1/webhooks.py - Request identity
backend/app/api/deps.py
Mercurial platform
- Revision and code reads
backend/app/mercurial/read_service.py - Mercurial command runner
backend/app/mercurial/command_runner.py - Repository storage paths
backend/app/mercurial/storage_locator.py - HTTP clone gateway
backend/app/mercurial/http_gateway_service.py - SSH clone gateway
backend/app/mercurial/ssh_gateway.py
Forge services
- Repository services
backend/app/services/repository_service.py - Review workflows
backend/app/services/pull_request_service.py - Visibility-aware search
backend/app/services/search_service.py - Administration
backend/app/services/admin_service.py
Persistent state
- Forge database
backend/app/db/session.py - Repository records
backend/app/models/repository.py - User records
backend/app/models/user.py
Other components
- Developer or operator
- Mercurial repositories
- Mercurial client
Connections 30
- Developer or operator → Current web app: uses
README.md - Developer or operator → Redesigned web app: uses
README.md - Current web app → Revision graph: routes to
frontend/src/app/router.tsx - Redesigned web app → Feature routes: renders routes
frontend-next/src/app/App.tsx - Feature routes → Web API client: queries API
- Redesigned web app → Backend application: calls API
- Backend application → API router: mounts
backend/app/main.py - API router → Organization API: registers
backend/app/api/v1/router.py - API router → Repository API: registers
backend/app/api/v1/router.py - API router → Pull request API: registers
backend/app/api/v1/router.py - API router → Webhook API: registers
backend/app/api/v1/router.py - Organization API → Repository services: delegates
- Pull request API → Review workflows: delegates
- Webhook API → Request identity: resolves identity
backend/app/api/v1/webhooks.py - Request identity → User records: loads identity
backend/app/api/deps.py - Repository API → Revision and code reads: reads revisions
- Repository API → Visibility-aware search: searches
- Administration → Repository storage paths: provisions paths
backend/app/services/admin_service.py - Revision and code reads → Mercurial command runner: runs commands
backend/app/mercurial/read_service.py - Repository storage paths → Repository records: resolves path for
backend/app/mercurial/storage_locator.py - Backend application → HTTP clone gateway: mounts
backend/app/main.py - Mercurial client → HTTP clone gateway: clones over HTTPS
- Mercurial client → SSH clone gateway: clones over SSH
- HTTP clone gateway → Mercurial repositories: serves
- SSH clone gateway → Mercurial repositories: serves
- Repository services → Forge database: persists records
- Review workflows → Forge database: persists reviews
- Visibility-aware search → Forge database: queries visibility
backend/app/services/search_service.py - Forge database → Repository records: stores
- Forge database → User records: stores