Melody is a minimalist WebSocket framework for Go that wraps the standard WebSocket workflow in a simple, developer-friendly API. It is designed to make real-time server features easier to build without requiring a large framework or complex setup. Developers can use it for chat systems, live notifications, dashboards, multiplayer coordination, collaborative tools, and other bidirectional communication features. Melody provides connection lifecycle hooks, message handlers, broadcasting, session management, and grouped communication patterns. It is built to feel familiar to Go developers and can be integrated into existing HTTP applications. The project is especially useful when a team needs straightforward WebSocket behavior without building connection handling and broadcast logic from scratch.
Features
- Simple Go WebSocket framework
- Connection lifecycle callbacks
- Message handling hooks
- Broadcasting support
- Session-based client management
- HTTP server integration