Skip to content

About

Google Sheets-style spreadsheet with TanStack Table and Velt cell comments, bubbles and presence. Next.js.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Google Sheets Clone with Velt: A Google Sheets-style spreadsheet app with Velt cell comments and presence

Google Sheets Clone with Velt

A Google Sheets-style spreadsheet app with Velt cell comments and presence

A Next.js spreadsheet app with a files list and per-sheet pages built on TanStack Table, using Velt for cell comments, comment bubbles and presence.


Built by Studio1 Built with Velt Live demo

Velt docs  ·  Velt  ·  More examples  ·  studio1hq.com


Overview

A Google Sheets-style spreadsheet app built with Next.js and TanStack Table, with Velt for collaboration. It has a files page listing spreadsheets, a filter bar, and a sheet page where users comment on cells and see who else is viewing. A live demo is at google-sheets-velt.vercel.app.

Features

  • Cell comments: VeltCommentTool and VeltComments in popover mode, with the pin highlighter turned off.
  • Comment bubbles: VeltCommentBubble marks cells that already have comments.
  • Presence: VeltPresence in the header shows who is active.
  • Spreadsheet grid: TanStack Table and TanStack Virtual, with react-window for large sheets.
  • Files list: A files section with file rows and a filter bar, and a route per spreadsheet (/spreadsheets/[id]), where the sheet ID becomes the Velt document ID.
  • Multi-user switching: A user store for demo users.
  • Generated data: Sheet content is created with @faker-js/faker in a Zustand store.

Tech stack

Layer Tool
Framework Next.js (App Router, Turbopack dev), TypeScript
Collaboration Velt (@veltdev/react)
Table TanStack Table, TanStack Virtual, react-window
UI Tailwind CSS, Radix UI, Lucide, Sonner
State Zustand
Deployment Vercel

Getting started

Prerequisites

  • Node.js 18 or newer
  • npm, yarn, pnpm or bun
  • A Velt API key from the Velt console

Installation

git clone https://github.com/Studio1HQ/google-sheets.git
cd google-sheets
npm install

Environment variables

Create a .env.local file in the project root.

Variable Description
NEXT_PUBLIC_VELT_ID Your Velt API key, from the Velt console.

Run

npm run dev

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

How it works

├── app/
│   ├── layout.tsx                         # VeltProvider
│   ├── page.tsx                           # Files page
│   ├── features/                          # Header (presence, user switcher), files list, filters
│   └── spreadsheets/[id]/SpreadsheetsPage.tsx   # Grid, VeltComments, VeltCommentTool, VeltCommentBubble
├── lib/                                   # Hooks, sheet data, utilities
└── store/                                 # Sheet store (faker data) and user store

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

Google Sheets-style spreadsheet with TanStack Table and Velt cell comments, bubbles and presence. Next.js.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages