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.
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.
- Cell comments:
VeltCommentToolandVeltCommentsin popover mode attach comments to cells. - Custom mention autocomplete:
VeltCommentsruns withcustomAutocompleteSearchso you control the mention list. - Notifications:
VeltNotificationsToolin 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.
| 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 |
- Node.js 18 or newer
- npm, yarn, pnpm or bun
- A Velt API key from the Velt console
git clone https://github.com/Studio1HQ/google-sheet-comment.git
cd google-sheet-comment
npm installCreate a .env.local file in the project root.
| Variable | Description |
|---|---|
NEXT_PUBLIC_VELT_ID |
Your Velt API key, from the Velt console. |
npm run devOpen http://localhost:3000. Other scripts: npm run build, npm run start, npm run lint.
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.
- Velt documentation: SDK guides and API reference.
- Velt: Product site.
- AG Grid docs: React data grid reference.
Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Velt.
Browse more open-source examples at github.com/Studio1HQ.
studio1hq.com · Technical content, docs, video and DevRel for devtools
