Skip to content

About

Linear-style issue page with Tiptap editor and Velt inline comments, presence and notifications. Next.js.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Linear-Style Issue Page with Velt: A Linear-style issue page with a Tiptap editor and Velt comments

Linear-Style Issue Page with Velt

A Linear-style issue page with a Tiptap editor and Velt comments

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.


Built by Studio1 Built with Velt Live demo

Velt docs  ·  Velt  ·  More examples  ·  studio1hq.com


Overview

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.

Features

  • Rich text composer: Tiptap editor with colors, highlight, images, links, text alignment, underline and placeholder.
  • Inline comments: @veltdev/tiptap-velt-comments comments on selected text, with useCommentAnnotations.
  • Inline comments section: VeltInlineCommentsSection on the issue page.
  • Comments sidebar: VeltCommentsSidebar with VeltSidebarButton.
  • Presence and notifications: VeltPresence and VeltNotificationsTool in 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.

Tech stack

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

Getting started

Prerequisites

  • Node.js 16 or newer
  • npm 8 or newer (the README uses pnpm)
  • A Velt API key from the Velt dashboard

Installation

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

Environment variables

Create 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.

Run

pnpm run dev

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

How it works

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.local and active in the Velt dashboard.
  • Collaboration not working: Check the browser console, your network and that you use a supported browser.
  • Build issues: Delete .next and node_modules, run pnpm install again and check your Node.js version.

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

Linear-style issue page with Tiptap editor and Velt inline comments, presence and notifications. Next.js.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages