Skip to content

About

Collection of example demo apps built using Velt

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

103 Commits

Folders and files

Repository files navigation

Velt Examples Collection: Six demo apps showing Velt comments, presence and collaboration

Velt Examples Collection

Six demo apps showing Velt comments, presence and collaboration

A collection of six standalone apps built with Velt: a Tiptap email editor, a video player, an email composer, a data grid, a spreadsheet and an inventory list.


Built by Studio1 Built with Velt Live demo

Velt docs  ·  Velt  ·  More examples  ·  studio1hq.com


Overview

This repo collects standalone example apps built with Velt. Each folder is its own project with its own dependencies, README and environment setup, so you can copy the one closest to what you are building.

Example Folder Stack What it shows
Tiptap email editor TiptapEmailEditor React, Vite Inline comments on rich text in an email composer.
Video player VideoPlayer React, Vite Comments on video with VeltVideoPlayer, presence and dark mode.
Customer.io email composer customerio Next.js Tiptap composer with comments, notifications and user switching.
Data grid datagrid Next.js Presence and comments on cells of a sortable grid.
Spreadsheet spreadsheet Next.js Presence and comments on a spreadsheet with cell selection.
StockSync inventory StockSync Next.js Inline comments on an inventory management list.

Features

  • Inline comments on rich text: TiptapVeltComments with VeltComments in the Tiptap examples.
  • Video comments: VeltVideoPlayer for time-anchored comments on a video.
  • Cell-level comments: VeltCommentTool and VeltComments on data grid and spreadsheet cells.
  • Presence and cursors: VeltPresence and VeltCursor in the grid and spreadsheet examples.
  • Notifications and sidebar: VeltNotificationsTool, VeltCommentsSidebar and VeltSidebarButton.
  • Inline comment sections: VeltInlineCommentsSection in StockSync.
  • Multi-user testing: Predefined or generated users so one person can test collaboration.
  • Dark and light themes: Supported across the examples.

Tech stack

Layer Tool
Frameworks Next.js (datagrid, spreadsheet, customerio, StockSync), React 18 with Vite (TiptapEmailEditor, VideoPlayer)
Collaboration Velt (@veltdev/react, @veltdev/tiptap-velt-comments)
Editor Tiptap
UI Tailwind CSS, shadcn/ui, MUI (datagrid), Lucide
Language TypeScript

Getting started

Prerequisites

  • Node.js 18 or later
  • npm 8 or later, or yarn (the spreadsheet example uses pnpm)
  • A Velt API key from the Velt console

Installation

git clone https://github.com/Studio1HQ/Velt-Examples.git
cd Velt-Examples
cd TiptapEmailEditor   # or VideoPlayer, customerio, datagrid, spreadsheet, StockSync
npm install            # spreadsheet: pnpm install

Environment variables

Each example reads its own variable. Check the example's folder for .env.sample.

Variable Used by Description
VITE_VELT_API_KEY TiptapEmailEditor, VideoPlayer Velt API key. Copy .env.sample to .env.
VITE_AUTH_TOKEN VideoPlayer Velt auth token read by the video player example.
NEXT_PUBLIC_VELT_API_KEY datagrid, spreadsheet, StockSync Velt API key.
NEXT_PUBLIC_VELT_ID customerio Velt API key. Put it in .env.local.

Run

npm run dev       # start the dev server
npm run build     # production build
npm run preview   # preview the build (Vite examples)
npm run lint

Vite examples run at http://localhost:5173, Next.js examples at http://localhost:3000.

How it works

The Vite examples (TiptapEmailEditor, VideoPlayer) share a layout: src/services/AuthComponent.tsx identifies the user, src/services/YourDocument.tsx sets the Velt document, src/config.ts holds config and src/utils/constant.tsx holds constants. TiptapEmailEditor adds BubbleMenu, Toolbar and EmailComposer components and wires TiptapVeltComments. VideoPlayer renders VeltVideoPlayer with a Topbar showing presence and a theme context.

The Next.js examples wrap the app in a VeltProvider wrapper component, identify the user and set the document with VeltInitializeUser and VeltInitializeDocument (datagrid, spreadsheet). StockSync shows inventory with inline comments, quick filters and metric cards.

These examples are for demonstration and may not cover production scenarios. See the Velt docs for full guidance.

Resources

License

Released under the MIT License.



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

Collection of example demo apps built using Velt

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages