How sunny-chung/hello-http works
Main Components Identification
The system can be broken down into these major components:
a. User Interface Layer (src/jvmMain/kotlin/.../ux/)
• Compose-based UI components
• View models and state management
• Custom text editor implementation (BigText)
b. Core Application Layer (src/jvmMain/kotlin/.../hellohttp/)
• Document management
• Network clients
• Protocol handlers
• Data persistence
c. Transport Layer (src/jvmMain/kotlin/.../network/)
• HTTP/HTTPS handlers
• WebSocket support
• GraphQL client
• gRPC client
d. Data Management Layer
• File-based persistence
• Collection repositories
• Data import/export
┌─────────────────────────────────────────────────────────┐
• UI Layer (Compose) │
• ┤
• Request Editor │
• Response Viewer │
• Project Management │
• Environment Controls │
• ┬───────────────────────────┬───────────────┘
┌─────────────▼───────────┐ ┌──────────▼───────────┐
• Core Application │ │ Data Management │
• ┤ ├────────────────────────┤
• Request Processing │ │ - Project Repository │
• Response Handling │◄──┤ - Request Repository │
• Protocol Management │ │ - Response Repository │
• ┬───────────┘ └────────────┬───────────┘
┌─────────────▼────────────────────────────▼───────────┐
• Transport Layer │
• ┤
• ┌─────────┐ ┌─────────┐ ┌────────┐ ┌────────┐ │
• HTTP/ │ │ WebSocket│ │GraphQL │ │ gRPC │ │
• HTTPS │ │ │ │ │ │ │ │
• ┘ └─────────┘ └────────┘ └────────┘ │
• ┘
Important Implementation Details to Highlight
• Portable application nature
• File-based persistence system
• Multiple protocol support
• Custom text editor component
• Environment management system