Skip to content
项目

sadmann7/tablecn has 6,377 GitHub stars and 563 forks. GitHot measured +2 stars in 24 hours and +11 in 7 days. Last checked 2026-11-05 20:09 UTC. Last push 2026-11-02.

这些数字如何统计

基于 shadcn/ui 构建的数据表格和数据网格组件,支持排序、筛选、分页、无限滚动和实时协作。

可以做什么

  • Server-side pagination, sorting, and filtering
  • Customizable columns
  • Auto generated filters from column definitions
  • Notion/Airtable like advanced filtering

实测星标增长

24小时
+2
7天
+11
15天
更新延迟
1个月
更新延迟

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

tablecn

Data table and data grid components built with shadcn/ui, featuring sorting, filtering, pagination, infinite scrolling, and real-time collaboration.

tablecn

Documentation

See the documentation to get started.

Tech Stack

Features

  • Server-side pagination, sorting, and filtering
  • Customizable columns
  • Auto generated filters from column definitions
  • Notion/Airtable like advanced filtering
  • Linear like filter menu for command palette filtering
  • Action bar on row selection
  • Infinite scrolling with virtualization
  • Real-time collaboration

Running Locally

Quick Setup (with Docker)

  1. Clone the repository

    git clone https://github.com/sadmann7/tablecn
    cd tablecn
    
  2. Copy the environment variables

    cp .env.example .env
    
  3. Run the setup

    pnpm ollie
    

    This installs dependencies, starts the Docker PostgreSQL instance, pushes the schema, and seeds sample data.

Manual Setup

  1. Clone the repository

    git clone https://github.com/sadmann7/tablecn
    cd tablecn
    
  2. Install dependencies

    pnpm install
    
  3. Set up environment variables

    cp .env.example .env
    

    Update .env with your database credentials.

  4. Start the database and dev server

    pnpm 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:multiplayer

This starts the Next.js dev server and the PartyServer worker (via wrangler dev) concurrently. Each room keeps its rows in its Durable Object's storage and seeds them the first time it's opened, so no database is needed.

Rooms are temporary: each one resets to fresh seed rows 10 minutes after its last user leaves. When two people edit the same cell at once, the last write wins.

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:multiplayer

Set 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.

探索相关项目