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

@nuvui/editor

v0.1.3

Published

A rich text editor for @nuvui/react, on Tiptap: a toolbar, a menu on the selection, links and a character count, with HTML as its value.

Readme

@nuvui/editor

A rich text editor for @nuvui/react, on Tiptap.

This is early: the package is on npm as a 0.x version, and before 1.0 a minor version may rename or remove things. The changelog says where one does, and the repository README says where things stand.

pnpm add @nuvui/editor @nuvui/react
"use client";

import "@nuvui/react/styles.css";
import "@nuvui/editor/styles.css";
import { RichTextEditor } from "@nuvui/editor";
import { useState } from "react";

export function Notes() {
  const [html, setHtml] = useState("");

  return (
    <RichTextEditor
      aria-label="Notes"
      placeholder="Write a note"
      value={html}
      onValueChange={setHtml}
    />
  );
}

What's in it

  • RichTextEditor: a box to write formatted text in. Bold, italic, underline, strikethrough and code, headings, bulleted and numbered lists, quotes, blocks of code, dividers and links.
  • RichTextEditorToolbar, RichTextEditorFormats, RichTextEditorActions and RichTextEditorLink: the toolbar and what goes in it, for a toolbar of your own choosing.
  • RichTextEditorContent, RichTextEditorBubbleMenu and RichTextEditorCount: the text, the small toolbar over selected text, and the count.

How it behaves

Its value is a string of HTML, and nothing written is the empty string. onValueChange gives the HTML and, beside it, the same text as data, as plain words, and its counts. With a name, the HTML is sent with the form the editor is in.

The toolbar is one stop for the Tab key, and the arrow keys move along it. Every control has a name, and a toggle says whether it's on. The usual shortcuts work, and so does typing ## , - or > at the start of a line.

maxLength stops typing and pasting at a number of characters, and shows a count. readOnly shows text that can't be changed, which is also a safe way to show saved text.

The editor writes only the elements it knows, and a link can't have an address that runs something. That's what it writes: what reaches your server can be written by hand, so sanitize HTML on the server before showing it anywhere without the editor.

It's about 120 kB compressed, nearly all of it the editing engine. Load it with the screen that has one.

Dependencies

@nuvui/react is a peer dependency: the toolbar, the box for a link and its field are the core's.

The editing is done by Tiptap, on ProseMirror. Its packages are MIT and are ordinary dependencies. The component's props and what it gives back don't use Tiptap's types.

It's a package of its own so that an app which only wants buttons and dialogs doesn't have to install them.

The docs are at https://nuvui.nuvraxis.com/docs/editor.

License

MIT