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

@merakite/tiptap-bubble

v0.4.0

Published

Tiptap rich text editor bundle for Bubble.io.

Readme

@merakite/tiptap-bubble

A Tiptap v3 rich text editor bundle for Bubble.io, loaded through a thin Bubble plugin. It stores sanitized HTML in an existing text field, compatible with the Quill editor it replaces.

The public interface and storage format are defined in docs/API_CONTRACT.md. Task briefs are in docs/tasks/. Project rules are in CLAUDE.md.

Status

Task 06 (0.4.0: a "Text alignment" dropdown, align, replaces the four alignment buttons in the default toolbar; see docs/tasks/TASK_06_ALIGN_MENU.md). Task 05 (0.3.0) added smart fields, workspace fonts and type presets, text and highlight colours from host palettes, tables as content, and auditHTML (see docs/tasks/TASK_05_SMART_FIELDS_AND_FONTS.md). The bundle exposes the full contract API: version, mount(el, options), renderHTML(content, options?), renderInto(el, content, options?) and auditHTML(content, options?). Images upload through a host-provided upload.handler; the Bubble plugin's handler stores them as private files in the app's own storage (see docs/BUBBLE_UPLOADS.md). The plugin's code and setup guide are in bubble-plugin/. Releases are staged on npm by GitHub Actions and approved by the owner: see docs/RELEASING.md.

Usage

Load by exact version only:

<script src="https://cdn.jsdelivr.net/npm/@merakite/[email protected]/dist/tiptap-editor.js"></script>
const editor = TiptapBubble.mount(el, {
  docId: task.id,
  content: task.description,
  onUpdate: (payload) => { /* save payload.html to the record whose id is payload.docId */ },
})
editor.loadDocument(otherTask.id, otherTask.description) // switch records

const view = TiptapBubble.renderInto(listItemEl, storedValue, { maxHeight: 120 }) // read-only
const html = TiptapBubble.renderHTML(storedValue) // canonical, sanitized HTML; "" when empty

Development

Node 24 (.nvmrc).

| Command | What it does | |---|---| | npm run dev | Local harness: fixtures (/harness/index.html), interactive editor with a mock upload server and a fake host upload handler (/harness/editor.html), renderInto cards (/harness/cards.html), the Bubble plugin on a simulated Bubble page (/harness/bubble.html) | | npm test | Tests (Vitest + jsdom) | | npm run test:watch | Tests in watch mode | | npm run typecheck | tsc --noEmit | | npm run build | Builds dist/tiptap-editor.js (single IIFE, CSS injected by JS) | | npm run test:e2e | Playwright end-to-end tests against the harness (Chromium) |

See docs/TESTING.md for details.

Layout

src/
  index.ts        public API (version, mount, renderHTML, renderInto, auditHTML)
  editor/         mount and the editor handle, toolbar, popovers, uploads, paste
  render-into.ts  read-only renderer (no editor instance)
  main.ts         IIFE entry: installs window.TiptapBubble with the double-load guard
  pipeline.ts     content in → document → canonical HTML out
  formats.ts      host lists: smart fields, fonts, type presets, colour palettes, Quill maps
  colors.ts       colour parsing and OKLab snapping for imported inline colours
  schema/         Tiptap extensions (Quill-compatible task lists and alignment, embed, smart field, font, colour, type preset, table)
  import/         legacy HTML import rules, plain text import, auditHTML
  export/         canonical HTML output
  sanitize/       DOMPurify input and output passes, URL policy
  embeds/         embed provider registry (Loom), iframe builder
  styles/         content and editor CSS, scoped under .ttb-root
bubble-plugin/    Bubble plugin code (pasted into Bubble's plugin editor) and SETUP.md
build/            build-time helpers (CSS injection)
fixtures/         live-descriptions.json (production values) and synthetic/ fixtures
tests/            Vitest suites
e2e/              Playwright suites (run against the harness)
harness/          fixture viewer, editor harness, mock upload server, renderInto cards, Bubble simulation, sample host lists and CSS
scripts/          audit-formatting.mjs: auditHTML over real data exports
docs/design/      toolbar reference and the latest screenshot from the visual test