MEL Agent is an open-source platform for building, deploying, and managing AI-powered workflows. Think of it as n8n meets GPT β a visual workflow builder specifically designed for the AI era.
Unlike traditional automation platforms retrofitted for AI, MEL Agent is built from the ground up for LLM orchestration and AI agent workflows.
- Drag-and-drop interface inspired by n8n, Make.com, and Node-RED
- Real-time debugging with step-by-step execution traces
- Live data preview for every node in your workflow
- Built-in error handling and retry policies
- Multi-tenant architecture with row-level security (Opportunity for SaaS providers)
- SOC2 Type II compliance (Opportunity for enterprise adoption)
- GDPR compliant with automatic data lineage (Opportunity for EU markets)
- High availability for production workloads (Opportunity for critical systems)
- API-first design β everything in the UI is available via REST API
- Infrastructure as Code support (Opportunity for GitOps workflows)
- Extensive node library for common AI and automation tasks
- Custom node development with Go SDK
- π§ AI Nodes: LLM chat, embeddings (opportunity for image generation, speech-to-text)
- π Integration Nodes: Slack, Baserow, webhooks, HTTP requests (opportunity for Gmail, Notion, etc.)
- β‘ Logic Nodes: If/else, transformations, delays, switches (opportunity for advanced loops)
- π Data Nodes: Database queries, variable management (opportunity for file operations)
- π§ Utility Nodes: Logging, merging, splitting, workflow calls
- Envelope-based architecture for robust data propagation
- Automatic splitting and merging of array data (opportunity for advanced parallel processing)
- Global variables and context sharing across nodes
- Binary attachments support (opportunity for multimedia workflows)
- Live editing with WebSocket-based synchronization
- Version control with semantic versioning
- Execution history with full replay capability
- Team sharing and permission management (opportunity for enterprise collaboration)
MEL Agent follows modern cloud-native patterns with distributed workflow execution:
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β React Frontend β β Go Backend β β PostgreSQL β
β βββββΊβ βββββΊβ β
β β’ Visual Builderβ β β’ REST API β β β’ Multi-tenant β
β β’ Real-time UI β β β’ WebSocket β β β’ Encrypted β
β β’ Debug Tools β β β’ Node Engine β β β’ JSONB Storage β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββ
β Worker Architecture β
βββββββββββββββββββββββββββ€
β π¦ Local Workers β
β β’ Embedded in server β
β β’ Zero configuration β
β β’ Instant processing β
βββββββββββββββββββββββββββ€
β π Remote Workers β
β β’ Standalone processes β
β β’ Horizontal scaling β
β β’ Geographic distribution β
β β’ Load balancing β
β β’ Auto-registration β
βββββββββββββββββββββββββββ
MEL Agent supports both embedded and distributed execution:
- π Local Workers: Built-in workers that start with the API server for immediate processing
- π Remote Workers: Standalone worker processes that connect via secure API for scalable execution
- π Queue-based Coordination: Unified work queue system ensures reliable task distribution
- πͺ Fault Tolerance: Automatic retry, heartbeat monitoring, and worker health tracking
Technology Stack:
- Backend: Go with Chi router, PostgreSQL, WebSockets, Testcontainers
- Frontend: React, Vite, Tailwind CSS, ReactFlow
- Workers: Local embedded + distributed remote workers with queue-based coordination
- Infrastructure: Docker, Docker Compose, Kubernetes-ready
git clone https://github.com/cedricziel/mel-agent.git
cd mel-agent
docker compose up --buildπ That's it! Your MEL Agent instance is running:
- API: http://localhost:8080
- Web UI: http://localhost:5173
- Health Check: http://localhost:8080/health
Scale to multiple instances for production workloads:
# Start with load balancer and multiple instances
docker-compose -f docker-compose.scale.yml up -d --scale api=3 --scale worker=2
# Test scaling
./test-scaling.shπ Scaled deployment includes:
- Load Balancer: http://localhost:8080 (Nginx)
- 3 API Server Instances: Stateless, auto-scaling
- 2 Worker Instances: Distributed processing
- Health Monitoring:
/healthand/readyendpoints
Prerequisites: Go 1.21+, Node.js 18+, PostgreSQL 15+
# Backend (includes local workers)
export DATABASE_URL="postgres://postgres:postgres@localhost:5432/melagent?sslmode=disable"
go run ./cmd/server server
# Frontend
cd web
pnpm install && pnpm dev
# Optional: Remote Workers (for scaling)
export MEL_WORKER_TOKEN="your-worker-token"
go run ./cmd/server worker --token your-worker-token --server http://localhost:8080- ποΈ Architecture Overview
- π Connections & Integrations
- π¨ Visual Builder Guide
- π Data Flow & Envelopes
- π§ Email Processing Agent (opportunity for real-world examples)
- π± Social Media Manager (opportunity for marketing automation)
- π Data Pipeline Automation (opportunity for ETL workflows)
MEL Agent stands on the shoulders of giants, drawing inspiration from:
- n8n β Visual workflow automation and node-based architecture
- Make.com β Intuitive drag-and-drop interface and robust integrations
- Node-RED β Flow-based programming concepts and real-time debugging
- Zapier β Ease of use and extensive integration ecosystem
What makes MEL Agent different:
- β¨ AI-first design β Built specifically for LLM and AI agent workflows
- ποΈ Modern architecture β Go backend, React frontend, envelope-based data flow
- π§ Developer-friendly β Comprehensive APIs, custom node SDK (opportunity for IaC support)
- π’ Open Source β Community-driven development, no vendor lock-in
We welcome contributions! MEL Agent is built by the community, for the community.
- π Report bugs via GitHub Issues
- π‘ Suggest features through GitHub Discussions
- π§ Submit PRs β see CONTRIBUTING.md for guidelines (opportunity to establish contribution guidelines)
# Backend
go test ./... # Run tests (includes testcontainers)
go vet ./... # Lint
go build ./cmd/server # Build
go fmt ./... # Format code
# Frontend
cd web
pnpm lint # Lint
pnpm build # Build
pnpm test # Test (coming soon)
pnpm format # Format code
# Server & Workers
./server --help # Show all commands and options
./server server --help # Show server-specific help
./server server --port 8080 # Start API server with embedded workers
./server api-server --help # Show api-server-specific help
./server api-server --port 8080 # Start API server only (no embedded workers)
./server worker --help # Show worker-specific help
./server worker --token <token> # Start remote worker (basic)
./server worker --token <token> \ # Start remote worker (advanced)
--id worker-1 --concurrency 10 \
--server https://api.example.com
# Configuration Examples
PORT=8080 ./server server # Use environment variables
./server server --port 9090 # Override with flags
./server completion bash > /etc/bash_completion.d/mel-agent # Install shell completionMEL Agent is open source software licensed under the MIT License.
Special thanks to the open source community and the teams behind n8n, Make.com, Node-RED, and Zapier for pioneering visual workflow automation.
Ready to build your first AI agent? π
Get started in 5 minutes β (opportunity for quick-start guide)