DevFlow.ai is an enterprise-grade AI-powered development workflow orchestrator designed to transform how development teams plan, build, and deploy software. The platform leverages intelligent automation, predictive analytics, and seamless integrations to eliminate repetitive tasks and accelerate development cycles while maintaining code quality and security standards.
DevFlow.ai follows a microservices architecture with the following core services:
- API Gateway: Entry point for all client requests with authentication, rate limiting, and routing
- Orchestration Service: Central workflow coordination and event management
- Analytics Service: Metrics collection, processing, and predictive modeling
- Automation Service: AI agent execution and hook management
- Integration Service: External API connections and data synchronization
devflow-ai/
├── services/ # Microservices
│ ├── api-gateway/ # API Gateway service
│ ├── orchestration/ # Workflow orchestration
│ ├── analytics/ # Analytics and metrics
│ ├── automation/ # AI agent automation
│ └── integration/ # External integrations
├── shared/ # Shared libraries
│ ├── types/ # TypeScript types and interfaces
│ ├── utils/ # Utility functions
│ └── config/ # Configuration management
├── scripts/ # Development and deployment scripts
├── .kiro/ # Kiro IDE specifications
└── docker-compose.dev.yml # Development infrastructure
- Node.js 18+
- Docker and Docker Compose
- Git
-
Clone the repository
git clone <repository-url> cd devflow-ai
-
Run the setup script
./scripts/dev-setup.sh
-
Start development
npm run dev
The setup script will:
- Install all dependencies
- Start infrastructure services (PostgreSQL, Redis, InfluxDB, Kafka)
- Initialize the database
- Build the project
If you prefer manual setup:
-
Install dependencies
npm install
-
Copy environment configuration
cp .env.example .env
-
Start infrastructure services
docker-compose -f docker-compose.dev.yml up -d
-
Build the project
npm run build
npm run build- Build all services and shared librariesnpm run dev- Start development mode with watchnpm run test- Run all testsnpm run lint- Run ESLintnpm run type-check- Run TypeScript type checking
Each service is a separate npm workspace with its own:
package.jsonwith service-specific dependenciestsconfig.jsonfor TypeScript configurationsrc/directory with source code- Test files alongside source code
The shared/ directory contains reusable code:
- types: Core domain types and interfaces
- utils: Utility functions (validation, errors, logging, crypto)
- config: Environment and service configuration
Run the test suite:
npm test
# or
./scripts/test.shThe test script runs:
- Unit tests for all shared libraries
- Unit tests for all services
- Integration tests (if present)
- End-to-end tests (if present)
The development environment includes:
- PostgreSQL (port 5432): Primary database
- InfluxDB (port 8086): Time-series metrics storage
- Redis (port 6379): Caching and session storage
- Apache Kafka (port 9092): Event streaming
- Zookeeper (port 2181): Kafka coordination
All infrastructure services include health checks. Monitor status with:
docker-compose -f docker-compose.dev.yml psEach service exposes:
- Health check endpoint:
/health - Metrics endpoint:
/metrics - Structured logging with correlation IDs
Security features include:
- JWT-based authentication
- Role-based access control (RBAC)
- Rate limiting
- Input validation and sanitization
- Audit logging
- Encryption at rest and in transit
Key environment variables:
# Core
NODE_ENV=development
LOG_LEVEL=info
JWT_SECRET=your-secret-key
# Services
API_GATEWAY_PORT=3000
ORCHESTRATION_PORT=3001
ANALYTICS_PORT=3002
# Database
POSTGRES_HOST=localhost
POSTGRES_DB=devflow
POSTGRES_USER=devflow
POSTGRES_PASSWORD=password
# Cache
REDIS_HOST=localhost
REDIS_PORT=6379
# Messaging
KAFKA_BROKERS=localhost:9092See .env.example for complete configuration options.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
- Use TypeScript for all new code
- Follow the existing code style
- Add JSDoc comments for public APIs
- Write tests for new functionality
This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Check the documentation in the
.kiro/specs/directory - Review the requirements and design documents
- Open an issue for bugs or feature requests
See the implementation tasks in .kiro/specs/ai-workflow-orchestrator/tasks.md for the complete development roadmap.
Built with ❤️ for developers who want to focus on building great software.