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

@revivee/revive-editor

v1.2.1

Published

Lightweight WYSIWYG rich-text editor for React. Clean HTML output, TypeScript support, and a themeable UI built on Slate.js.

Readme

@revivee/revive-editor

A lightweight, extensible WYSIWYG rich-text editor built with React and Slate.js. Outputs and accepts clean HTML, making it straightforward to integrate with any backend or CMS.

Installation

npm install @revivee/revive-editor
yarn add @revivee/revive-editor
pnpm add @revivee/revive-editor

Requirements: React 16.8+, Node 18+

Quick Start

Import the component and the stylesheet, then pass an onChange handler.

import { ReviveEditor } from '@revivee/revive-editor';

export default function App() {
  const [html, setHtml] = useState('');

  return <ReviveEditor onChange={setHtml} />;
}

The editor is uncontrolled by default — it manages its own internal state and reports the serialised HTML string via onChange. Use initialValue to seed existing content on first mount.

Props

| Prop | Type | Required | Description | |---|---|:---:|---| | onChange | (content: string) => void | Yes | Fires with the serialised HTML string on every change | | initialValue | string | No | HTML string used to seed the editor on first mount | | licenseKey | string | No | License key from reviveeditor.com. Unlocks the Pro toolbar and removes the watermark | | theme | ReviveTheme | No | Theme from createTheme(). Supports 'light', 'dark', and 'system' modes. Defaults to light |

Free vs Pro

| Feature | Free | Pro | |---|:---:|:---:| | Bold, italic, underline, strikethrough | ✓ | ✓ | | Code & blockquote | ✓ | ✓ | | Text alignment | ✓ | ✓ | | Ordered & unordered lists | ✓ | ✓ | | Indentation | ✓ | ✓ | | Undo / Redo | — | ✓ | | Headings (H1–H6) | — | ✓ | | Font size control | — | ✓ | | Text color & highlight | — | ✓ | | Table insertion | — | ✓ | | Image insertion | — | ✓ | | Link insertion | — | ✓ | | Watermark | Yes | No |

Pro features activate automatically once a valid licenseKey is passed. License keys are available at reviveeditor.com/pricing.

Theming

Revive Editor ships with a theme system inspired by MUI's createTheme(). Themes are scoped to the editor with no global CSS side-effects.

import { ReviveEditor, createTheme } from '@revivee/revive-editor';

// Follow the operating system preference automatically
const theme = createTheme({ mode: 'system' });

export default function App() {
  return <ReviveEditor theme={theme} onChange={...} />;
}

Modes

| Mode | Behaviour | |---|---| | 'light' | Purple-accented light theme (default) | | 'dark' | Purple-accented dark theme | | 'system' | Follows the OS prefers-color-scheme setting, updates reactively |

Custom palette

const theme = createTheme({
  mode: 'light',
  palette: {
    primary: '#e11d48',       // rose-600
    primaryLight: '#fb7185',  // rose-400
    primaryDark: '#be123c',   // rose-700
  },
});

All palette tokens (primary, primaryLight, primaryDark, background, surface, border, text, etc.) are also exposed as CSS custom properties prefixed --re- for direct stylesheet overrides.

Bundler Note

The package sets "sideEffects": ["**/*.css"] to prevent tree-shaking of styles. Make sure @revivee/revive-editor is not excluded from CSS processing in your Vite or Webpack config.

Links