This repository contains a comprehensive collection of DeerFlow 2.0 resources, including example cases, a full-stack enterprise application, and architectural documentation.
deerflow2.0-project/
โโโ deerflow-demo/ # DeerFlow 2.0 Example Cases
โ โโโ examples/ # 23 complete example files
โ โ โโโ case01_basic_usage.py
โ โ โโโ case02_advanced_config.py
โ โ โโโ case03_fastapi_integration.py
โ โ โโโ case04_multi_agent.py
โ โ โโโ case05_websocket_chat.py
โ โ โโโ case06_mcp_config.py
โ โ โโโ case07_database_integration.py
โ โ โโโ case08_file_upload.py
โ โ โโโ case09_custom_tool.py
โ โ โโโ case10_task_scheduler.py
โ โ โโโ case11_memory_system.py
โ โ โโโ case12_multimodal.py
โ โ โโโ case13_api_gateway.py
โ โ โโโ case14_monitoring.py
โ โ โโโ case15_ab_testing.py
โ โ โโโ case16_cache_optimization.py
โ โ โโโ case17_distributed.py
โ โ โโโ case18_data_pipeline.py
โ โ โโโ case19_security.py
โ โ โโโ case20_performance.py
โ โ โโโ case21_testing.py
โ โ โโโ case22_cicd.py
โ โ โโโ case23_kubernetes.py
โ โโโ README.md # Examples documentation
โ
โโโ deerflow-enterprise-project/ # Full-Stack Enterprise Application
โ โโโ backend/ # FastAPI Backend
โ โ โโโ app/ # Application layer
โ โ โ โโโ api/v1/ # API routes (auth, agents, tasks, memory...)
โ โ โ โโโ models/ # SQLAlchemy models
โ โ โ โโโ services/ # Business logic
โ โ โ โโโ core/ # Configuration & database
โ โ โโโ packages/harness/ # DeerFlow 2.0 harness
โ โ โโโ alembic/ # Database migrations
โ โ โโโ tests/ # Test suite
โ โ โโโ Dockerfile
โ โ โโโ requirements.txt
โ โ
โ โโโ frontend/ # Next.js Frontend
โ โ โโโ src/app/ # Pages (Dashboard, Agents, Tasks, Memory...)
โ โ โโโ src/components/ # UI components (Shadcn UI)
โ โ โโโ src/lib/api/ # API clients & hooks
โ โ โโโ Dockerfile
โ โ โโโ package.json
โ โ
โ โโโ docker-compose.yml # Complete Docker orchestration
โ โโโ README.md # Project documentation
โ โโโ CLAUDE.md # Development guide
โ โโโ docs/ # Additional documentation
โ
โโโ DEERFLOW2.0_ARCHITECTURE.md # Architecture documentation
โโโ CLAUDE.md # Development guidelines
โโโ README.md # This file
cd deerflow-enterprise-project
# Start all services with Docker Compose
docker-compose up -d
# Access the application
# Frontend: http://localhost:3000
# Backend API: http://localhost:8000
# API Docs: http://localhost:8000/docs
cd deerflow-demo
# View the examples
cat examples/case01_basic_usage.py
cat examples/case04_multi_agent.py
# Read the documentation
cat README.md
23 complete, runnable examples demonstrating DeerFlow 2.0 capabilities:
| Case | Topic | Description |
|---|---|---|
| 01 | Basic Usage | Client initialization and basic operations |
| 02 | Advanced Config | Configuration management and environment setup |
| 03 | FastAPI Integration | Building REST APIs with DeerFlow |
| 04 | Multi-Agent | Multi-agent collaboration patterns |
| 05 | WebSocket Chat | Real-time chat implementation |
| 06 | MCP Config | Multi-Client Protocol configuration |
| 07 | Database | Database integration with SQLAlchemy |
| 08 | File Upload | File processing and handling |
| 09 | Custom Tool | Building custom tools for agents |
| 10 | Task Scheduler | Task scheduling and workflow automation |
| 11 | Memory System | Long-term memory implementation |
| 12 | Multimodal | Multimodal content generation |
| 13 | API Gateway | API gateway design patterns |
| 14 | Monitoring | Monitoring, logging, and alerting |
| 15 | A/B Testing | A/B testing for AI systems |
| 16 | Cache Optimization | Caching strategies |
| 17 | Distributed | Distributed deployment |
| 18 | Data Pipeline | Data pipeline and ETL |
| 19 | Security | Security hardening |
| 20 | Performance | Performance optimization |
| 21 | Testing | Testing strategies |
| 22 | CI/CD | CI/CD with GitHub Actions |
| 23 | Kubernetes | Kubernetes deployment |
A production-ready enterprise AI agent system with:
Backend (FastAPI):
Frontend (Next.js):
Infrastructure:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend Layer โ
โ Next.js 16 + React 19 + TypeScript 5 โ
โ React Query 5 + Tailwind CSS 4 โ
โ Shadcn UI + Radix UI โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTTP / WebSocket
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API Gateway Layer โ
โ FastAPI 0.109 + JWT Auth + CORS โ
โ Pydantic 2.5 + Python 3.12 โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Service Layer โ
โ Business Logic + DeerFlow Harness โ
โ Agent, Task, Memory Services โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Data Layer โ
โ PostgreSQL 15 + SQLAlchemy 2.0 โ
โ Redis 7 + Alembic Migrations โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License.
Version: 0.1.0
Last Updated: 2026-03-16
Status: โ
Complete with Examples + Enterprise Application
5 commits
Python
59.3%
TypeScript
24.2%
HTML
7.4%
CSS
3.3%
JavaScript
2.8%
Shell
2.7%
This repository contains a comprehensive collection of DeerFlow 2.0 resources, including example cases, a full-stack enterprise application, and architectural documentation.
deerflow2.0-project/
โโโ deerflow-demo/ # DeerFlow 2.0 Example Cases
โ โโโ examples/ # 23 complete example files
โ โ โโโ case01_basic_usage.py
โ โ โโโ case02_advanced_config.py
โ โ โโโ case03_fastapi_integration.py
โ โ โโโ case04_multi_agent.py
โ โ โโโ case05_websocket_chat.py
โ โ โโโ case06_mcp_config.py
โ โ โโโ case07_database_integration.py
โ โ โโโ case08_file_upload.py
โ โ โโโ case09_custom_tool.py
โ โ โโโ case10_task_scheduler.py
โ โ โโโ case11_memory_system.py
โ โ โโโ case12_multimodal.py
โ โ โโโ case13_api_gateway.py
โ โ โโโ case14_monitoring.py
โ โ โโโ case15_ab_testing.py
โ โ โโโ case16_cache_optimization.py
โ โ โโโ case17_distributed.py
โ โ โโโ case18_data_pipeline.py
โ โ โโโ case19_security.py
โ โ โโโ case20_performance.py
โ โ โโโ case21_testing.py
โ โ โโโ case22_cicd.py
โ โ โโโ case23_kubernetes.py
โ โโโ README.md # Examples documentation
โ
โโโ deerflow-enterprise-project/ # Full-Stack Enterprise Application
โ โโโ backend/ # FastAPI Backend
โ โ โโโ app/ # Application layer
โ โ โ โโโ api/v1/ # API routes (auth, agents, tasks, memory...)
โ โ โ โโโ models/ # SQLAlchemy models
โ โ โ โโโ services/ # Business logic
โ โ โ โโโ core/ # Configuration & database
โ โ โโโ packages/harness/ # DeerFlow 2.0 harness
โ โ โโโ alembic/ # Database migrations
โ โ โโโ tests/ # Test suite
โ โ โโโ Dockerfile
โ โ โโโ requirements.txt
โ โ
โ โโโ frontend/ # Next.js Frontend
โ โ โโโ src/app/ # Pages (Dashboard, Agents, Tasks, Memory...)
โ โ โโโ src/components/ # UI components (Shadcn UI)
โ โ โโโ src/lib/api/ # API clients & hooks
โ โ โโโ Dockerfile
โ โ โโโ package.json
โ โ
โ โโโ docker-compose.yml # Complete Docker orchestration
โ โโโ README.md # Project documentation
โ โโโ CLAUDE.md # Development guide
โ โโโ docs/ # Additional documentation
โ
โโโ DEERFLOW2.0_ARCHITECTURE.md # Architecture documentation
โโโ CLAUDE.md # Development guidelines
โโโ README.md # This file
cd deerflow-enterprise-project
# Start all services with Docker Compose
docker-compose up -d
# Access the application
# Frontend: http://localhost:3000
# Backend API: http://localhost:8000
# API Docs: http://localhost:8000/docs
cd deerflow-demo
# View the examples
cat examples/case01_basic_usage.py
cat examples/case04_multi_agent.py
# Read the documentation
cat README.md
23 complete, runnable examples demonstrating DeerFlow 2.0 capabilities:
| Case | Topic | Description |
|---|---|---|
| 01 | Basic Usage | Client initialization and basic operations |
| 02 | Advanced Config | Configuration management and environment setup |
| 03 | FastAPI Integration | Building REST APIs with DeerFlow |
| 04 | Multi-Agent | Multi-agent collaboration patterns |
| 05 | WebSocket Chat | Real-time chat implementation |
| 06 | MCP Config | Multi-Client Protocol configuration |
| 07 | Database | Database integration with SQLAlchemy |
| 08 | File Upload | File processing and handling |
| 09 | Custom Tool | Building custom tools for agents |
| 10 | Task Scheduler | Task scheduling and workflow automation |
| 11 | Memory System | Long-term memory implementation |
| 12 | Multimodal | Multimodal content generation |
| 13 | API Gateway | API gateway design patterns |
| 14 | Monitoring | Monitoring, logging, and alerting |
| 15 | A/B Testing | A/B testing for AI systems |
| 16 | Cache Optimization | Caching strategies |
| 17 | Distributed | Distributed deployment |
| 18 | Data Pipeline | Data pipeline and ETL |
| 19 | Security | Security hardening |
| 20 | Performance | Performance optimization |
| 21 | Testing | Testing strategies |
| 22 | CI/CD | CI/CD with GitHub Actions |
| 23 | Kubernetes | Kubernetes deployment |
A production-ready enterprise AI agent system with:
Backend (FastAPI):
Frontend (Next.js):
Infrastructure:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Frontend Layer โ
โ Next.js 16 + React 19 + TypeScript 5 โ
โ React Query 5 + Tailwind CSS 4 โ
โ Shadcn UI + Radix UI โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTTP / WebSocket
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ API Gateway Layer โ
โ FastAPI 0.109 + JWT Auth + CORS โ
โ Pydantic 2.5 + Python 3.12 โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Service Layer โ
โ Business Logic + DeerFlow Harness โ
โ Agent, Task, Memory Services โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Data Layer โ
โ PostgreSQL 15 + SQLAlchemy 2.0 โ
โ Redis 7 + Alembic Migrations โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License.
Version: 0.1.0
Last Updated: 2026-03-16
Status: โ
Complete with Examples + Enterprise Application
5 commits
Python
59.3%
TypeScript
24.2%
HTML
7.4%
CSS
3.3%
JavaScript
2.8%
Shell
2.7%