projects / node-collab

Live Systems 2026

node-collab

A real-time collaborative app: an Angular 20 SPA on top of an Express + Socket.IO + Redis pub/sub backend that scales horizontally. The full Node twin of collab-board, same problem, different ecosystem, deliberately so. Where collab-board is Go + Svelte, this is Node + Angular, all the way down.

node-collab architecture diagram

Overview

Highlights

  • Two-replica deployment with Socket.IO Redis adapter: messages cross instances transparently via pub/sub
  • JWT handshake authentication via io.use; tokens minted by a dev-only /dev/token endpoint for the demo
  • Per-room presence state stored in Redis hashes with 60s TTL, refreshed periodically, cross-instance for free
  • Reliable channel for chat (with ack callbacks), volatile channel for cursor updates (lossy by design)
  • Slow-client policy ported from the Go collab-board: transport-stalled watcher + force-disconnect on threshold
  • Prometheus metrics: active_sockets, active_rooms, messages_published, messages_delivered, slow_client_evictions

Stack

  • TypeScript
  • Node.js
  • Express
  • Angular
  • Fullstack
  • WebSockets
  • Socket.IO
  • Redis
  • Real-Time
  • Horizontal Scaling
  • Docker
  • Railway

Demo

node-collab architecture diagram