@legible-sync/example-nextjs-sse
v1.3.1
Published
Next.js SSE example using LegibleSync framework
Maintainers
Readme
@legible-sync/example-nextjs-sse
Next.js example demonstrating Server-Sent Events (SSE) with LegibleSync framework.
Features
- Real-time comment system using SSE
- Comments stored in CSV file
- Automatic logging of comment creation
- Next.js 14+ with App Router
Getting Started
Install dependencies:
npm installRun in development mode:
npm run dev
API Endpoints
GET /api/comments- Retrieve all commentsPOST /api/comments- Create a new commentGET /api/comments/stream- SSE stream for real-time updates
