"Lovable for AI Agents" - A comprehensive platform for building, deploying, and managing AI agent workflows effortlessly. Reef enables users to create intelligent multi-agent systems through natural language interfaces and visual workflow builders.
Reef consists of two main components that work together to provide a complete AI agent workflow solution:
- Frontend - A Next.js web application providing user interfaces for project management, AI chat, and visual workflow design
- Coral Factory - A FastAPI-based backend system for creating, configuring, and deploying AI agent workflows with containerized execution
- π€ Natural Language Workflow Creation - Build complex agent workflows through conversational AI
- π¨ Visual Workflow Designer - Interactive canvas for designing agent relationships and data flow
- π User Authentication - Firebase-powered secure user management
- π Real-time Monitoring - Live trace viewing and performance analytics
- π³ Containerized Deployment - Docker-based agent deployment and orchestration
- π οΈ Tool Integration - Extensive toolkit for agent capabilities via Arcade
- βοΈ Scalable Architecture - Multi-agent coordination with Kotlin-based orchestration
reef/
βββ frontend/ # Next.js Web Application
β βββ src/
β β βββ app/ # Next.js App Router pages
β β βββ components/ # React components (UI, workflow, chat)
β β βββ contexts/ # Authentication and state management
β β βββ lib/ # Utilities and Firebase configuration
β β βββ types/ # TypeScript type definitions
β βββ public/ # Static assets
β βββ README.md # Frontend documentation
βββ coral_factory/ # AI Agent Workflow Backend
β βββ app.py # FastAPI server with authentication
β βββ factory/ # Workflow creation engine
β β βββ from_json.py # Core workflow generation logic
β β βββ name_less/ # Agent templates
β βββ hosting/ # Docker deployment system
β β βββ main.py # Container orchestration
β β βββ shared/ # Coral server and shared resources
β βββ README.md # Backend documentation
βββ README.md # This file
The user-facing web application built with modern React technologies:
Core Technologies:
- Next.js 15 with App Router and TypeScript
- Tailwind CSS with custom design system
- shadcn/ui components built on Radix UI
- Firebase for authentication and real-time data
- AI SDK for LLM integration
- React Flow for workflow visualization
Key Features:
- Landing page with feature showcase
- User authentication and project management
- AI-powered chat interface for workflow creation
- Visual workflow canvas with drag-and-drop
- Real-time trace viewer for monitoring
- Responsive design for all devices
The AI agent workflow creation and deployment backend:
Core Technologies:
- FastAPI server with bearer token authentication
- Python-based workflow generation engine
- Docker containerization with compose orchestration
- Kotlin coral-server for agent coordination
- Firebase integration for tracing
- OpenAI Agents SDK for LLM workflows
Key Features:
- JSON-to-workflow conversion system
- Template-based agent generation
- Dynamic Docker deployment
- Multi-agent coordination and communication
- Tool integration via Arcade toolkit
- Real-time execution monitoring
Reef follows a microservices architecture with clear separation of concerns:
βββββββββββββββββββ API Calls ββββββββββββββββββββββββ
β β βββββββββββββββ> β β
β Frontend β β Coral Factory β
β (Next.js) β <βββββββββββββββ β (FastAPI) β
β β WebSocket β β
βββββββββββββββββββ Updates ββββββββββββββββββββββββ
β β
β Firebase Auth β Docker Compose
β & Firestore β
βΌ βΌ
βββββββββββββββββββ ββββββββββββββββββββββββ
β β β Agent Containers β
β Firebase β β βββββββββββββββββββ β
β - Auth β β β Coral Server β β
β - Firestore β <βββββββββββββββββ β (Kotlin) β β
β - Tracing β Trace Data β βββββββββββββββββββ β
β β β βββββββββββββββββββ β
βββββββββββββββββββ β β Research Agents β β
β β (Python) β β
β βββββββββββββββββββ β
ββββββββββββββββββββββββ
- User Interaction - Users interact with the frontend to create projects and workflows
- Workflow Creation - Frontend sends workflow configs to Coral Factory via API
- Agent Generation - Coral Factory converts configs to executable agent code
- Deployment - Docker containers are created and orchestrated for each workflow
- Execution - Agents run in containers, communicating through Coral Server
- Monitoring - Real-time traces sent to Firebase, displayed in frontend
- Node.js 18+ and npm/bun
- Python 3.8+
- Docker and Docker Compose
- Firebase project (for auth and database)
- OpenAI API key
-
Clone the repository:
git clone <repository-url> cd reef
-
Set up Frontend:
cd frontend cp env_example .env.local # Configure Firebase and OpenAI keys in .env.local npm install npm run dev
Frontend available at: http://localhost:3000
-
Set up Coral Factory:
cd coral_factory python3 -m venv venv source venv/bin/activate pip install fastapi uvicorn pydantic python-dotenv pyyaml toml # Configure environment variables uvicorn app:app --host 0.0.0.0 --port 8001
Backend available at: http://localhost:8001
Each component has detailed documentation:
- Frontend README - Web application setup and development
- Coral Factory README - Backend system and deployment
cd frontend
npm run build
# Deploy to Vercel with environment variables configuredcd coral_factory
# Configure production environment variables
docker-compose up -d
# Or deploy to cloud provider with Docker supportEnsure the following are configured in production:
- Firebase project with Authentication and Firestore enabled
- OpenAI API key for LLM capabilities
- Mistral API key (optional, for alternative models)
- Arcade API key for tool integrations
- Docker environment for agent execution
We welcome contributions to Reef! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes following the existing code style
- Test your changes thoroughly
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices in frontend code
- Use proper type definitions and error handling
- Write clear commit messages
- Update documentation for new features
- Test both frontend and backend integration
This project is licensed under the MIT License - see the LICENSE file for details.
For questions, issues, or feature requests:
- Open an issue on GitHub
- Check the component-specific README files for detailed documentation
- Review the system architecture section for understanding component interactions




