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

@payablehq/richpad

v1.0.2

Published

Enterprise-grade rich text editor component built with Tiptap, React, and TypeScript.

Downloads

321

Readme

@payablehq/richpad

Enterprise-grade rich text editor component built with Tiptap, React, and TypeScript.

npm version License: MIT

📖 Live Demo & Docs →


Full Editor Example

Color Picker

Inline Editor


Features

  • Batteries-included — all dependencies bundled, only react + react-dom required
  • 🎨 3 toolbar variantsstandard, modern, bottom
  • 🌙 Dark mode built-in
  • 💬 @Mentions with custom data provider
  • Slash commands (/heading, /code, …)
  • 📋 Tables, task lists, code blocks with syntax highlighting
  • 🔗 Links, images, blockquotes, horizontal rules
  • 💡 Bubble toolbar on text selection
  • 📤 Output formats — HTML, JSON, Markdown, plain text
  • Accessible — ARIA roles and keyboard navigation

Installation

npm install @payablehq/richpad
# or
yarn add @payablehq/richpad
# or
pnpm add @payablehq/richpad

Peer dependencies (install separately):

npm install react react-dom

Quick Start

import { RichPad } from '@payablehq/richpad';
import '@payablehq/richpad/styles';

function MyEditor() {
  return (
    <RichPad
      placeholder="Start writing..."
      theme={{ mode: 'light' }}
      toolbarVariant="modern"   // 'standard' | 'modern' | 'bottom'
      onChange={(html) => console.log(html)}
      minHeight={200}
    />
  );
}

Toolbar Variants

| Variant | Description | |---|---| | standard | Full-featured top toolbar (default) | | modern | Compact modern-style top toolbar | | bottom | Minimal bottom toolbar — ideal for comment inputs |

// Comment / chat input
<RichPad toolbarVariant="bottom" placeholder="Add a comment..." />

Props

| Prop | Type | Default | Description | |---|---|---|---| | content | string \| JSONContent | "" | Initial content (HTML, JSON, or Markdown) | | onChange | (value) => void | — | Fired on every change | | onBlur | (value) => void | — | Fired when editor loses focus | | placeholder | string | — | Placeholder text | | theme | { mode: 'light' \| 'dark' } | { mode: 'light' } | Theme config | | toolbarVariant | 'standard' \| 'modern' \| 'bottom' | 'standard' | Toolbar style | | toolbar | ToolbarConfig \| false | — | Pass false to hide toolbar entirely | | minHeight | number \| string | 120 | Min editor height | | maxHeight | number \| string | — | Max height (enables scroll) | | outputFormat | 'html' \| 'json' \| 'markdown' \| 'text' | 'html' | onChange/onBlur return format | | readOnly | boolean | false | Read-only mode | | disabled | boolean | false | Disabled mode | | extensions | Extension[] | — | Extra Tiptap extensions | | mentionProvider | (query) => MentionItem[] | — | @mention data provider | | slashCommands | SlashCommandItem[] \| false | — | Custom slash commands |


Imperative API

import { useRef } from 'react';
import { RichPad, type RichPadRef } from '@payablehq/richpad';

function MyEditor() {
  const editorRef = useRef<RichPadRef>(null);

  return (
    <>
      <RichPad ref={editorRef} />
      <button onClick={() => console.log(editorRef.current?.getHTML())}>
        Get HTML
      </button>
      <button onClick={() => editorRef.current?.clearContent()}>
        Clear
      </button>
    </>
  );
}

Available ref methods: getHTML(), getJSON(), getMarkdown(), getText(), setContent(), clearContent(), focus(), blur(), isEmpty(), getEditor()


Releasing a New Version

  1. Bump the version in package.json
  2. Push a git tag: git tag v1.0.1 && git push origin v1.0.1
  3. The GitHub Actions workflow auto-publishes to npm

Development

git clone https://github.com/payablehq/richpad
cd richpad
npm install

# Start dev server (demo app)
npm run dev

# Build library bundle
npm run build:lib

# Build demo site
npm run build:demo

License

MIT © Payable HQ