How deepkit/deepkit-framework works
Main Components Identification
The system should be divided into these major components:
a) Core Framework Components:
• Type System (@deepkit/type)
• Dependency Injection (@deepkit/injector)
• HTTP Server (@deepkit/http)
• RPC System (@deepkit/rpc)
• ORM (@deepkit/orm)
• Event Broker (@deepkit/broker)
• CLI Framework (@deepkit/app)
b) Database Adapters:
• MongoDB (@deepkit/mongo)
• MySQL (@deepkit/mysql)
• PostgreSQL (@deepkit/postgres)
• SQLite (@deepkit/sqlite)
c) Supporting Systems:
• File System Abstractions (@deepkit/filesystem)
• Template Engine (@deepkit/template)
• Debugging Tools (@deepkit/framework-debug-api)
• API Console (@deepkit/api-console-gui)
┌─ Application Layer ─────────────────────────────────────┐
• HTTP Controllers | RPC Services | CLI Commands │
• Framework Core ──────────────────────────────────────┐ │
• Dependency Injection | Event System | Configuration │ │
• Data & Communication ─────────────────────────────┐ │ │
• ORM | Type System | RPC | HTTP Server | Broker │ │ │
• Storage Adapters ────────────────────────────┐ │ │ │
• MongoDB | MySQL | PostgreSQL | SQLite | S3 │ │ │ │
• ┘
Connection Flows
Key interactions:
• Type System integration with all layers
• Database access through ORM
• HTTP/RPC communication flows
• Event propagation through the broker
• File system operations
Specific Implementation Details
• Runtime type system integration
• Database abstraction layer
• Module system architecture
• Dependency injection container
• Event-driven communication
Development Tools Integration
Connections to:
• API Console
• Debug Tools
• ORM Browser
• Framework Debug GUI
External Systems Integration
Connections to:
• File Storage (S3, FTP, SFTP)
• Message Queues
• Cache Systems
• External APIs
Notes for Implementation
• Use standard UML notation where appropriate
• Version compatibility information
• Document scalability points
• Security boundaries
• Async/sync operations
• Error handling flows