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.
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.
- Cell comments:
VeltCommentToolandVeltCommentsin popover mode, with the pin highlighter turned off. - Comment bubbles:
VeltCommentBubblemarks cells that already have comments. - Presence:
VeltPresencein the header shows who is active. - Spreadsheet grid: TanStack Table and TanStack Virtual, with
react-windowfor 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/fakerin a Zustand store.
| 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 |
- 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-sheets.git
cd google-sheets
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 # 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
- Velt documentation: SDK guides and API reference.
- Velt: Product site.
- TanStack Table: Table library docs.
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