Skip to content

About

Typefully clone with Velt comments, presence and notifications. Next.js, Tiptap, Tailwind.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Typefully-Style Editor with Velt: A Typefully-style thread editor with live comments and presence

Typefully-Style Editor with Velt

A Typefully-style thread editor with live comments and presence

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.


Built by Studio1 Built with Velt Live demo

Velt docs  ·  Velt  ·  More examples  ·  studio1hq.com


Overview

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.

Features

  • Comments on post text: VeltComments with the TiptapVeltComments extension from @veltdev/tiptap-velt-comments.
  • Rich text composer: A Tiptap editor for post content.
  • Presence: VeltPresence shows live users with avatars.
  • Notifications: VeltNotificationsTool provides in-app notifications.
  • Comments sidebar: VeltCommentsSidebar with a VeltSidebarButton.
  • Multi-user support: Switch between predefined users with avatars.
  • Theme and layout: Dark and light mode, and a navigation sidebar.

Tech stack

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

Getting started

Prerequisites

  • 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

Installation

git clone https://github.com/Studio1HQ/typefully-velt.git
cd typefully-velt
pnpm install

Environment variables

Create a .env.local file in the project root. sample.env shows the format.

Variable Description
NEXT_PUBLIC_VELT_ID Your Velt API key.

Run

pnpm run dev

Open http://localhost:3000. Other scripts: build, start, lint.

How it works

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.local and that the key is active in the Velt console.
  • Collaboration not working: check the browser console, network and browser support.
  • Build issues: remove .next and node_modules, then reinstall.

Resources



Studio1

Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Velt.
Browse more open-source examples at github.com/Studio1HQ.

Website Book a call X LinkedIn

studio1hq.com · Technical content, docs, video and DevRel for devtools

About

Typefully clone with Velt comments, presence and notifications. Next.js, Tiptap, Tailwind.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages