How logdyhq/logdy-core works
Main Components
a) Core Components:
• Log Input Sources
• STDIN/STDOUT streams
• File system (for file following)
• Socket connections
• Demo mode generator
• Log Processing Engine
• Web Server
• Web UI
• Storage Buffer
b) Supporting Components:
• Configuration Management
• Authentication System
• File Management
• Analytics Collection (optional)
Component Relationships
[Input Sources] -> [Processing Engine] -> [Buffer Storage] -> [Web Server] -> [Web UI]
Detailed Component Breakdown
Input Layer:
• Multiple input modes (identified in /modes directory):
• stdin/stderr handler
• file follower
• socket listener
• demo generator
• forward handler
Processing Layer:
• Ring buffer implementation (from /ring directory)
• Message processing pipeline
• ANSI code handling
• Log parsing system
Storage Layer:
• In-memory message buffer
• File append capability (when configured)
Web Layer:
• HTTP server (from /http directory)
• WebSocket connections
• API endpoints
• Static asset serving
UI Layer:
• Monaco editor integration
• Real-time log viewing
• Filtering and parsing capabilities
Technical Details to Highlight
• Go-based implementation
• WebSocket-based real-time communication
• Embedded static assets
• Cross-platform compatibility
• Single binary distribution
Implementation Notes
• The modular nature of the input sources
• The pipeline-based processing approach
• The separation between core processing and UI
• The configurable nature of components
• The embedded nature of the UI assets
Interactions
Clear data flow paths:
File system interactions
This system design should reflect Logdy's nature as a standalone tool that bridges terminal outputs with web-based visualization, emphasizing its simplicity of deployment while showing the sophistication of its internal architecture.