Skip to content

Mediacom99/ralph-orchestrator

Repository files navigation

🤖 Ralph Orchestrator

AI-powered development pipelines, orchestrated.

Point it at a repo. Define your objectives. Watch AI agents plan, code, test, and commit.

CI Go Fiber Docker License


⚡ What is this?

Ralph Orchestrator is a Go REST API that manages automated development cycles ("loops"). Each loop:

📦 Clone repo → 📋 Read objectives → 🤖 Run AI agent → ✅ Test → 📝 Commit

Everything streams in real-time through WebSockets to a built-in React dashboard.


🏗️ Architecture

┌─────────────────────────────────────────────────┐
│                  Ralph Orchestrator              │
├──────────────┬──────────────┬───────────────────┤
│   🌐 API     │   🧠 Core    │   💾 Storage      │
│              │              │                   │
│  Fiber v2    │  Loop Mgr    │  SQLite           │
│  WebSocket   │  Git Clone   │  Settings Store   │
│  Auth MW     │  Agent Runner│  Loop State       │
│  SPA Embed   │  Event Bus   │                   │
├──────────────┴──────────────┴───────────────────┤
│                 🎨 Dashboard                     │
│           React + TypeScript + Vite              │
└─────────────────────────────────────────────────┘
cmd/orchestrator/       → Entry point
internal/
  api/                  → HTTP server, handlers, middleware
  config/               → Environment-based config
  events/               → Real-time event bus
  git/                  → Repository cloning
  ralph/                → AI agent lifecycle management
  store/                → Persistence layer
web/                    → React + TypeScript dashboard
deploy/                 → Docker, systemd, install script

🚀 Quick Start

# Clone
git clone https://github.com/Mediacom99/ralph-orchestrator.git
cd ralph-orchestrator

# Configure
cp .env.example .env
# Add your GitHub token + Anthropic API key

# Build & Run
go build -o ralph ./cmd/orchestrator
./ralph

Dashboard at http://localhost:3001


📡 API

Method Endpoint Description
GET /api/health Health check
GET /api/loops List all loops
POST /api/loops Create a new loop
POST /api/loops/:id/start Start a loop
POST /api/loops/:id/stop Stop a loop
DELETE /api/loops/:id Delete a loop
GET /api/settings Get settings
PUT /api/settings Update settings
WS /ws Real-time events stream

🐳 Deploy

# Docker
docker build -t ralph-orchestrator .
docker run -p 3001:3001 --env-file .env ralph-orchestrator

# Or systemd — see deploy/ folder

Full deployment guide → DEPLOY.md


🛠️ Tech Stack

Technology Role
🔵 Go 1.24 Backend runtime
Fiber v2 HTTP framework
🔌 WebSocket Real-time streaming
💾 SQLite Persistence
⚛️ React + TypeScript Dashboard
🏗️ Vite Frontend build
🐳 Docker Containerization
⚙️ GitHub Actions CI pipeline

📄 License

MIT

About

Go REST API orchestrator for AI-powered development pipelines. Fiber, SQLite, Telegram notifications, Docker deployment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors