Wynd
A simple, fast, and developer-friendly WebSocket library for Rust.
Features
- 🚀 Simple API: Easy-to-use event-driven API with async/await support
- ⚡ High Performance: Built on Tokio for excellent async performance
- 🛡️ Type Safety: Strongly typed message events and error handling
- 🔧 Developer Experience: Comprehensive documentation and examples
- 🔄 Connection Management: Automatic connection lifecycle management
- 📡 Real-time Ready: Perfect for chat apps, games, and live dashboards
- 🌐 HTTP Integration: Optional ripress integration for combined HTTP + WebSocket servers
Getting Started
The easiest way to get started is with the HexStack CLI.
HexStack is a project scaffolding tool (similar to create-t3-app) that lets you spin up new Rust web projects in seconds. With just a few selections, you can choose:
Backend: Wynd, Ripress, or both
Frontend: React, Svelte, or none
Extras: Out-of-the-box WebSocket + HTTP support
This means you can quickly bootstrap a real-time full-stack project (Rust backend + modern frontend) or just a backend-only Wynd project.
To create a new project with Wynd:
Create a simple echo server:
use ;
async
HTTP + WebSocket Integration
Use the with-ripress feature to serve both HTTP and WebSocket on the same port:
use ;
use ;
async
Documentation
- Getting Started - Quick setup and first steps
- API Reference - Complete API documentation
- Examples - Practical examples and use cases
- Tutorial - Step-by-step guide to building a chat server
- Guides - Best practices and advanced patterns
Performance
- Async by Design: Full async/await support with Tokio runtime
- Concurrent Connections: Each connection runs in its own task
- Efficient Message Handling: Minimal overhead for message processing
- Memory Efficient: Smart connection management and cleanup
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.