How droopytersen/ts-engineer works
Key Components to Include in the System Design:
Core Application Layers
• Frontend Layer (React/Remix)
• Backend API Layer (Hono)
• Database Layer (PGLite)
• File System Integration Layer
• AI/LLM Integration Layer
Main Architectural Patterns
• Model-View-Controller (MVC) pattern in the routes structure
• Service-based architecture for AI operations
• Repository pattern for database operations
• Event-driven architecture for streaming responses
Key Flows to Highlight
a. Code Task Flow:
Important Elements
• Blue: Frontend components
• Green: Backend services
• Yellow: AI/LLM services
• Purple: Data storage
• Gray: External services
• Connection Types:
Key Integration Points to Emphasize
• File System Integration:
• How the system interacts with local files
• Context selection mechanism
• File watching and updating processes
• AI Provider Integration:
• Routing logic based on project classification
• Model selection process
• Streaming response handling
Data Flow Patterns
• How data flows from:
• Frontend user interactions
• Through the API layer
• To the AI services
• Back to the user interface
• Into the persistent storage