This project enhances presentations by allowing real-time audience feedback using Cloudflare Workers and Durable Objects, for the presentations built with Slidev.
- Real-time audience reactions and feedback
- WebSocket-based communication for instant updates
- Persistent storage of presentation data and feedback using SQLite
- Scalable architecture using Cloudflare Workers and Durable Objects
- TypeScript
- Cloudflare Workers
- Durable Objects
- WebSockets
- SQLite (via Cloudflare's SqlStorage)
- Hono (lightweight web framework for Cloudflare Workers)
Presentation
class: Stores all the presentation dataSlide
class: Stores the feedback for individual slides. Also handles WebSocket connections and broadcasts- A UI to view the stats
- Clone the repository
- Install dependencies:
npm install
- Deploy to Cloudflare Workers:
npm run deploy
Checkout the Slidev Realtime Add-on for more details.
GET /api/presentations
: Retrieve all presentationsGET /api/feedback/:slide
: Get feedback for the mentioned presentations' slides
Contributions are welcome! Please feel free to submit a Pull Request.