Skip to content

Supabase + shadcn/ui + TanStack Table

A demo app that fetches and filters Supabase rows on the server and shows them in a TanStack Table.

supabase-shadcn-database-example.vercel.app

Supabase + shadcn/ui + TanStack Table website screenshot
Added
GitHub stars
43
License
MIT
Price
Free

About

About Supabase + shadcn/ui + TanStack Table

This example project shows how to read data from a Supabase PostgreSQL table and display it in a TanStack Table styled with shadcn/ui. It handles the parts that trip people up: loading only the current page of rows, calculating the total table size and applying a basic filter. The author extended shadcn/ui's data table example into a basic-data-table component, and the Supabase query and filter logic live in actions.ts.

To run it, clone the repository, run npm install, add your Supabase project URL and anon key to .env.local, set up row-level security and a table matching the demo schema of name, company, age and date. The project is MIT licensed. It suits developers wiring a server-rendered admin table to Supabase.

Supabase + shadcn/ui + TanStack Table features

6 features

  • Server-side fetching from Supabase
  • Server-side filtering
  • Paged loading with total row count
  • TanStack Table with shadcn/ui styling
  • Extended data table component
  • Demo schema generated with FakerJS

Install Supabase + shadcn/ui + TanStack Table

1 command

Terminal

$ git clone https://github.com/thisisfel1x/supabase-shadcn-database-example.git

What you can build with Supabase + shadcn/ui + TanStack Table

3 use cases

  • Showing database rows in an admin screen with paging
  • Adding filters to a Supabase-backed table
  • Learning how to load only the visible page of data

Pricing

Ship it with Pro

The directory is free. Pro adds 6,000+ blocks, 14 premium templates and the MCP server, so your AI editor installs them for you.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What Supabase + shadcn/ui + TanStack Table is, how to install it, its license and its alternatives.

4.9 out of 5 from 150+ developers

Found your stack? Ship it.

6,000+ blocks, premium templates and MCP in every Pro plan. The directory stays free.

Get Pro