β οΈ IMPORTANT DISCLAIMER: This is a demonstration project created for educational and portfolio purposes. It is NOT production-ready and should NOT be deployed to production environments without significant modifications, security hardening, and thorough testing. See DISCLAIMER.md for full details.
- Overview
- Features
- Architecture
- Quick Start
- Documentation
- Cost Analysis
- Roadmap
- Contributing
- License
- Disclaimer
An AI-powered system that automatically discovers, documents, and tracks your microservices architecture by tracing real user flows through your applications. Built with Python and Claude AI, this system generates comprehensive architecture diagrams, detects architectural drift, and maintains a complete audit trailβall automatically.
- π Outdated Documentation: Manual architecture docs become stale within weeks
- π΅οΈ Unknown Dependencies: Hidden service relationships causing production issues
- π Compliance Audits: Time-consuming manual documentation for SOC2/ISO audits
- π Developer Onboarding: Steep learning curve understanding complex systems
- π Architecture Drift: Undetected changes accumulating over time
This system automatically:
- Traces user journeys through your application using correlation IDs
- Validates flows against log aggregation systems (Splunk)
- Analyzes architecture using AI (Claude API)
- Generates comprehensive Mermaid diagrams
- Detects drift by comparing against historical baselines
- Documents everything with zero manual intervention
- β Automatic Service Discovery: Identifies all microservices from actual traffic
- β Dependency Mapping: Maps all service-to-service relationships with call frequencies
- β API Catalog Generation: Documents all endpoints with HTTP methods and response codes
- β User Journey Tracing: Follows complete request flows across multiple services
- β Drift Detection: Compares current state against historical baselines
- β AI-Powered Analysis: Leverages Claude AI for intelligent insights
- β Visual Diagrams: Auto-generates Mermaid architecture and sequence diagrams
- β Cost-Effective: Runs on a single AWS t3.medium instance (~$33/month)
- Complete Architecture Diagram - All services, dependencies, and endpoints
- Dependency Matrix - Visual table showing all service relationships
- API Catalog - Complete list of all discovered endpoints
- Sequence Diagrams - Detailed flow diagrams for each user journey
- Drift Reports - Historical comparison with severity scoring
- Audit Trail - Complete history of architectural changes
graph TB
User[π€ User Journey Simulator]
MS[π· Microservices]
Splunk[π Splunk Log Collector]
Tracer[π€ AI Architecture Tracer]
Claude[π§ Claude AI API]
Drift[π Drift Detector]
Diagrams[π¨ Diagram Generator]
Output[π Documentation]
User -->|HTTP Requests| MS
MS -->|Structured Logs| Splunk
User -->|Trace Data| Tracer
Splunk -->|Validation| Tracer
Tracer -->|Analysis Request| Claude
Claude -->|Insights| Tracer
Tracer -->|Discovered Arch| Diagrams
Tracer -->|Current State| Drift
Drift -->|Historical Comparison| Output
Diagrams -->|Markdown Docs| Output
Microservices (6 services):
auth_service- User authenticationproduct_service- Product catalogorder_service- Order managementpayment_service- Payment processingloyalty_service- Loyalty programpolicy_service- Policy documents
Discovery Pipeline:
user_journey_simulator.py- Simulates 5 different user personassplunk_logger.py- Collects and aggregates logsarchitecture_tracer.py- AI-powered architecture discoveryenhanced_diagram_generator.py- Creates visual documentationadvanced_drift_tracker.py- Tracks changes over timemaster_orchestrator.py- One-click execution
- Python 3.8 or higher
- Anthropic API key (Claude)
- 2GB RAM minimum
- Linux/Mac/Windows with WSL
# 1. Clone the repository
git clone https://github.com/YOUR_USERNAME/automated-architecture-discovery.git
cd automated-architecture-discovery
# 2. Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Set up environment variables
export ANTHROPIC_API_KEY="your-api-key-here"
# 5. Run the complete discovery system
python master_orchestrator.pyAfter ~2 minutes, you'll have:
- β
complete_annotated_architecture.md- Full architecture documentation - β
discovered_architecture.json- Raw discovered architecture - β
architecture_history/- Historical snapshots and drift reports - β
logs/- Execution logs
# View the complete architecture
cat complete_annotated_architecture.md
# Or open in VS Code with Mermaid preview
code complete_annotated_architecture.md
# Press Ctrl+K V to see diagrams rendered- Getting Started - Installation and setup guide
- Architecture - System design and components
- Troubleshooting - Common issues and solutions
- Contributing - How to contribute to this project
- Disclaimer - Important usage information
- Cost: $0 (runs on your laptop)
- Resources: 2GB RAM, minimal CPU
- EC2 Instance: t3.medium (~$30/month)
- Storage: EBS 20GB (~$2/month)
- Network: Minimal data transfer (~$1/month)
- Claude API: ~$0.10 per 100 traces
Total Monthly Cost: ~$33-35 β
Time Savings: 99.6% (from 8 hours manual β 2 minutes automated)
- Core architecture discovery
- AI-powered analysis
- Drift detection
- Diagram generation
- Complete documentation
- Web dashboard UI
- Real-time monitoring
- Multi-environment support
- Performance metrics tracking
- Security vulnerability scanning
- API documentation generation
- Load testing integration
- Slack/Email notifications
Contributions are welcome! Please read CONTRIBUTING.md for:
- Code of Conduct
- Development process
- How to submit pull requests
- Coding standards
This project is licensed under the MIT License - see the LICENSE file for details.
What this means:
- β You can use this code for personal projects
- β You can modify and distribute it
- β You can use it commercially (with modifications)
β οΈ You must include the original licenseβ οΈ You accept the code "as-is" with no warranty
READ THIS CAREFULLY:
This is a DEMONSTRATION PROJECT for:
- Educational purposes
- Portfolio showcasing
- Learning microservices patterns
- Exploring AI automation
This is NOT:
- β Production-ready code
- β Security-hardened
- β Performance-optimized for scale
- β Suitable for sensitive data
- β Compliant with enterprise security standards
Before Production Use, you MUST:
- Complete security audit and penetration testing
- Implement proper authentication and authorization
- Add encryption for data at rest and in transit
- Set up proper monitoring and alerting
- Configure backup and disaster recovery
- Review and comply with your organization's policies
- Conduct thorough testing in non-production environments
See DISCLAIMER.md for complete legal information.
- Built with Claude AI by Anthropic
- Diagram rendering by Mermaid
- Inspired by real-world architecture documentation challenges
- GitHub Issues: https://github.com/AbhishekDatta (For bugs and feature requests)
- LinkedIn: https://www.linkedin.com/in/a-datta/
β If you find this project useful, please star it on GitHub!
Made with β€οΈ as a demonstration of microservices architecture discovery automation