Central Operations Orchestrator - Your personal AI stack dashboard for managing operations, workflows, and side hustles.
Note: This workspace contains Scorpion (central orchestrator), LightningFlow (side hustle), and supporting development tools.
# One-command setup
./scripts/setup-all.sh
# Access your services
open http://lightningflow.local
open http://app.lightningflow.local
open http://n8n.local# Upload to VPS and run
./scripts/setup-all.sh
# Fix 502 issues
./scripts/fix-502.sh
# Health check
./scripts/health-check.sh- π¦ Scorpion (
scorpion.local/ port 3003) - Main operations console and orchestrator- Operations monitoring
- Workflow builder
- Knowledge base
- Multi-agent council
- Agent management
- Chat interface
- π° LightningFlow - Lightning Network SaaS platform
- Landing (
lightningflow.local/ port 3000) - Public marketing site - Web (
app.lightningflow.local/ port 3001) - Customer dashboard - Ops (
ops.lightningflow.local/ port 3002) - Internal admin panel
- Landing (
- π§ Lovable Frontend - n8n workflows testing dashboard
- π§ n8n-cursor - n8n development tools and scripts
- API - Express.js backend with BullMQ workers
- n8n - Workflow automation engine
- Redis - Job queue and caching
- Caddy - Reverse proxy and SSL termination
# Start all services
docker compose -f infra/docker/docker-compose.dev.yml up -d
# Check health
./scripts/health-check.sh
# View logs
docker compose -f infra/docker/docker-compose.dev.yml logs -f# Copy template
cp env.dev.example .env.dev
# Edit with your values
nano .env.devRequired values:
NEXT_PUBLIC_SUPABASE_URL- Your Supabase project URLNEXT_PUBLIC_SUPABASE_ANON_KEY- Your Supabase anon keySUPABASE_SERVICE_ROLE- Your Supabase service role keyLNBITS_API_KEY- Your LNbits dev wallet key
# Deploy production stack
docker compose -f infra/docker/docker-compose.prod.yml up -d
# Configure Caddy
sudo cp infra/caddy/Caddyfile.prod /etc/caddy/Caddyfile
sudo systemctl reload caddy
# Health check
./scripts/smoke.sh# Deploy to GREEN
./scripts/flip_green.sh
# Rollback to BLUE
./scripts/flip_blue.sh# Diagnose the issue
./scripts/diagnose-502.sh
# Auto-fix common issues
./scripts/fix-502.sh- Services not running - Check
docker ps - Caddy misconfigured - Check
/etc/caddy/Caddyfile - Port conflicts - Check
ss -Hlnpt | grep -E ':80|:443|:3000|:3001|:3002|:4000|:5678' - Cloudflare SSL mode - Set to "Full (strict)"
n8n-cursor/
βββ apps/
β βββ landing/ # Public marketing site
β βββ lightningflow/web/ # Customer dashboard
β βββ ops/ # Internal admin panel
β βββ n8n-cursor/backend/ # API and workers
βββ infra/
β βββ docker/ # Docker Compose files
β βββ caddy/ # Caddy configurations
βββ scripts/ # Deployment and utility scripts
βββ packages/ # Shared packages
- Idempotency - All POST requests are idempotent
- Rate Limiting - Per-IP and per-tenant limits
- HMAC Signatures - Webhook validation
- RLS Policies - Row-level security in Supabase
- Security Headers - CSP, HSTS, XSS protection
- Secrets Management - Environment-based configuration
http://lightningflow.local/healthzhttp://api.lightningflow.local/healthzhttp://n8n.local/healthz
- Dozzle:
http://logs.local - Caddy:
sudo journalctl -u caddy -f - Docker:
docker compose logs -f
- Guards - Prevent env file changes, enforce API contracts
- Deploy - Blue/green deployment with health gates
- Security - Trivy vulnerability scanning
- Integration - Auto-deploy on
intbranch - Staging - Manual deploy on
stagingbranch - Production - Blue/green deploy on
mainbranch
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and linting
- Submit a pull request
MIT License - see LICENSE for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
Built with β€οΈ for the Lightning Network community