Registry
First-party registry items and the command that installs each one.
Each row is one item in editor/registry.json. The command copies that item and the items it lists as registry dependencies. This page is generated from the registry. pnpm --dir editor typecheck fails when the two drift.
| Item | Version | Install |
|---|---|---|
editor-ui | 0.1.1 | npx shadcn@latest add https://blockcn.com/r/editor-ui.json |
editor-core | 0.1.15 | npx shadcn@latest add https://blockcn.com/r/editor-core.json |
editor-shell | 0.1.9 | npx shadcn@latest add https://blockcn.com/r/editor-shell.json |
editor-vanilla | 0.1.1 | npx shadcn@latest add https://blockcn.com/r/editor-vanilla.json |
media-blocks | 0.1.5 | npx shadcn@latest add https://blockcn.com/r/media-blocks.json |
excalidraw-block | 0.1.3 | npx shadcn@latest add https://blockcn.com/r/excalidraw-block.json |
table-toolbar | 0.1.4 | npx shadcn@latest add https://blockcn.com/r/table-toolbar.json |
export-menu | 0.1.6 | npx shadcn@latest add https://blockcn.com/r/export-menu.json |
ai-menu | 0.1.3 | npx shadcn@latest add https://blockcn.com/r/ai-menu.json |
collaboration | 0.1.3 | npx shadcn@latest add https://blockcn.com/r/collaboration.json |
math | 0.1.3 | npx shadcn@latest add https://blockcn.com/r/math.json |
columns | 0.1.4 | npx shadcn@latest add https://blockcn.com/r/columns.json |
mentions | 0.1.4 | npx shadcn@latest add https://blockcn.com/r/mentions.json |
toc | 0.1.2 | npx shadcn@latest add https://blockcn.com/r/toc.json |
comments | 0.1.4 | npx shadcn@latest add https://blockcn.com/r/comments.json |
versions | 0.1.4 | npx shadcn@latest add https://blockcn.com/r/versions.json |
suggestions | 0.1.4 | npx shadcn@latest add https://blockcn.com/r/suggestions.json |
link-preview | 0.1.3 | npx shadcn@latest add https://blockcn.com/r/link-preview.json |
pages | 0.1.3 | npx shadcn@latest add https://blockcn.com/r/pages.json |
What each item is
editor-ui
The Radix-based shadcn/ui primitives the blockcn editor is written against (button, popover, dropdown-menu, tooltip, command, ...). They install under components/editor/ui only, so your own components/ui is never overwritten. Themed by the same CSS variables; needs tw-animate-css and shadcn/tailwind.css, which shadcn init sets up.
npx shadcn@latest add https://blockcn.com/r/editor-ui.jsoneditor-core
Framework-free Tiptap/ProseMirror schema, commands, and a DOM slash menu for the core blocks (paragraph, headings, lists, to-dos, quote, callout, toggle, syntax-highlighted code, divider). No React. Math, columns, mentions, and the table of contents are separate items. No media, table, Excalidraw, or AI wiring — install those and compose their extensions and slash categories with createEditorExtensions. The React slash menu and React node views ship with editor-shell.
npx shadcn@latest add https://blockcn.com/r/editor-core.jsoneditor-shell
The composed, installable editor: top-level Editor component, side menu (drag handle + block insert), floating formatting toolbar, and outline nav. Installs editor-core and editor-ui. Export, media, the Excalidraw whiteboard, tables, Ask AI, collaboration, math, columns, mentions, and the table of contents are separate installs. Pass export UI in as a child, for example <ExportMenu /> from export-menu. Extra chrome stays out of the editor until you compose it into Editor.Chrome and register its extensions.
npx shadcn@latest add https://blockcn.com/r/editor-shell.jsoneditor-vanilla
mountBlockcnEditor renders the core editor into a DOM element with a plain toolbar and slash menu. No React, and no editor-shell. Depends on editor-core only.
npx shadcn@latest add https://blockcn.com/r/editor-vanilla.jsonmedia-blocks
Image, video, audio, file, and link block NodeViews plus their shared URL-entry UI, selection toolbar, and slash-menu entries. Supports file upload, paste and drop through createMediaExtensions({ uploadFile }). Contributes mediaExtensions (spread into your extensions array) and MEDIA_SLASH_CATEGORY (pass into createEditorExtensions({ slashCategories })).
npx shadcn@latest add https://blockcn.com/r/media-blocks.jsonexcalidraw-block
Whiteboard/diagram block NodeView backed by @excalidraw/excalidraw, with scene persistence and theme sync. Contributes excalidrawExtensions (spread into your extensions array) and EXCALIDRAW_SLASH_CATEGORY (pass into createEditorExtensions({ slashCategories })).
npx shadcn@latest add https://blockcn.com/r/excalidraw-block.jsontable-toolbar
Notion-style table block: row and column grips that drag to reorder and open a menu (colour, insert, duplicate, clear contents, delete, header row and column), bars that add a row or a column, resizable columns, and per-cell text and background colours. Contributes tableExtensions (spread into your extensions array), TABLE_SLASH_CATEGORY (pass into createEditorExtensions({ slashCategories })), and TableHandleMenu (render it in Editor.Chrome). The older floating TableToolbar is still included for apps that compose it themselves.
npx shadcn@latest add https://blockcn.com/r/table-toolbar.jsonexport-menu
File menu for HTML, Markdown, and Word export, PDF via the browser print dialog, and Markdown, HTML, Word, and clipboard import. Import shows a report before it changes the document. The serializer turns Tiptap JSON into HTML or Markdown. Word and the Word importer load on first use. Addon nodes register their own serializers and drawing export; this item does not import media or Excalidraw.
npx shadcn@latest add https://blockcn.com/r/export-menu.jsonai-menu
Notion-style "Ask AI" panel: a floating action menu (Improve writing, Fix spelling & grammar, Make longer/shorter, Change tone, Translate, Explain, Summarize, Continue writing, Brainstorm, Outline, and a free-text prompt) that streams a completion from a configurable backend endpoint and types it into an in-document preview (rendered markdown) while the editor is locked via editor-core's EditorLock, then lets you Accept (replace the selection, fill the empty line, or insert below) or Reject it — nothing touches the document until Accept. Includes the Ask AI Tiptap extension (open/close state for the panel), a context-wrapped <AskAI /> convenience component, and AI_SLASH_CATEGORY (pass into createEditorExtensions({ slashCategories })) for the slash menu's "Ask AI" item. Wire the formatting toolbar's button via Editor.FormattingToolbar's onAskAI prop. Ships a client only — point endpoint at your own streaming backend (defaults to "/api/ai", plain-text streamed response, POST { action, text?, instruction?, param?, context? }), or pass a transport: plainTextTransport, sseTransport, aiSdkTransport (Vercel AI SDK routes) or your own. Each request carries nearby document text as context.
npx shadcn@latest add https://blockcn.com/r/ai-menu.jsoncollaboration
Multiplayer editing over Yjs + Hocuspocus: shared document sync, remote carets/selections with names, and a presence bar (avatars + connection status). useCollaboration({ url, room, token }) owns the Y.Doc/provider lifecycle and reports connection, read-only and auth-failure state; spread createCollaborationExtensions(session, user) alongside createEditorExtensions({ history: false }) (Collaboration brings its own Yjs-aware undo/redo); seed new rooms with useSeedCollaborativeContent instead of passing content to useEditor. Ships a client only — point url at a Hocuspocus server (any v4 server, or Tiptap Cloud).
npx shadcn@latest add https://blockcn.com/r/collaboration.jsonmath
KaTeX inline math and math blocks. Contributes mathExtensions (spread into your extensions array) and MATH_SLASH_CATEGORY (pass into createEditorExtensions({ slashCategories })). Also registers a Turn into action.
npx shadcn@latest add https://blockcn.com/r/math.jsoncolumns
Notion-style columns: drag a block to another block's side to put them in columns, or beside a column to add one (2–5). A column emptied by a drag or by Backspace disappears, and a lone column unwraps. Drag the gap to resize. Contributes columnsExtensions and COLUMNS_SLASH_CATEGORY. Also registers a Turn into action.
npx shadcn@latest add https://blockcn.com/r/columns.jsonmentions
@ mentions and a : emoji list with categories, skin tones, and recent emoji. Contributes createMentionExtensions({ fetchMentions }) and MENTION_SLASH_CATEGORY. fetchMentions returns { id, label }[]. The default list is a few sample names. Also registers a Turn into action.
npx shadcn@latest add https://blockcn.com/r/mentions.jsontoc
A table-of-contents block that lists headings from collectOutline, the same source as the outline nav. Contributes tocExtensions and TOC_SLASH_CATEGORY. Also registers a Turn into action.
npx shadcn@latest add https://blockcn.com/r/toc.jsoncomments
Comment threads anchored to text: a comment mark, a toolbar button (shown by editor-shell when this is installed), a composer and thread popover (CommentsLayer), and a sidebar (CommentsSidebar). Threads live in a Y.Map on the collaboration document when collaboration is installed, else in memory or your own CommentStore. Contributes createCommentExtensions({ getCurrentUser }).
npx shadcn@latest add https://blockcn.com/r/comments.jsonversions
Snapshots of a document, a history panel (list, read-only preview, diff, name, restore), and a storage interface. Collaborative editors store a Yjs snapshot and need the Y.Doc created with gc: false. Local editors store JSON. Contributes createVersionExtensions({ storage, getCurrentUser }) and HistoryPanel.
npx shadcn@latest add https://blockcn.com/r/versions.jsonsuggestions
Suggesting mode for tracked changes. Insertions and deletions become marks; inserting or deleting a top-level block, and Turn into, are stored on the block. SuggestionModeToggle switches editing, suggesting, and viewing. SuggestionCards lists accept and reject. The comments sidebar shows those cards when both add-ons are installed. Contributes createSuggestionExtensions({ getCurrentUser }).
npx shadcn@latest add https://blockcn.com/r/suggestions.jsonlink-preview
When a lone URL is pasted, a menu offers a link, an inline mention chip, a bookmark card, or an embed when the host is on the media allowlist. linkPreview({ fetchMetadata }) uses the app's metadata. The example server exposes GET /api/unfurl with SSRF checks.
npx shadcn@latest add https://blockcn.com/r/link-preview.jsonpages
An inline page mention and a page link block. Insert with [[ or the slash menu. The app owns the page tree, search, and routing. Titles are cached on the node so a static render still shows them.
npx shadcn@latest add https://blockcn.com/r/pages.json