Skip to content
Skills Library
Programming · Building & coding

role-fullstack:real-time-features

/role-fullstack:real-time-features

Implement real-time features using WebSockets (Socket.io, ws), Server-Sent Events (SSE), Supabase Realtime, Firebase, or Pusher. Covers presence indicators, live cursors, CRDT-based collaborative editing (Yjs, Automerge), notifications with offline delivery, chat with optimistic rendering, and Redis Pub/Sub backplane for multi-node scaling. Use when adding live updates, chat, collaboration, or any server-to-client or bidirectional communication.

Licence
MIT
Last repository change
24.07.2026

Assessment and security

80/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Implement real-time features using WebSockets (Socket.io, ws), Server-Sent Events (SSE), Supabase Realtime, Firebase, or Pusher. Covers presence indicators, live cursors, CRDT-based collaborative editing (Yjs, Automerge), notifications with offline delivery, chat with optimistic rendering, and Redis Pub/Sub backplane for multi-node scaling. Use when adding live updates, chat, collaboration, or any server-to-client or bidirectional communication.

Original author description

Implement real-time features using WebSockets (Socket.io, ws), Server-Sent Events (SSE), Supabase Realtime, Firebase, or Pusher. Covers presence indicators, live cursors, CRDT-based collaborative editing (Yjs, Automerge), notifications with offline delivery, chat with optimistic rendering, and Redis Pub/Sub backplane for multi-node scaling. Use when adding live updates, chat, collaboration, or any server-to-client or bidirectional communication.

How it works

  1. When to use
  2. Core principles
  3. Reference Files
Original SKILL.md headings · 23 lines, 229 words
SKILL.md preview
---
name: role-fullstack:real-time-features
description: Implement real-time features using WebSockets (Socket.io, ws), Server-Sent Events (SSE), Supabase Realtime, Firebase, or Pusher. Covers presence indicators, live cursors, CRDT-based collaborative editing (Yjs, Automerge), notifications with offline delivery, chat with optimistic rendering, and Redis Pub/Sub backplane for multi-node scaling. Use when adding live updates, chat, collaboration, or any server-to-client or bidirectional communication.
allowed-tools: Read, Grep, Glob, Bash
---

# Real-Time Features

## When to use
- Adding live notifications or activity feeds
- Building a chat system or typing indicators
- Implementing presence indicators (online/idle/offline)
- Adding collaborative editing or live cursors
- Streaming data to a dashboard in real time
- Scaling WebSocket connections across multiple server instances

## Core principles
1. **Transport matches use case** — SSE for server-push feeds and dashboards; Socket.io for rooms, chat, and bidirectional events; managed services (Pusher, Ably) when infra ownership is not worth it
2. **Authenticate before accepting** — validate JWT or session cookie in the Socket.io connection middleware; never allow anonymous socket joins to protected rooms
3. **Always clean up subscriptions** — every `eventBus.on` and every `socket.join` needs a corresponding teardown on disconnect or component unmount
4. **Deltas over full state** — emit only what changed; sending full document snapshots on every keystroke kills throughput and battery
5. **Redis backplane for multi-node** — a single Socket.io Redis adapter call is all that stands between "works on one dyno" and "works on ten"

## Reference Files

- `references/websockets-sse.md` — technology selection table, Socket.io five-step server setup, SSE ReadableStream implementation for Next.js route handlers, scaling with Redis Pub/Sub and sticky sessions
- `references/presence-collaboration-chat.md` — presence heartbeat with Redis sorted sets, Yjs/Automerge CRDT integration with TipTap/Lexical, notifications pipeline (online WebSocket + offline queue), chat message model and cursor-based pagination, common pitfalls
Files in this package (3)
  • SKILL.md 2 KB
  • references/presence-collaboration-chat.md 2 KB
  • references/websockets-sse.md 3 KB

Versions

The database has no other skills named role-fullstack:real-time-features.

Database snapshot: 13.11.2026 · package version 6786f44115a9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95realtime
    Real-time features in Next.js — Server-Sent Events, WebSockets with Socket.io, Pusher/Ably, Supabase Realtime, live notifications, chat, presence, collaborative editing. Use when building live updates, chat, notifications, presence tracking, or collaborative features.
  • 100backend-realtime
    Implement real-time features with WebSockets, Supabase Realtime, or Server-Sent Events. Use when "real-time", "live updates", "WebSocket", "notifications", "chat", "presence", "collaborative", "live data", or "instant sync".
  • 95websockets-realtime
    Real-time communication with WebSockets, Server-Sent Events, and related technologies. Use when building chat, live updates, collaborative features, or any real-time functionality.
  • 90add-realtime
    Adds live features (notifications, live dashboards, presence, chat, collaborative editing) via SSE, WebSockets or a managed service (Supabase Realtime, Pusher, Ably, Liveblocks), with authorised channels, reconnects and scale-out. Use when something must update without a page reload.
  • 100websocket-builder
    When the user wants to build real-time features using WebSockets. Use when the user mentions "WebSocket," "real-time," "live updates," "socket," "ws," "push notifications," "live chat," "streaming data," or "bidirectional communication." Covers server setup, room management,…
  • 100realtime-websocket-patterns
    Implement real-time features with WebSockets, Server-Sent Events, and long polling. Covers connection management, room-based messaging, presence tracking, and scaling strategies. Triggers on WebSocket implementation, real-time communication, or live update feature requests.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.