A Next.js clone of a Linear issue page with a Tiptap rich text composer, using Velt inline comments, an inline comments section, a sidebar, presence and notifications.
A Linear-style issue page built with Next.js, Tiptap and Velt. Users write in a rich text composer, comment inline on selected text, discuss in a comment section on the issue, and see who is online. A live demo is at linear-velt.vercel.app.
Velt provides the provider, the Tiptap comments integration, an inline comments section, the comments sidebar, presence and notifications.
- Rich text composer: Tiptap editor with colors, highlight, images, links, text alignment, underline and placeholder.
- Inline comments:
@veltdev/tiptap-velt-commentscomments on selected text, withuseCommentAnnotations. - Inline comments section:
VeltInlineCommentsSectionon the issue page. - Comments sidebar:
VeltCommentsSidebarwithVeltSidebarButton. - Presence and notifications:
VeltPresenceandVeltNotificationsToolin the project header. - Multi-user switching: Switch between predefined users with avatars.
- Dark and light theme: Theme state is passed to the Velt components.
- Navigation sidebar: Layout, project and editor components styled with Radix primitives.
| Layer | Tool |
|---|---|
| Framework | Next.js (App Router), TypeScript |
| Editor | Tiptap |
| Collaboration | Velt (@veltdev/react, @veltdev/tiptap-velt-comments) |
| UI | React, Tailwind CSS, Radix UI |
| State | Zustand |
| Icons | Lucide React |
| Deployment | Vercel |
- Node.js 16 or newer
- npm 8 or newer (the README uses pnpm)
- A Velt API key from the Velt dashboard
git clone https://github.com/Studio1HQ/linearstyleEditor-velt.git
cd linearstyleEditor-velt
pnpm installCreate a .env.local file in the project root (see sample.env).
| Variable | Description |
|---|---|
NEXT_PUBLIC_VELT_ID |
Your Velt API key, from the Velt dashboard. |
pnpm run devOpen http://localhost:3000. Other scripts: build, start and lint.
The project header initialises Velt: it identifies the selected user and sets the document to linearStyleEditor. It was built against Velt SDK 4.5.0-beta.14.
linearstyleEditor-velt/
├── app/ # Next.js app directory
├── components/
│ ├── (editor)/ # Linear-style editor component
│ ├── layout/ # App shell components
│ ├── project/ # Project header and views
│ └── ui/ # UI components
├── helper/ # Predefined users
├── hooks/ # Toast and theme hooks
├── lib/ # Utilities and types
└── styles/ # Global styles
Troubleshooting:
- Velt key problems: Check the key is set in
.env.localand active in the Velt dashboard. - Collaboration not working: Check the browser console, your network and that you use a supported browser.
- Build issues: Delete
.nextandnode_modules, runpnpm installagain and check your Node.js version.
- Velt documentation: Getting started and API reference.
- Velt: Product site.
- Velt dashboard: Create projects and API keys.
- Velt on GitHub: Velt open source repos.
- Tiptap: Editor docs.
- Radix UI: UI primitives docs.
Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Velt.
Browse more open-source examples at github.com/Studio1HQ.
studio1hq.com · Technical content, docs, video and DevRel for devtools