AI-NAD converts natural language intent into runnable applications using a multi-agent AI pipeline.
- Multi-Agent Architecture: Intent, Requirement, Architecture, Code, Test, and Validation agents
- Local AI Models: Uses Ollama for free, local AI model execution
- Full Stack Generation: Generates complete React frontend and Express backend
- Automatic Testing: Generates unit tests for generated code
- Code Validation: Validates generated code for syntax, security, and dependencies
-
Node.js (v18 or higher)
-
Gemini API Key (recommended) or Ollama installed and running
Option 1: Gemini API (Recommended)
- Get your API key from Google AI Studio
- No local installation required
Option 2: Ollama (Local)
# Install Ollama from https://ollama.ai # Pull a model (e.g., deepseek-coder) ollama pull deepseek-coder
-
Clone the repository
-
Install dependencies:
npm run install:all
-
Configure environment variables:
cd backend cp .env.example .env # Edit .env with your API configuration # For Gemini: Set GEMINI_API_KEY=your-api-key # For Ollama: Set AI_SERVICE_TYPE=ollama and ensure Ollama is running
-
Start the backend:
npm run dev:backend
-
In another terminal, start the frontend:
npm run dev:frontend
-
Open http://localhost:3000 in your browser
-
Enter a project description in the web interface
- Example: "Create a task manager web app with login and dashboard"
-
Click "Generate Project"
-
Wait for the AI agents to process your request
-
Once complete, navigate to the generated project in
generated-projects/ -
Follow the README in the generated project to run it
- Intent Agent: Converts natural language to structured requirements
- Requirement Agent: Breaks down requirements into services and entities
- Architecture Agent: Designs system architecture and API structure
- Code Agent: Generates production-ready code
- Test Agent: Creates unit and integration tests
- Validation Agent: Validates code quality and security
User Prompt
↓
Intent Agent
↓
Requirement Agent
↓
Architecture Agent
↓
Code Agent
↓
Test Agent
↓
Validation Agent
↓
Project Builder
↓
Generated Project
- Backend: Node.js, TypeScript, Express
- Frontend: React, Vite, TypeScript
- AI: Ollama (local models)
- Database: PostgreSQL (for generated projects)
Edit backend/.env to configure:
For Gemini API (Recommended):
AI_SERVICE_TYPE: Set togeminiGEMINI_API_KEY: Your Gemini API key from Google AI StudioGEMINI_MODEL: Model to use (default: gemini-1.5-flash)
For Ollama (Local):
AI_SERVICE_TYPE: Set toollamaOLLAMA_BASE_URL: Ollama API URL (default: http://localhost:11434)OLLAMA_MODEL: Model to use (default: deepseek-coder)
General:
PORT: Backend server port (default: 5000)
All generated projects are stored in generated-projects/ directory. Each project includes:
- Complete backend with Express API
- React frontend with Vite
- Database schema
- Tests
- README with setup instructions
The system includes:
- Prompt injection protection
- Code security validation
- Dependency vulnerability checks
MIT