MIT License

项目介绍

sadmann7/tablecn 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 6.4k 个 Star、562 次 Fork。

仓库全名
sadmann7/tablecn
开源许可证
MIT License
Star 数
6.4k
Fork 数
562
未关闭 Issue
38

README 摘要

tablecn 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: PartyServer on…

完整内容见 GitHub 原始 README 或本页 。

常见问题

tablecn 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 6.4k 个 Star。

tablecn 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 tablecn 的源码?

可以直接克隆仓库:git clone https://github.com/sadmann7/tablecn.git,默认分支为 main;安装与运行步骤见仓库 README。

tablecn 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 38 个未关闭 Issue;Star 数为 6.4k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

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

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
7522
价值分
3994
活跃状态
活跃

语言占比

CSS
JavaScript
TypeScript

README

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.

评论

暂无评论