How yoheinakajima/ditto works
Main Components
a) User Interface Layer:
• Web Interface (Port 8080)
• Natural Language Input Component
• Progress Monitoring Display
b) Core Processing Layer:
• LLM Integration Module (OpenAI API)
• Code Generation Engine
• Flask Application Builder
c) Output Layer:
• Generated Flask Application
• File System Management
• Template Generation System
Generated Application → Flask Server
┌─────────────────────────────────────────────┐
• User Interface │
• (Web Interface - localhost:8080) │
• ┘
• ↓↑
┌─────────────────────────────────────────────┐
• Core Processing Layer │
• ┬─────────────┬────────────────┤
• OpenAI API │ LLM │ Code │
• Connection │ Processing │ Generation │
• ┴─────────────┴────────────────┘
• ↓↑
┌─────────────────────────────────────────────┐
• Output Layer │
• ┬─────────────┬────────────────┤
• Flask │ Templates │ Static │
• Routes │ │ Files │
• ┴─────────────┴────────────────┘
Important Elements
a) Environmental Components:
• OPENAI_API_KEY configuration
• Python environment requirements
• Virtual environment setup
b) Data Flow Indicators:
• User input flow
• API communication
• File generation paths
c) System Requirements:
• Python 3.7+ requirement
• Dependencies (litellm)
• Environment variables
Technical Details to Highlight
• Port 8080 for web interface
• Environment configuration options
• File system interaction points
• API key management system