AI-Powered Architecture Diagramming & Code Generation
AutoArch is a modern, web-based tool that allows developers to design software architectures visually and generate production-ready backend code instantly.
- Visual Editor: Drag-and-drop interface for designing microservices, databases, and infrastructure.
- Smart Connections: Connect nodes to define relationships (e.g., Service -> Database).
- Advanced Properties: Configure TLS, ports, and environment variables directly in the UI.
- Code Generation:
- Microservices: Generates full FastAPI (Python) project structures.
- Databases: Automatically configures
docker-compose.ymlwith Postgres/Redis. - API Gateway: Generates dynamic Nginx configurations for routing.
- Project Management: Name your projects and manage multiple architectures.
- Frontend: React.js, Tailwind CSS, React Flow
- Backend: Python, FastAPI
- Infrastructure: Docker, Nginx
- Node.js (v16+): Required to build and run the React frontend.
- Python (v3.9+)
- Docker & Docker Compose
-
Clone the repository
git clone https://github.com/yourusername/auto_arch.git cd auto_arch -
Backend Setup
cd backend python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt uvicorn app.main:app --reload
-
Frontend Setup
cd frontend/auto_arch npm install npm start -
Access the App Open http://localhost:3000 in your browser.
- Design: Drag nodes from the sidebar onto the canvas.
- Connect: Link services to databases or other services.
- Configure: Click a node or connection to edit properties (TLS, names, etc.).
- Generate: Enter a project name in the header and click "Generate Code".
- Deploy: Navigate to
backend/<your-project-name>and run:docker-compose up --build
We welcome contributions! Please see CONTRIBUTING.md for details.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.