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

@matrajs/core

v1.1.8

Published

A headless rich text editor framework with a first-class extension API. Zero dependencies.

Readme

@matrajs/core

A headless rich text editor framework. Engine, document model, extension API and starter kit — framework-agnostic and MIT.

npm i @matrajs/core
import { createEditor, starterKit } from '@matrajs/core'

const editor = createEditor({ extensions: starterKit, content: '<p>Hello</p>' })
editor.mount(element)
editor.commands.toggleHeading(2)

What makes it different

Commands are inferred. editor.commands is built from the definitions you pass — no module augmentation, no registry, no generics to thread. Calling a command no extension defines is a compile error.

The engine stays hidden. The document is plain JSON and no engine type appears in a public signature. editor.unsafe is the escape hatch and is excluded from semver.

Positions survive time. ctx.mark() returns a marker that re-resolves a range through every edit made since it was taken — the reason a three-second-late AI response lands on the right words instead of corrupting the paragraph.

In the box

Seventy-nine extensions, every one importable on its own and none of them in your bundle unless you pass it: the starter kit, text style, tables with row and column commands, task lists, callouts, collapsible toggles, YouTube and sandboxed embeds, search and replace, autolink, emoji, indent, clear formatting, code highlighting, a drag handle, comments, mentions, slash menus, bubble and floating menus, Markdown in and out, a table of contents, unique ids, a file handler, image resizing, locked blocks, template fields with a mail merge that needs no editor, snippets, columns, page breaks, line height, text direction, footnotes, math, text case, invisible characters, selection highlight, typewriter scrolling, autosave, smart paste, hashtags, ghost-text completion and dictation. The directory with the line you would write for each is at https://matrajs.com/extensions.

Companions

  • @matrajs/react, @matrajs/vue, @matrajs/svelte, @matrajs/solid — bindings, each one thin

  • @matrajs/ai — streaming edits that survive concurrent typing

  • @matrajs/collab — authority, rebasing and remote cursors

  • @matrajs/versions — snapshots, a real diff, restore as one undo step

  • @matrajs/mcp — this documentation as an MCP server, for any AI tool

  • Docs: https://matrajs.com

  • Source: https://github.com/amrelaco/matra

MIT.