Scaffold a Reveal.js or Slidev presentation with live audience quizzes, powered by slide-quiz and AnyCable.
npx create-slide-quizRun this inside your existing Reveal.js or Slidev project directory.
The CLI auto-detects your framework (Reveal.js or Slidev) and walks you through the setup:
- AnyCable Plus — guides you through creating a free AnyCable Plus app (up to 2,000 concurrent connections)
- Install — adds
slide-quiz(for Reveal.js) orslidev-addon-slide-quiz(for Slidev) - Configure — injects plugin config and sample quiz slides into your deck
- Serverless functions — copies the answer/sync functions for Netlify or Vercel
- Deploy — optionally deploys via Netlify or Vercel CLI
For Reveal.js projects, the CLI:
- Detects your HTML file and JS entry point
- Adds
slide-quizimports and plugin config - Creates
quiz.htmlandquiz.js(the audience voting page) - Inserts sample quiz slides into your deck
For Slidev projects, the CLI:
- Adds
slidev-addon-slide-quizto your dependencies - Configures
slides.mdfrontmatter with the addon and WebSocket settings - Copies
quiz.htmlto yourpublic/directory - Appends sample quiz slides using the
quizandquiz-resultslayouts
- Node.js 18+
- An existing Reveal.js or Slidev project (or the CLI will help you set one up)
- Netlify CLI or Vercel CLI for deployment (optional)
MIT