ScriptsApr 3, 2026·2 min read

Tiptap — Headless Rich Text Editor Framework

Build custom rich text editors with a modular, extensible framework on ProseMirror. Works with React, Vue, and more. 36K+ stars.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

npm install @tiptap/core @tiptap/pm @tiptap/starter-kit @tiptap/react
import { useEditor, EditorContent } from '@tiptap/react';
import StarterKit from '@tiptap/starter-kit';

function MyEditor() {
    const editor = useEditor({
        extensions: [StarterKit],
        content: '<p>Hello World!</p>',
    });

    return <EditorContent editor={editor} />;
}

With AI autocomplete:

npm install @tiptap/extension-ai
import AI from '@tiptap/extension-ai';

const editor = useEditor({
    extensions: [
        StarterKit,
        AI.configure({ provider: 'openai', apiKey: '...' }),
    ],
});

Intro

Tiptap is the leading headless rich text editor framework with 36,000+ GitHub stars, built on ProseMirror. "Headless" means full control over the UI — Tiptap handles the editing logic while you design the interface. With 100+ extensions (tables, code blocks, collaboration, mentions, AI autocomplete), framework adapters (React, Vue, Svelte, Angular), and a modular architecture, Tiptap powers editors in Notion-like apps, CMS platforms, email builders, and AI writing tools. Used by GitLab, Substack, and thousands of products.

Works with: React, Vue, Svelte, Angular, vanilla JS, any frontend framework. Best for developers building custom content editors, AI writing tools, or collaborative editing features. Setup time: under 3 minutes.


Tiptap Architecture

Headless = Full Control

Tiptap (logic layer)
  ├─ Document model (ProseMirror)
  ├─ Extensions (100+)
  ├─ Commands & keyboard shortcuts
  └─ Event system

Your UI (presentation layer)
  ├─ Custom toolbar
  ├─ Custom bubble menu
  ├─ Custom floating menu
  └─ Your design system

Extensions (100+)

Category Extensions
Basics Bold, Italic, Underline, Strike, Code
Blocks Heading, Paragraph, Blockquote, CodeBlock, HorizontalRule
Lists BulletList, OrderedList, TaskList, ListItem
Tables Table, TableRow, TableCell, TableHeader
Media Image, YouTube, Iframe
Marks Link, Highlight, TextStyle, Color, Subscript, Superscript
Collaboration Collaboration (Y.js), CollaborationCursor
AI AI autocomplete, AI commands
Advanced Mention, Placeholder, CharacterCount, Typography, UniqueID

Custom Extensions

import { Extension } from '@tiptap/core';

const MyExtension = Extension.create({
    name: 'myExtension',
    addCommands() {
        return {
            insertAIBlock: () => ({ commands }) => {
                return commands.insertContent({
                    type: 'aiBlock',
                    content: [{ type: 'text', text: 'AI generated...' }],
                });
            },
        };
    },
});

Real-Time Collaboration

import Collaboration from '@tiptap/extension-collaboration';
import CollaborationCursor from '@tiptap/extension-collaboration-cursor';
import * as Y from 'yjs';
import { WebsocketProvider } from 'y-websocket';

const ydoc = new Y.Doc();
const provider = new WebsocketProvider('ws://localhost:1234', 'doc-id', ydoc);

const editor = useEditor({
    extensions: [
        StarterKit.configure({ history: false }),
        Collaboration.configure({ document: ydoc }),
        CollaborationCursor.configure({ provider }),
    ],
});

Framework Adapters

# React
npm install @tiptap/react

# Vue
npm install @tiptap/vue-3

# Svelte
npm install @tiptap/svelte

# Angular
npm install @tiptap/angular

FAQ

Q: What is Tiptap? A: Tiptap is a headless rich text editor framework with 36,000+ GitHub stars built on ProseMirror. 100+ extensions, framework adapters for React/Vue/Svelte/Angular, and full UI control.

Q: How is Tiptap different from Quill or Slate? A: Tiptap is headless (you control the UI), built on ProseMirror (proven document model), and has the largest extension ecosystem (100+). Quill is opinionated with a fixed UI. Slate gives lower-level control but requires more work.

Q: Is Tiptap free? A: The core library is open-source under MIT. Tiptap also offers paid extensions (collaboration server, AI features) and a cloud service.


🙏

Source & Thanks

Created by Ueberdosis. Licensed under MIT.

tiptap — ⭐ 36,000+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets