sse-basics
CommunityBaseline SSE implementation for real-time Next.js apps.
Authorvuthuonghai-steve
Version1.0.0
Installs0
System Documentation
What problem does it solve?
SSE Basics provides a simple, reliable pattern for server-to-client real-time updates using Server-Sent Events. It lets you push events from server to web clients in Next.js with clean formatting and predictable connection handling.
Core Features & Use Cases
- Unidirectional server-to-client streaming (server → client)
- Text/event-stream formatting with data: payload and double newline
- Basic server-side route handler using TransformStream/ReadableStream
- Client consumption via EventSource with automatic reconnect
- Use cases: live notifications, feeds, progress updates
Quick Start
To begin, implement a minimal SSE endpoint and a client EventSource to subscribe to /api/sse-basics that prints incoming JSON payloads.
Dependency Matrix
Required Modules
None requiredComponents
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: sse-basics Download link: https://github.com/vuthuonghai-steve/KLTN/archive/main.zip#sse-basics Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.