

What is WSX?
WSX is a modern, framework-agnostic WebSocket library that brings the simplicity and power of HTMX to real-time web applications. It enables developers to build reactive, real-time applications using familiar hypermedia patterns with WebSocket communication.Real-time Hypermedia
Apply HTMX-style patterns to WebSocket communications for intuitive
real-time updates
Framework Agnostic
Works with Express, Hono, and other frameworks through a clean adapter
system
Advanced Triggers
Rich trigger system with throttling, debouncing, delays, and conditional
execution
Out-of-Band Updates
Update multiple DOM elements from a single WebSocket response
Key Features
π Real-time Hypermedia
π Real-time Hypermedia
WSX brings the familiar HTMX patterns to WebSocket communication, making
real-time applications as simple as traditional hypermedia.
π‘ Out-of-Band Updates
π‘ Out-of-Band Updates
Update multiple DOM elements from a single WebSocket response, enabling
complex UI updates with minimal code.
π― Advanced Triggers
π― Advanced Triggers
Rich trigger system supporting throttling, debouncing, delays, conditions, and
more for sophisticated user interactions.
π§ Framework Agnostic
π§ Framework Agnostic
Works with Express, Hono, and other frameworks through a clean adapter system.
Easy to integrate with existing applications.
π Broadcasting
π Broadcasting
Send updates to all connected clients or specific connections with simple API
calls.
β‘ Swap Modifiers
β‘ Swap Modifiers
Control timing, positioning, and animation of DOM updates with powerful swap
specifications.
Why Choose WSX?
Simple Yet Powerful
WSX combines the simplicity of HTMX with the power of WebSockets, allowing you to build complex real-time applications with minimal JavaScript.Familiar Patterns
If you know HTMX, you already know WSX. The same declarative approach, the same swap patterns, just over WebSockets.Production Ready
Built with TypeScript, comprehensive error handling, and battle-tested WebSocket patterns.Quick Example
Hereβs a simple example of a real-time counter:Getting Started
Ready to dive in? Letβs get you up and running with WSX:Quick Start
Get WSX running in under 5 minutes with our quick start guide
Installation
Install WSX in your project with npm or yarn
Community & Support
Join our growing community of developers building real-time applications with WSX:- GitHub: github.com/stukennedy/wsx
- Discord: Join our Discord server for real-time help
- Twitter: Follow @stukennedydev for updates