Skip to content

About

Google Sheets-style AG Grid with Velt cell comments, @mention autocomplete and notifications. Next.js.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Google Sheets-Style Grid with Velt Comments: A spreadsheet-style AG Grid with cell comments and notifications

Google Sheets-Style Grid with Velt Comments

A spreadsheet-style AG Grid with cell comments and notifications

A Next.js AG Grid spreadsheet where Velt popover comments are attached to cells, with a custom mention autocomplete and a notification bell in the header.


Built by Studio1 Built with Velt Live demo

Velt docs  ·  Velt  ·  More examples  ·  studio1hq.com


Overview

A spreadsheet in the style of Google Sheets, built with Next.js and AG Grid, with Velt comments on cells. Users click a cell, add a comment in a popover, and mention teammates with a custom autocomplete. A notification bell in the header surfaces comment activity. A live demo is at google-sheet-comment.vercel.app.

Spreadsheet with Velt cell comments

Features

  • Cell comments: VeltCommentTool and VeltComments in popover mode attach comments to cells.
  • Custom mention autocomplete: VeltComments runs with customAutocompleteSearch so you control the mention list.
  • Notifications: VeltNotificationsTool in the header.
  • Spreadsheet grid: AG Grid for the table, with TanStack Table and Virtual also installed.
  • Multi-user switching: A user switcher in the header, backed by a Zustand store and predefined users.

Tech stack

Layer Tool
Framework Next.js (App Router, Turbopack dev), TypeScript
Collaboration Velt (@veltdev/react)
Data grid AG Grid
UI Tailwind CSS, Radix UI, Lucide
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-sheet-comment.git
cd google-sheet-comment
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 wraps the app in VeltProvider. app/page.tsx sets the Velt document with useSetDocument, renders the AgGridReact grid, and mounts VeltComments with popoverMode and customAutocompleteSearch. components/header.tsx identifies the current user and shows VeltNotificationsTool. helper/userdb.ts holds the demo users.

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 AG Grid with Velt cell comments, @mention autocomplete and notifications. Next.js.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages