English
System Architecture & Interactive Topology
CloudForge separates edge request routing, SQL state, Git pack storage, and container execution across six complementary Cloudflare planes without running persistent VMs.
Interactive System Diagram (Archify)
Runtime Planes
- Unified Edge Gateway & React 18 SPA (
worker/src/index.ts,src/): EnforcesaccessRuntimeResponse, body limits (64 KB/1 MB), and routes Smart HTTP Git, Git LFS, OAuth 2.1/mcp, OpenAPI/api/*, and static SPA assets from one origin. - D1 Relational State (
migrations/0000–0066,worker/src/db/): Stores users, sessions, repositories, PR/stack edges, issues, notifications, webhooks, runs, andpush_eventsoutbox rows using batched queries respecting D1's 100-parameter SQL limit. - Cloudflare Artifacts & R2 Object Plane: Delegates Git objects/refs to per-repo
ARTIFACTSnamespaces (1 GB limit, Git v1) while storing LFS binaries, Actions logs, and caches in R2 buckets (LFS,ACTIONS_LOGS,ACTIONS_CACHE). - Durable Orchestration Plane: Runs
ActionsRun+ActionsQueue+JobRunnerContainers for CI;MergeResolutionWorkflow+AgentReviewer+MergeResolverfor AI review, DAG stacking, conflict resolution, and self-learning; andLiveHubfor browser WebSocket pings. - Workers AI, AI Gateway & Email Sending: Supplies summary, review, deep Pi, and conflict resolver GLM models (tagging untrusted code blocks) plus invitation, verification, and notification emails.
Continue Exploring
Read End-to-End Walkthrough, the four Module Deep Dives, and Code Map & Contributing.