HexStack
A modern, full-stack web framework for Rust
Please star the repo if you like it, so that I know someone is using it.
What is HexStack?
HexStack is a complete, modern web framework for Rust that combines the familiar developer experience of Express.js, WS and Drizzle with the performance and safety of Rust. HexStack brings together three powerful libraries to create a unified full-stack development experience:
- Ripress - Lightning-fast HTTP server (97% of Actix-Web performance)
- Wynd - Simple, powerful WebSocket server
- Lume - Type-safe ORM with intuitive API (coming soon)
Why Choose HexStack?
🚀 Unmatched Performance
- HTTP performance: 97% of Actix-Web speed
- WebSocket performance: Built on Tokio for maximum async efficiency
- Nearly 10x faster than Express.js + Socket.io
💡 Superior Developer Experience
- Express.js-familiar API that feels natural
- Type-safe from the ground up
- Comprehensive CLI for rapid scaffolding
- Seamless integration between all components
⚡ Modern Architecture
- Async/await support throughout
- HTTP/2 support via Hyper
- Real-time WebSocket capabilities
- Production-ready from day one
Table of Contents
Overview
HexStack is designed to be the Rails/Laravel of the Rust ecosystem - a complete, opinionated framework that provides everything you need to build modern web applications. With its CLI tool, you can scaffold new projects in seconds and start building immediately.
Features
- 🔧 Powerful CLI - Scaffold projects with
hexstack new
- 🌐 HTTP + WebSocket - Unified server handling both protocols
- 📦 Zero Configuration - Works out of the box with sensible defaults
- 🏗️ Multiple Templates - HTTP-only, WebSocket-only, or full-stack apps
- 🛡️ Type Safety - Compile-time guarantees throughout the stack
- 🚀 Hot Reload - Fast development iteration (coming soon)
- 📊 Built-in Middleware - CORS, logging, file uploads, rate limiting
- 🔄 Real-time Ready - WebSocket support for live features
Installation
Install HexStack CLI globally:
Or add individual components to an existing project:
CLI Usage
Create a New Project
# Full-stack HTTP + WebSocket application
# HTTP-only application
# WebSocket-only application
Available Templates
http
- Ripress HTTP server onlywebsocket
- Wynd WebSocket server onlyfull
- Ripress + Wynd integrated server (default)
Examples
Full-Stack Application
use ;
use ;
async
HTTP-Only Application
use ;
async
WebSocket-Only Application
use ;
async
View more examples in the Examples directory.
Get Started
Ready to build something amazing? Get started in 30 seconds:
# Install HexStack CLI
# Create a new full-stack app
# Navigate and run
Your server will be running on http://localhost:3000
with WebSocket support at ws://localhost:3000/ws
.
Documentation
- Getting Started Guide
- CLI Reference
- HTTP Server Guide
- WebSocket Guide
- Deployment Guide
- API Reference
Ecosystem
HexStack is built on top of these powerful libraries:
Ripress - HTTP Server
- 97% of Actix-Web performance
- Express.js-inspired API
- Built-in middleware ecosystem
- Production ready v1.0+
Wynd - WebSocket Server
- Event-driven async API
- Automatic connection management
- Type-safe message handling
- Seamless HTTP integration
Lume - ORM (Coming Soon)
- Type-safe queries
- Schema-first approach
- Migration system
- Relationship handling
Performance
HexStack delivers exceptional performance across the stack:
- HTTP: 97% of Actix-Web performance
- WebSocket: Full async/concurrent connections
- Memory: Efficient connection and resource management
- Throughput: 10x faster than Express.js + Socket.io equivalents
Contributing
We don't take contributions yet, but your feedback is always welcome! If you have any questions or suggestions, feel free to reach out to us on X.
License
This project is licensed under the MIT License - see the LICENSE file for details.
HexStack v0.3.0 - The Future of Rust Web Development ⚡