stacks-realtime

Official

Broadcast real-time events with Stacks.

Authorstacksjs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Real-time broadcasting is essential for modern apps to push updates instantly. Stacks Realtime provides a cohesive API to broadcast events to channels, manage private and presence channels, and dynamically discover and execute app-specific broadcasts.

Core Features & Use Cases

  • Channel-based broadcasting: public, private, and presence channels with a fluent Channel API.
  • Emit helpers: emit, emitToUser, emitToUsers for targeted or broadcast delivery.
  • Server lifecycle: createServer, getServer, setServer, stopServer to manage the broadcast server lifecycle.
  • Broadcast discovery: runBroadcast to auto-run app/Broadcasts/ files for event-driven workflows.

Quick Start

Start the real-time server and broadcast a sample event to verify setup.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: stacks-realtime
Download link: https://github.com/stacksjs/stacks/archive/main.zip#stacks-realtime

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.