An AI-powered ERPNext application builder that leverages Claude Hooks and advanced context engineering to generate complete ERPNext applications from PRDs or templates.
- β Complete App Generation Pipeline - From PRD to deployable ERPNext app
- π€ Advanced Claude Hooks Integration - Intelligent AI processing at every stage
- οΏ½ Smart Template System - Industry-specific templates with intelligent matching
- π Enhanced Context Engine - Advanced semantic analysis and pattern recognition
- β‘ Real-time Quality Monitoring - Continuous validation and optimization
- π― Comprehensive Testing - Validated end-to-end workflow
- Claude Hooks Integration: Intelligent processing at every stage with real AI analysis
- Context Engineering: Advanced pattern recognition and suggestion system
- PRD Processing: Automated analysis and conversion of business requirements
- Template Management: 6+ industry-specific templates (Retail, Manufacturing, Healthcare, Education, Services, E-commerce)
- Quality Monitoring: Real-time validation and ERPNext compliance checking
- MCP Integration: Seamless connection with Claude Desktop and VSCode
- Complete App Generation: Generates DocTypes, workflows, permissions, reports, and more
- Docker & Docker Compose
- Node.js 18+
- Python 3.10+
- Git
cd ~/erpnext-app-builder
./start-enhanced.shThis script will:
- Check all prerequisites
- Install dependencies
- Start all services
- Run comprehensive tests
- Provide detailed status and access information
-
Clone and Setup
cd ~/erpnext-app-builder make setup
-
Start Development Environment
make start
-
Test the System
# Test Python components python3 demo.py # Test enhanced Node.js system node test-enhanced-system.js
After starting the services:
- ERPNext: http://localhost:8000 (Administrator/admin)
- MCP Server: http://localhost:3000
- App Builder UI: http://localhost:3001
- Health Check: http://localhost:3000/health
The enhanced system follows a sophisticated multi-layer architecture:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β React UI (Port 3001) β
β - PRD Upload & Analysis β
β - Template Selection β
β - App Generation Workflow β
β - Quality Dashboard β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β MCP Server (Port 3000) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Claude Hooks Registry β β
β β - AI-powered requirement analysis β β
β β - Entity extraction & relationship mapping β β
β β - Workflow detection & optimization β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Enhanced Context Engine β β
β β - Semantic analysis & pattern recognition β β
β β - Industry-specific insights β β
β β - Business rule extraction β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Template Management System β β
β β - 6+ industry templates β β
β β - Smart compatibility matching β β
β β - Custom template creation β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β App Generation Engine β β
β β - Complete ERPNext app structure generation β β
β β - DocType, workflow, report creation β β
β β - Permission & security setup β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Quality Monitoring System β β
β β - ERPNext compliance validation β β
β β - Performance optimization β β
β β - Best practices enforcement β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β ERPNext (Port 8000) β
β - Complete ERPNext installation β
β - Generated app deployment β
β - Database & business logic β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The enhanced workflow provides a comprehensive app generation experience:
-
π PRD Upload & Analysis
- Upload or paste your Product Requirements Document
- Claude Hooks perform intelligent analysis
- Extract business entities, workflows, and requirements
- Identify industry patterns and complexity
-
π― Smart Template Matching
- AI-powered template suggestions based on analysis
- Industry-specific template recommendations
- Compatibility scoring and reasoning
- Option to customize or create new templates
-
β‘ App Generation
- Generate complete ERPNext application structure
- Create DocTypes with intelligent field mapping
- Setup workflows with state management
- Configure permissions and security
- Generate reports and dashboards
-
π Quality Assurance
- Real-time compliance validation
- ERPNext best practices checking
- Performance optimization suggestions
- Code quality scoring
-
π Deployment & Testing
- Ready-to-deploy ERPNext application
- Automated installation scripts
- Comprehensive test suite
- Documentation generation
The system includes sophisticated templates for various industries:
- Store operations, inventory, POS, customer loyalty
- Sales order processing, supplier management
- Modules: Stock, Selling, CRM, POS
- Production planning, quality control, maintenance
- Work orders, BOM management, machine tracking
- Modules: Manufacturing, Stock, Quality Management
- Patient records, appointments, medical history
- Doctor scheduling, department management
- Modules: Healthcare, HR, Accounts
- Student enrollment, course management, grading
- Academic planning, faculty workload
- Modules: Education, HR, Accounts, Website
- Service requests, project management, time tracking
- Contract management, resource allocation
- Modules: Projects, CRM, Timesheet, Accounts
- Online orders, product reviews, shipping
- Return processing, customer analytics
- Modules: Selling, Stock, Accounts, Website, E-Commerce
The system uses specialized AI hooks for different processing stages:
- Entity Extraction: Identify business objects and relationships
- Workflow Detection: Recognize business processes and automation needs
- Industry Classification: Determine domain-specific requirements
- Complexity Assessment: Evaluate implementation scope and effort
- ERPNext Compliance: Ensure generated code follows ERPNext standards
- Best Practices: Apply industry and technical best practices
- Security Validation: Verify permission and access control setup
- Performance Optimization: Suggest improvements for scalability
- DocType Creation: Generate comprehensive document types
- Workflow Design: Create sophisticated state-based workflows
- Report Generation: Build meaningful business reports
- UI Enhancement: Optimize user interface and experience
- Natural language processing of business requirements
- Semantic understanding of domain concepts
- Pattern recognition across industries
- Intelligent suggestion engine
- Industry-specific starting points
- Compatibility scoring algorithm
- Template customization and versioning
- Community template sharing (planned)
- Real-time code quality assessment
- ERPNext compliance checking
- Performance benchmarking
- Automated issue detection
- Generation success metrics
- Template usage statistics
- Quality improvement tracking
- User behavior analysis
The system includes comprehensive testing capabilities:
python3 demo.pyTests the core Python components including:
- Claude Hooks processing
- Context engine analysis
- PRD generation
- Domain knowledge integration
node test-enhanced-system.jsTests the complete Node.js pipeline including:
- Template system functionality
- App generation workflow
- Quality monitoring
- API integrations
./start-enhanced.shComprehensive system validation including:
- Service health checks
- Component integration
- Performance validation
- Complete workflow testing
GET /health- System health checkPOST /hooks/analyze-prd- Analyze PRD contentPOST /hooks/suggest-templates- Get template suggestionsPOST /hooks/check-quality- Quality assessmentPOST /api/generate-app- Generate complete app
POST /claude/analyze- AI-powered requirement analysisPOST /claude/suggest- Get AI recommendationsPOST /claude/validate- Validate generated content
Port Conflicts
# Check what's using ports
lsof -i :8000
lsof -i :3000
lsof -i :3001
# Stop existing services
docker-compose downDatabase Issues
# Reset database
docker-compose down -v
docker-compose up -d mariadbTemplate Loading Issues
# Check template data files
ls -la mcp-server/templates/data/Python Dependencies
# Reinstall Python dependencies
cd app-builder
pip install -r requirements.txt# View all service logs
docker-compose logs -f
# View specific service logs
docker-compose logs -f mcp-server
docker-compose logs -f frappe
# Enable debug mode
export MCP_DEBUG_MODE=true
export LOG_LEVEL=debugWe welcome contributions to make the ERPNext App Builder even better!
- Fork the repository
- Clone your fork
- Create a feature branch
- Make your changes
- Run tests
- Submit a pull request
- New Industry Templates - Add support for more industries
- AI Improvements - Enhance Claude Hooks processing
- UI/UX Enhancements - Improve the React interface
- Quality Metrics - Add more validation rules
- Documentation - Improve guides and examples
- Basic PRD processing
- Template system
- App generation
- Quality monitoring
- Advanced Claude Hooks
- Semantic analysis
- Industry-specific templates
- Natural language workflow definition
- Visual workflow designer
- Template marketplace
- Collaborative development
- Version control integration
- Automated testing generation
- CI/CD pipeline integration
- Multi-tenant deployment
- Enterprise security
- Advanced analytics
- Custom AI model training
MIT License - see LICENSE file for details.
- Documentation: Check this README and inline code comments
- Issues: Open GitHub issues for bugs and feature requests
- Discussions: Use GitHub Discussions for questions and community support
Built with β€οΈ for the ERPNext community