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

@boceto/tiptap

v0.3.2

Published

TipTap node + extension for embedding Boceto wireframes (with cross-block component context) in any TipTap editor.

Readme

@boceto/tiptap

TipTap node + extension for embedding Boceto wireframes in any TipTap editor.

Cross-block component context is preserved: define component pricing-card(...) in one block, reference element pricing-card … in any other block in the same document, and both render correctly — whether you're in read mode or actively editing.

Install

pnpm add @boceto/tiptap @tiptap/core @tiptap/react react

Quick start (React)

import { useEditor, EditorContent } from '@tiptap/react'
import StarterKit from '@tiptap/starter-kit'
import { BocetoBlock, BocetoContext, BocetoIcon } from '@boceto/tiptap'
import { withReactNodeView } from '@boceto/tiptap/react'

const editor = useEditor({
  extensions: [StarterKit, withReactNodeView(BocetoBlock), BocetoContext],
  content: '<p>Hello</p><pre><code class="language-boceto">component pricing-card(title) ...end</code></pre>',
})

// Toolbar button:
<button onClick={() => editor?.chain().focus().insertBocetoBlock().run()}>
  <span dangerouslySetInnerHTML={{ __html: BocetoIcon }} />
</button>

Vanilla TipTap (no React)? Drop the /react import — you can supply your own addNodeView on BocetoBlock that mounts <boceto-view> / <boceto-edit> directly.

What's in the box

  • BocetoBlock — atomic TipTap node that stores a Boceto fence (code + optional page attrs). Renders to <pre><code class="language-boceto[:page]">…</code></pre>.
  • BocetoContext — TipTap extension that watches the doc for bocetoBlock nodes, joins their source as a single multi-fence DSL string, and exposes it on editor.storage.bocetoContext.source. Node views read it to seed <boceto-edit>'s and <boceto-view>'s imports prop, so component definitions from sibling blocks resolve.
  • BocetoIcon — Boceto's brand B-mark as an inline SVG string. Drop into toolbar buttons via dangerouslySetInnerHTML (React) or innerHTML (vanilla DOM).
  • React node view (default): click a Boceto block to enter edit mode (full <boceto-edit> + palette + inspector). Click "Done" to return to read mode.

Gotcha: palette + inspector

The default React node view mounts all three boceto custom elements together — <boceto-edit>, <boceto-palette for=…>, and <boceto-inspector for=…>. If you build a custom node view, do the same: authoring without the palette/inspector is unusable.

If you're hosting the editor outside a TipTap context, reach for BocetoEditFull from @boceto/react — it composes the three elements into a single component with a stable id wired through.

License

MIT.