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

@domternal/pm

v1.0.1

Published

ProseMirror package re-exports for Domternal

Readme

@domternal/pm

Version MIT License

The ProseMirror dependency layer for the Domternal editor. It re-exports the underlying prosemirror-* libraries under stable @domternal/pm/* subpaths so every Domternal package imports ProseMirror from one place. Because the prosemirror-* packages are declared here once, as ordinary dependencies of this package, your package manager dedupes them to a single copy across @domternal/core and every extension. You rarely install it yourself: it ships transitively with @domternal/core.

Links

Website    •    Documentation    •    Live examples

Install

Install it explicitly when you import ProseMirror primitives in your own code, or when a strict peer resolver asks for it: every @domternal/extension-* package declares @domternal/pm as a peer dependency at the same minor floor as @domternal/core.

pnpm add @domternal/pm

@domternal/pm itself has no peer dependencies: the prosemirror-* libraries are its own dependencies.

One copy, always

ProseMirror compares by identity, not by shape. Two copies of prosemirror-model make Fragment.from reject a fragment the editor itself produced ("Can not convert <> to a Fragment"), two copies of prosemirror-state collide on a keyed plugin. That is a crash, not a few extra kilobytes, and nothing warns at install time.

Declaring the libraries here once is what normally prevents it. It stops being enough when another library in your app declares the same packages as peer dependencies and takes whatever your application root offers: y-prosemirror is the common case, and the one that reaches Domternal Pro's collaboration. The two resolutions can then differ with nothing warning at install or build time.

Domternal detects it at runtime and names both packages and the fix. The dedupe recipe per package manager and bundler: https://domternal.dev/v1/guides/single-prosemirror-copy/

Why these are dependencies and not peers

Declaring them as peer dependencies would make a second copy impossible, since there would be nothing here to bring. It is not worth what it costs: peers are installed automatically by npm 7 and later, by pnpm and by Bun, but by neither version of Yarn, so every Yarn user would have to install twelve ProseMirror packages by hand. An install that fails outright is a worse first day than a duplicate that is rare, loud when it happens, and fixed by one block of JSON.

What is done instead: the ranges declared here are checked in CI against those of every library that shares ProseMirror with this one, so a release cannot make the two impossible to reconcile, and a duplicate that does form is reported by name at runtime.

Usage

Import from a subpath matching the ProseMirror package you need. Each subpath re-exports the full API of its prosemirror-* counterpart. There is no root export, so import { Plugin } from '@domternal/pm' does not resolve.

import { Plugin, PluginKey } from '@domternal/pm/state';
import type { EditorView } from '@domternal/pm/view';

const myPlugin = new Plugin({
  key: new PluginKey('my-plugin'),
  view: (view: EditorView) => ({ destroy: () => {} }),
});

// Every `@domternal/pm/*` subpath re-exports its `prosemirror-*`
// counterpart unchanged.

Subpaths

| Subpath | Re-exports | | --- | --- | | @domternal/pm/commands | prosemirror-commands | | @domternal/pm/dropcursor | prosemirror-dropcursor | | @domternal/pm/gapcursor | prosemirror-gapcursor | | @domternal/pm/history | prosemirror-history | | @domternal/pm/inputrules | prosemirror-inputrules | | @domternal/pm/keymap | prosemirror-keymap | | @domternal/pm/model | prosemirror-model | | @domternal/pm/schema-list | prosemirror-schema-list | | @domternal/pm/state | prosemirror-state | | @domternal/pm/tables | prosemirror-tables | | @domternal/pm/transform | prosemirror-transform | | @domternal/pm/view | prosemirror-view |