npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

revealjs-editable

v0.2.1

Published

reveal.js plugin — in-browser slide editing with one-click HTML export

Readme

revealjs-editable

A reveal.js plugin that adds an in-browser edit mode to any self-contained HTML presentation. Click to edit slide text, then download the result as a new HTML file — no server, no build step.

Features

  • ✏ Edit / ✓ Done editing button fixed in the top-right corner
  • Click any text element on any slide to edit it inline
  • Floating formatting toolbar on text selection: Bold, Italic, Underline, ~~Strikethrough~~, text colour, clear formatting
  • Keyboard navigation is suspended while editing so typing doesn't advance slides
  • ⬇ Save HTML downloads a standalone copy of the deck with your edits baked in
  • Press E to toggle edit mode, Esc to exit
  • Speaker notes (<aside class="notes">) are excluded from editing

Install

npm install revealjs-editable

Usage

With a bundler (Vite, webpack, etc.)

import Reveal from 'reveal.js';
import RevealEditable from 'revealjs-editable';

Reveal.initialize({
  plugins: [ RevealEditable ]
});

CDN / <script> tag

<script src="https://unpkg.com/revealjs-editable/revealjs-editable.js"></script>

<script>
  Reveal.initialize({
    plugins: [ RevealEditable ]
  });
</script>

Inline (single-file deck)

Paste the contents of revealjs-editable.js into a <script> tag before the script that calls Reveal.initialize, then add RevealEditable to the plugins array:

<script>
  /* paste revealjs-editable.js contents here */
</script>

<script>
  Reveal.initialize({
    plugins: [ RevealNotes, RevealEditable ]
  });
</script>

Customising editable elements

The plugin targets these selectors by default:

h1, h2, h3, h4, h5, p, li, .editable

Edit the SELECTORS array near the top of revealjs-editable.js to add or remove element types.

How the save works

When you click ⬇ Save HTML, the plugin:

  1. Exits edit mode (strips all contenteditable attributes and outline styles)
  2. Temporarily removes the toolbar and formatting bar from the DOM
  3. Serialises document.documentElement.outerHTML
  4. Re-attaches the toolbar and formatting bar
  5. Triggers a browser download of the resulting HTML file

The downloaded file is fully self-contained and contains your edits.

Compatibility

Requires reveal.js 4 or later (uses the init(deck) plugin API).

Testing

npm install
npm test

Runs a small Puppeteer-driven browser test suite (test/*.test.js) against a system-installed Chrome/Chromium. Set PUPPETEER_EXECUTABLE_PATH to point at a specific browser binary if none of the default locations are found.

License

MIT