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

@salmonui/rich-text

v0.4.2

Published

RichTextEditor, BlockEditor and RichTextContent for Salmon UI on one ProseMirror engine, with an opt-in Yjs collaboration subpath.

Readme

@salmonui/rich-text

Rich text editing for Salmon UI: RichTextEditor (HTML value, toolbar, quick toolbars, dialogs), BlockEditor (block JSON value, slash menu, drag handles, block menus) and RichTextContent (server-safe read-only HTML), all on one ProseMirror engine.

npm install @salmonui/rich-text @salmonui/core react react-dom

Every @salmonui/* package of an application must resolve to the same version (they are released together and exact-pinned to each other); @salmonui/core warns in development when a second copy loads.

  • Dependency-exception package: the only Salmon UI package that may use ProseMirror, and, through the opt-in @salmonui/rich-text/collab subpath only, Yjs. Every other package stays free of third-party runtime dependencies.
  • ProseMirror loads with dynamic import() on the client after hydration. The server renders the sanitized HTML of value in the element the engine mounts on, so the markup matches and nothing reads the DOM during render.
  • react and react-dom >=19 are peers. ESM only.
  • Public entry points: @salmonui/rich-text (RichTextEditor, BlockEditor, RichTextContent) and @salmonui/rich-text/collab (createCollaboration).
import { RichTextEditor } from '@salmonui/rich-text';
import { createCollaboration } from '@salmonui/rich-text/collab'; // opt-in, adds Yjs

import '@salmonui/core/styles.css'; // the theme, once per application
import '@salmonui/buttons/button/styles.css';
import '@salmonui/buttons/menu/styles.css';
import '@salmonui/dropdowns/mention/styles.css';
import '@salmonui/rich-text/styles.css';

<RichTextEditor defaultValue="<p>Hello</p>" onChange={(html) => save(html)} aria-label="Body" />;

The editor toolbars render buttons, menus and mentions, so their family stylesheets come before @salmonui/rich-text/styles.css.

Third-party dependencies

Every direct runtime dependency is exact-pinned, on the allow-list in tooling/checks/packages.manifest.mjs (thirdParty) and listed with its license in the repository THIRD_PARTY_LICENSES.md.

| Package | License | Used by | | --- | --- | --- | | prosemirror-model | MIT | engine (lazy chunk) | | prosemirror-state | MIT | engine (lazy chunk) | | prosemirror-view | MIT | engine (lazy chunk) | | prosemirror-transform | MIT | engine (lazy chunk) | | prosemirror-commands | MIT | engine (lazy chunk) | | prosemirror-history | MIT | engine (lazy chunk) | | prosemirror-keymap | MIT | engine (lazy chunk) | | prosemirror-inputrules | MIT | engine (lazy chunk) | | prosemirror-schema-list | MIT | engine (lazy chunk) | | prosemirror-tables | MIT | engine (lazy chunk) | | prosemirror-dropcursor | MIT | engine (lazy chunk) | | prosemirror-gapcursor | MIT | engine (lazy chunk) | | yjs | MIT | @salmonui/rich-text/collab only | | y-prosemirror | MIT | @salmonui/rich-text/collab only | | y-protocols | MIT | @salmonui/rich-text/collab only |

Transitive: orderedmap, rope-sequence, w3c-keyname (ProseMirror) and lib0 and isomorphic.js (Yjs), all MIT.

Documentation

License

MIT. Third-party licenses: THIRD_PARTY_LICENSES.md.