π AI-powered development workflow automation tool
DevFlow is a modern CLI tool built with Rust that leverages AI to streamline your development workflow. It helps you quickly scaffold projects, generate code, and set up development environments with best practices.
- π€ AI-Powered Project Generation: Use OpenAI, Claude, or local Ollama models to generate intelligent project configurations
- π¦ Smart Templates: Built-in templates for popular tech stacks (React, Vue, Python, Rust, etc.)
- π³ Environment Setup: Automatic Docker, Dev Container, and CI/CD configuration
- βοΈ Development Workflow: Git hooks, code quality tools, and testing framework setup
- π§ Code Generation: Generate components, APIs, models, and more with AI assistance
- π Multi-Language Support: Works with JavaScript/TypeScript, Python, Rust, Go, and more
git clone https://github.com/yourusername/devflow.git
cd devflow
cargo install --path .cargo install devflowdevflow init my-awesome-projectThis will start an interactive wizard that helps you:
- Choose your tech stack
- Select features (Docker, CI/CD, testing, etc.)
- Configure team size and requirements
- Generate project structure with AI
# Generate a React component
devflow generate component UserProfile
# Generate an API endpoint
devflow generate api users
# Generate a database model
devflow generate model User# Generate Docker configuration
devflow env docker
# Set up Dev Container
devflow env devcontainer
# Check environment health
devflow env check# Set up Git hooks, CI/CD, and code quality tools
devflow setupDevFlow can be configured using a devflow.toml file in your project root or home directory:
[ai]
provider = "openai" # or "claude", "ollama"
model = "gpt-4"
api_key_env = "OPENAI_API_KEY"
[templates]
custom_path = "./templates"
auto_update = trueOPENAI_API_KEY: Your OpenAI API keyANTHROPIC_API_KEY: Your Anthropic Claude API keyDEVFLOW_AI_PROVIDER: AI provider (openai, claude, ollama)DEVFLOW_AI_MODEL: AI model to use
devflow init [name]- Initialize a new projectdevflow generate <type> <name>- Generate code componentsdevflow template <action>- Manage project templates
devflow env <action>- Environment configurationdevflow setup- Development workflow setup
# List available templates
devflow template list
# Create a custom template
devflow template create my-template
# Install template from repository
devflow template install https://github.com/user/template
# Remove a template
devflow template remove template-name- React + TypeScript + Vite
- Vue.js + TypeScript
- Angular + TypeScript
- Svelte + TypeScript
- Next.js
- Nuxt.js
- Node.js + Express/Fastify
- Python + FastAPI/Django
- Rust + Actix-web/Axum
- Go + Gin/Echo
- Java + Spring Boot
- PostgreSQL
- MySQL
- MongoDB
- Redis
- SQLite
- Docker & Docker Compose
- Dev Containers
- GitHub Actions
- GitLab CI
- Kubernetes (coming soon)
export OPENAI_API_KEY="your-api-key"
devflow init --ai-provider openaiexport ANTHROPIC_API_KEY="your-api-key"
devflow init --ai-provider claude# Start Ollama server locally
ollama serve
ollama pull llama2
# Use with DevFlow
devflow init --ai-provider ollama --ai-model llama2# Initialize with React + Node.js + PostgreSQL
devflow init my-fullstack-app
# Follow the interactive prompts:
# - Select "React + Node.js + PostgreSQL"
# - Choose features: Docker, CI/CD, Testing
# - Set team size: Small team (2-5)
cd my-fullstack-app
# Generate backend API
devflow generate api users
devflow generate model User
# Generate frontend components
devflow generate component UserList
devflow generate component UserForm
# Set up development environment
devflow env docker
devflow setup# Create a template from existing project
devflow template create --from-current my-company-template
# Use the template for new projects
devflow init new-project --template my-company-template- Rust 1.70+
- OpenAI API key (optional)
- Docker (for containerization features)
git clone https://github.com/yourusername/devflow.git
cd devflow
cargo build --releasecargo testFor development without API costs, use Ollama:
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Start Ollama and pull a model
ollama serve
ollama pull llama2
# Set environment variable
export DEVFLOW_AI_PROVIDER=ollama
export DEVFLOW_AI_MODEL=llama2We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- π¨ New project templates
- π§ Additional code generators
- π New language/framework support
- π Documentation improvements
- π Bug fixes and improvements
- Web UI for project management
- Plugin system for extensibility
- Cloud deployment integration
- Team collaboration features
- Advanced AI code review
- Performance monitoring integration
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with β€οΈ using Rust
- Powered by OpenAI, Anthropic Claude, and Ollama
- Inspired by modern development workflows
- Thanks to all contributors and the open-source community
- π Documentation
- π¬ Discord Community
- π Issue Tracker
- π§ Email Support
Happy coding with DevFlow! π