Bun Game Server

Bun-native WebSocket relay server — same protocol as the Node.js version but 5-8x faster. Protocol-agnostic relay with Bun built-in pub/sub for room broadcasting.

Game Server
websocket
multiplayer
realtime
gameserver
msgpack
bun
bun-ws-gameserver
https://github.com/mavisakalyan/bun-ws-gameserver
Ready to deploy
Docker image
ghcr.io/mavisakalyan/bun-ws-gameserver:latest
Resources
0.5
CPU
512Mi
RAM
1Gi
Disk
Exposed ports
808080 (public)
Environment variables
PORTrequired
Server listen port
ALLOWED_ORIGINS
Comma-separated allowed origins for WebSocket connections
KEEPALIVE_MS
WebSocket keepalive ping interval in milliseconds
MAX_MESSAGES_PER_SECOND
Per-client rate limit (sliding window)
MAX_PLAYERS_PER_ROOM
Maximum players per room