
Spectacle
A React library for building slide presentations by writing JSX, including live code demos.
- Stars
- 10.2k
- Forks
- 702
- Licence
- MIT
- Language
- TypeScript
- Last update
- 9 days ago
- Type
- Library
What it is
Spectacle is a JavaScript library built on React that lets you create presentation slides by writing components in JSX, the syntax React uses. Because slides are ordinary React code, you can embed live, running code examples inside a talk. The README describes it as a ReactJS based presentation library and points to a docs site for details.
- Build a slide deck as a React project and publish it as a web page
- Embed a running code example directly in a presentation slide
- Reuse React components across several talks
Great for
- React developers who want to build slides as code
- Engineers giving technical talks that include live demos
- Teams that keep presentations in version control
Not ideal for
- People who want a drag-and-drop slide editor, since the README describes a code-based library and does not mention a visual editor
- Non-programmers, because creating slides requires writing React components
How to get it
- 1
Install with a package manager
You'll need: Node.js · npm
Install the spectacle package from npm
npm install spectacle - 2
Run it
- Read the docs site at https://commerce.nearform.com/open-source/spectacle/docs/
- Create or use a React project and install the spectacle package
- Build your first slide components in JSX
- Run your React app locally to view the deck
- 3
Get the most out of it
- Use the docs site for the full API and examples, since the README points there
- Look in the docs folder of the repository for documentation source
- Check the examples included in the monorepo for working starting points
- Open issues using the question template if you get stuck
Downloads
Strengths
- Slides are written as JSX, so they fit into an existing React workflow
- Supports live demos of code within a presentation, according to the description
- Published under the MIT license and actively maintained per the README
Trade-offs
- Requires knowledge of React and JavaScript to use
- The README is short and defers most detail to the docs site and package README
- Not a visual editor, so layout changes are made in code
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| spectacle (this) | 10.2k | Library | intermediate | 9 days ago | React developers who want to build slides as code |
| reveal.js | 72.5k | Library | intermediate | 1 months ago | Developers who already write HTML, CSS, or JavaScript and want full control over slide design |
| slidev | 49.3k | Dev tool | beginner | 14 days ago | Developers who want to present code, technical talks, or architecture diagrams |
| mdx-deck | 11.5k | Dev tool | intermediate | 3.8 years ago | Developers who already write React and want to present technical material |
| nodeppt | 10.3k | Dev tool | intermediate | 5.8 years ago | Developers who prefer writing slides in Markdown over a visual editor |
| frontend-slides | 31.7k | AI model / agent | beginner | 5 months ago | Non-designers who want good-looking web presentations without writing CSS or JavaScript |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.