A Next.js clone of the Typefully thread editor. Velt adds comments on post text through a Tiptap editor, plus presence, a comments sidebar and notifications.
This is a Typefully-style collaborative thread editor built with Next.js and Velt. Users write a post thread in a Tiptap editor and comment on the text together.
The PutThread component configures TiptapVeltComments so comments attach to selected text. The header adds presence, notifications and a comments sidebar, and lets you switch between predefined users.
- Comments on post text:
VeltCommentswith theTiptapVeltCommentsextension from@veltdev/tiptap-velt-comments. - Rich text composer: A Tiptap editor for post content.
- Presence:
VeltPresenceshows live users with avatars. - Notifications:
VeltNotificationsToolprovides in-app notifications. - Comments sidebar:
VeltCommentsSidebarwith aVeltSidebarButton. - Multi-user support: Switch between predefined users with avatars.
- Theme and layout: Dark and light mode, and a navigation sidebar.
| Layer | Tool |
|---|---|
| Framework | Next.js (App Router), React, TypeScript |
| Collaboration | Velt (@veltdev/react, @veltdev/tiptap-velt-comments) |
| Editor | Tiptap |
| UI | Tailwind CSS, Radix UI, Lucide |
| State | Zustand |
| Deployment | Vercel |
- Node.js 16 or later
- pnpm (the original README uses pnpm; npm 8 or later also works)
- A Velt API key from the Velt console
git clone https://github.com/Studio1HQ/typefully-velt.git
cd typefully-velt
pnpm installCreate a .env.local file in the project root. sample.env shows the format.
| Variable | Description |
|---|---|
NEXT_PUBLIC_VELT_ID |
Your Velt API key. |
pnpm run devOpen http://localhost:3000. Other scripts: build, start, lint.
app/ Next.js app directory
components/layout/ app shell and header
components/post/ post and thread components (PutThread)
components/ui/ UI primitives
helper/ users DB
hooks/ toast and theme hooks
lib/ utilities and types
VeltProvider wraps the app. components/layout/header.tsx identifies the selected user with client.identify(...) and sets the Velt document. The original README names the document ID typefully-comments. PutThread.tsx configures TiptapVeltComments with persistVeltMarks: false. Comment bubbles have custom styling.
Troubleshooting:
- API key problems: check
.env.localand that the key is active in the Velt console. - Collaboration not working: check the browser console, network and browser support.
- Build issues: remove
.nextandnode_modules, then reinstall.
- Live demo: the deployed app.
- Velt documentation: SDK guides.
- Velt: product site.
- Tiptap: editor framework.
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