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

@verbb/plugin-kit-tiptap-core

v2.0.20

Published

Shared TipTap schema, extensions, toolbar helpers, and serialization for Plugin Kit rich-text surfaces.

Downloads

1,760

Readme

@verbb/plugin-kit-tiptap-core

Shared TipTap schema, extensions, toolbar helpers, and serialization for Plugin Kit rich-text surfaces.

You normally consume TipTap through UI packages (pk-tiptap-* / React/Vue facades). Use this package when you need the headless helpers without mounting an editor.

Install

npm install @verbb/plugin-kit-tiptap-core

TipTap packages are dependencies of this package.

What you get

| Area | Examples | |------|----------| | Extensions | createTiptapExtensions, createTiptapInputExtensions, variable-tag extension | | Serialization | valueToContent, contentToValue, normalize / empty checks | | Toolbar | presets, group menus, runToolbarButton, active-state helpers | | TextStyle | built-in Small caps and constrained declarative style definitions | | Links | Craft element / URL link helpers |

Subpath exports: ./extensions, ./registry, ./toolbar, ./links, ./serialization/editor, ./serialization/input.

Extending the document schema

Register custom TipTap nodes, marks, or behaviour extensions before the first TiptapEditor or TiptapContent mounts. Registrations are additive for the current application bundle; core schema names cannot be replaced.

import { Mark } from '@tiptap/core';
import {
    registerTiptapExtension,
    registerTiptapToolbarControl,
} from '@verbb/plugin-kit-tiptap-core';

registerTiptapExtension({
    id: 'acme/abbr',
    extension: () => Mark.create({
        name: 'abbr',
        parseHTML: () => [{ tag: 'abbr' }],
        renderHTML: ({ HTMLAttributes }) => ['abbr', HTMLAttributes, 0],
    }),
});

registerTiptapToolbarControl({
    id: 'abbr',
    label: 'Abbreviation',
    run: (editor) => editor.chain().focus().toggleMark('abbr').run(),
    isActive: (editor) => editor.isActive('abbr'),
});

Add the control ID (abbr above) to an editor's buttons or structured toolbar configuration. Extensions target both editable editors and read-only content by default; use surfaces: ['editor'] only for behaviour that does not participate in stored content. Factories are recommended when an extension has mutable per-editor state.

Persisted custom nodes and marks are a data-contract change. Register a matching server-side extension when rendering through verbb/tiptap, and make sure every editor and renderer that can encounter that JSON understands the same schema. Plugin Kit does not load third-party scripts or expose a Craft global; the consuming application owns that bootstrap and load order.

For a safe visual-only style, register one serializable definition instead of writing an extension and control separately:

import { registerTiptapTextStyleDefinition } from '@verbb/plugin-kit-tiptap-core';

registerTiptapTextStyleDefinition({
    id: 'acme-uppercase',
    label: 'Uppercase',
    attribute: 'textTransform',
    cssProperty: 'text-transform',
    allowedValues: ['uppercase'],
    toolbarValue: 'uppercase',
});

Only known font-variant-caps and text-transform values are accepted. The definition installs the matching global textStyle attribute on editor and content surfaces and adds its toolbar toggle. Server-rendered applications must provide the same definition to their PHP renderer.

UI entry points

| Surface | Import | |---------|--------| | Web | @verbb/plugin-kit-web/components/tiptap-editor.js (also tiptap-input, tiptap-content) | | React | TiptapEditor, TiptapInput, TiptapContent from @verbb/plugin-kit-react/components | | Vue | same names from @verbb/plugin-kit-vue/components |

Docs

Component pages under Web / React / Vue.