Notion-like WYSIWYG editor with AI-powered completions and real-time collaboration in Vue & Nuxt. Built with Nuxt UI and TipTap, showcasing the powerful Editor component with advanced editing capabilities.
- Rich Text Editing - Full formatting support with headings, lists, blockquotes, and code blocks
- Tables - Insert and edit tables with row/column controls and cell selection
- Bubble & Fixed Toolbars - Contextual toolbars that adapt to your selection
- Drag Handle - Easily reorder, duplicate, or delete content blocks
- Slash Commands - Type
/to access quick insertion commands - Image Upload - Custom image upload node powered by NuxtHub with Vercel Blob
- Mentions -
@mentionsupport with user suggestions - Emoji Picker - Full GitHub emoji set with
:emoji:syntax - Markdown Support - Content type set to markdown for easy serialization
- AI-powered Features - Inline completions and text transformations powered by Vercel AI SDK
- Real-time Collaboration - Optional collaborative editing powered by PartyKit
npm create nuxt@latest -- -t ui/editorMake sure to install the dependencies:
pnpm installThis template includes AI-powered writing assistance using the Vercel AI SDK and its useCompletion composable for streaming text generation with support for multiple providers through Vercel AI Gateway. When deployed on Vercel, the AI Gateway is configured automatically.
AI Features:
- Inline Completions - Trigger AI suggestions with
⌘J, accept withTab - Continue Writing - Extend your content from the cursor position
- Fix Spelling & Grammar - Automatically correct selected text
- Extend/Reduce Text - Make selected content longer or shorter
- Simplify - Rewrite complex text in simpler terms
- Summarize - Generate a summary of selected content
- Translate - Translate selected text to English, French, Spanish, or German
For local development, set your API key in .env:
AI_GATEWAY_API_KEY=<your-vercel-ai-gateway-api-key>Tip
With Vercel AI Gateway, you don't need individual API keys for OpenAI, Anthropic, etc. It provides a unified API to access hundreds of models through a single endpoint with automatic load balancing, fallbacks, and spend monitoring.
This template uses NuxtHub Blob for image uploads, which supports multiple storage drivers:
- Local filesystem (default for development, stored in
.data/blob) - Vercel Blob (auto-configured when deployed to Vercel)
- Cloudflare R2 (when deployed to Cloudflare)
- Amazon S3 (with manual configuration)
For Vercel Blob, assign a Blob Store to your project from the Vercel dashboard (Project → Storage), then set the token for local development:
BLOB_READ_WRITE_TOKEN=<your-vercel-blob-token>Note
See the NuxtHub Blob documentation for configuring other storage drivers.
This template includes optional real-time collaboration powered by Y.js, a CRDT framework for building collaborative applications. This example uses PartyKit as the Y.js provider, but you can swap it for alternatives like Liveblocks or Tiptap Collaboration.
To enable collaboration with PartyKit:
- Create and deploy a PartyKit server following the PartyKit Quickstart:
npm create partykit@latest
npx partykit deploy- Set your PartyKit host in
.env:
NUXT_PUBLIC_PARTYKIT_HOST=your-project.username.partykit.dev- Add
?room=your-room-nameto the URL to collaborate. All users with the same room name will edit together in real-time.
Without the environment variable or
?room=parameter, the editor works standalone without collaboration.
Start the development server on http://localhost:3000:
pnpm devBuild the application for production:
pnpm buildLocally preview production build:
pnpm previewCheck out the deployment documentation for more information.
Install Renovate GitHub app on your repository and you are good to go.