Technical Documentation: sadmann7/tablecn
โน๏ธ Provenance: Standard README.md ยท CodeWiki Reference ยท Recency: Active (< 180 days)
[tablecn](https://tablecn.com)
Data table and data grid components built with shadcn/ui, featuring sorting, filtering, pagination, infinite scrolling, and real-time collaboration.
Documentation
See the documentation to get started.
Tech Stack
- Framework: Next.js
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Table: TanStack Table
- Reactive store: TanStack DB
- Database: PostgreSQL
- ORM: Drizzle ORM
- Validation: Zod
- Multiplayer: PartyKit
Features
- Server-side pagination, sorting, and filtering
- Customizable columns
- Auto generated filters from column definitions
-
Notion/Airtablelike advanced filtering -
Linearlike filter menu for command palette filtering - Action bar on row selection
- Infinite scrolling with virtualization
- Real-time collaboration
Running Locally
Quick Setup (with Docker)
Clone the repository
bashgit clone https://github.com/sadmann7/tablecn cd tablecnCopy the environment variables
bashcp .env.example .envRun the setup
bashpnpm ollieThis installs dependencies, starts the Docker PostgreSQL instance, pushes the schema, and seeds sample data.
Manual Setup
Clone the repository
bashgit clone https://github.com/sadmann7/tablecn cd tablecnInstall dependencies
bashpnpm installSet up environment variables
bashcp .env.example .envUpdate
.envwith your database credentials.Start the database and dev server
bashpnpm db:start # start the PostgreSQL container pnpm db:setup # push schema and seed data pnpm dev # start the Next.js dev server
Multiplayer
To run the multiplayer demo locally:
pnpm dev:multiplayerThis starts the Next.js dev server and the PartyServer worker (via wrangler dev) concurrently.
Deployment
Follow the deployment guides for Vercel, Netlify, and Docker.
The multiplayer demo runs on PartyServer as a Cloudflare Worker with Durable Objects, deployed separately to your Cloudflare account:
pnpm deploy:multiplayerSet NEXT_PUBLIC_PARTYKIT_HOST in your deployment environment variables to the worker's host (for example tablecn.<your-subdomain>.workers.dev) after deploying.
Credits
- shadcn/ui - For the initial implementation of the data table.
--- METRICS ---
- Files Extracted: 1
- Estimated Token Budget: ~817 tokens
- Recency Window: Active (< 180 days)
- Canonical Reference: https://codewiki.google/github.com/sadmann7/tablecn