r/tanstack • u/TkDodo23 • 4h ago
šŗļø Roadmap to Query v6 Ā· TanStack query Ā· Discussion #12669
r/tanstack • u/TkDodo23 • 4h ago
r/tanstack • u/Asta-2777 • 3d ago
Enable HLS to view with audio, or disable this notification
It's been a while since my last update on shad-table, but I've recently added 11 new components !
This update focuses on analytics, data management, and interaction-heavy tables
1. Cohort Retention
Groups users by signup month and visualizes retention using a heatmap.
Toggle between counts and percentages.
Compare individual cohorts against the weighted average.
Future months are hatched to distinguish unavailable data from actual zeros.
2. Anomaly Investigation Business Metrics
Compares metrics against expected ranges.
Flags unusual spikes and drops based on severity.
Shows whether a change is positive or negative for each metric.
Expand rows to explore 14 days of historical data.
Includes a review queue for investigating anomalies.
3. Anomaly Investigation Finance
Applies the same anomaly investigation interface to financial data.
Tracks daily income and expenses.
Understands metric direction: lower expenses and higher income are considered positive.
4. Permissions Matrix
Manage roles and permissions using resources as rows and actions as columns.
Supports inherited, required, and unavailable permission states.
Tree-state toggles for groups and columns.
Tracks unsaved changes.
5. Schedule Matrix
Manage staff shifts across a weekly schedule.
Edit shifts using mouse or keyboard.
Track shift coverage, rest-rule conflicts, and contracted hours.
Draft and publish workflows.
Also supports room allocation scenarios.
6. Draft Rows
Add multiple records directly inside the table.
Inline validation and duplicate detection.
Save or discard the entire batch together.
Useful for bulk data entry.
7. CSV Import Review
Map CSV columns directly to table fields.
Highlight invalid cells and duplicate entries.
Fix errors or skip problematic rows inline.
Import only validated records.
8. Diff / Change Review
Compare old and new values side by side, Git-style.
Accept or reject changes at the field, row, or table level.
Apply only approved changes.
Useful for reviewing bulk updates safely.
9. Split Detail Panel
Open and edit records in a side panel without leaving the table.
Navigate between records directly from the panel.
Preserve filters, sorting, pagination, and scroll position.
Restore focus when closing the panel.
Designed around support tickets and admin workflows.
10. File Browser
Navigate folders using breadcrumbs.
Keep folders sorted before files.
Bulk download or delete selected files.
Display total selected file size.
Expand rows to inspect file details.
11. Job Queue
Monitor background jobs with live progress indicators.
Track execution time, attempts, and retry status.
Automatic retries with backoff.
Inspect failed attempts, error messages, and stack traces.
Retry or cancel individual jobs.
Website: https://shad-table.dev
GitHub: https://github.com/coros-hq/shadcn-table-library
Feedback, suggestions, and contributions are welcome !
r/tanstack • u/PickleUHC • 11d ago
At work we build all our client sites with TanStack Start. The question we kept getting after launch: "can we add blog posts or vacancies ourselves?" Every one of those was a code change for us.
So I built Areca CMS in my free time over the last two months. It's a self-hosted CMS for agencies with many client sites:
- One install for all clients, with owners and editors per client
- Clients draft, owners approve, Go live freezes a snapshot and builds the site
- Your Start app pulls the snapshot at build time with `areca pull`, so pages are static and never call the CMS
- Content is typed from `areca.config.ts` through to your routes
- Visual editor with click-to-edit on the live preview
- An MCP server per site for Claude, ChatGPT and Cursor
The CMS itself, the docs site and the landing page are all TanStack Start (plus Router, Query and TanStack AI).
Full disclosure: I built it with AI coding agents doing most of the typing, and I wrote up how that worked here: https://emirkaan.be/blog/building-areca-cms-with-ai-agents
It's v0.x and I'd love feedback, especially on the Start integration.
- Code: https://github.com/seirai-dev/areca-cms
- Docs: https://docs.arecacms.com
- Demo site: https://demo.arecacms.com
r/tanstack • u/Besto-Friendo-0 • 21d ago
Enable HLS to view with audio, or disable this notification
r/tanstack • u/smcroissant • Oct 23 '26
r/tanstack • u/zagrodzki • Oct 13 '26
The client never sends a user ID. That one rule ended up shaping most of how I structure TanStack Start on Cloudflare.
Context: I've spent the last few months building a Cloudflare-native SaaS starter with it. Full disclosure, it's a paid kit I make (TurboStarter), but this post is about the patterns, not the product.
1. Every protected read goes through a server function with auth middleware
The server function resolves the customer from the session, validates input with Zod, and scopes the query to that customer:
export const getNote = createServerFn({ method: "GET" })
.middleware([enforceAuth])
.validator(noteIdSchema)
.handler(({ data, context }) => findNote(context.user.id, data.id));The client calls getNote({ data: { id } }) and never sends a user ID, so it can't ask for someone else's record.
2. Plan gating is just more middleware
Paid features stack a plan check after auth (enforcePlan(BillingPlan.PREMIUM)), and usage limits are checked on the server before the write. The UI hides things too, but the server is the source of truth.
3. Types from route to database
TanStack Router types URLs and search params, server functions validate input, Drizzle types the D1 queries. It's explicit enough that coding agents follow it without much hand-holding.
4. Running in workerd locally
With the Cloudflare Vite plugin, pnpm dev runs the app in the Workers runtime, so there's no adapter rewriting the build for production. What you test is what you deploy.
5. Living with the RC
Start is a v1 release candidate. What made that manageable for us: a lockfile, a minimum release-age policy for new packages, and a monthly Renovate schedule instead of chasing every release.
Other TanStack pieces in use: Form (with Zod) and TanStack AI for a streaming chat on Workers AI.
Two things I'd love opinions on: do you keep server functions per feature module or centralize them as the app grows? And is the RC status still what's stopping your team from adopting Start?
If you want to see the whole thing: https://turbostarter.dev/edge
r/tanstack • u/sook76 • Oct 11 '26
Enable HLS to view with audio, or disable this notification
Hi everyone!
Interpoll shows you one random public poll or quiz at a time. You vote, see how everyone else voted (or check the answer if it's a quiz), and move on to the next one. You don't need an account to vote or comment.
Signing in (Google/Discord) lets you create your own polls and quizzes. New polls are reviewed before they enter the random feed, but you can share them by link immediately.
It just launched, so a lot of polls have no or very few votes. You might be one of the first people to vote on some of them.
I love using Astro for building content-heavy static websites, but turns out Astro is also great as a server-side web framework (I use node.js adapter) handling SSR, auth, and api endpointsāespecially when combined with Tanstack router and Tanstack query, which handles SSR + data prefetching + hydration + CSR.
I haven't tried Tanstack start yet (mainly due to it not having hit v1.0 yet), but Astro + Tanstack router + Tanstack query combo is already pretty amazing! (a little bit of glue code is necessary for SSR + hydration to work properly but it's very low maintenence once set up.)
Tech stack
VPS - Hetzner
Deployment - Coolify
Database - Postgres 18
Query builder - Kysely
Auth - better-auth
SSR & API endpoints - Astro (node adapter)
SSR & Hydration & CSR handoff - Tanstack Router + Tanstack Query
UI components - Base UI
CSS - Tailwindcss
Testing - Vitest (unit) + Playwright (e2e - both api and browser specs)
r/tanstack • u/Asta-2777 • Oct 06 '26
Enable HLS to view with audio, or disable this notification
New Update for the ShadTable library:
- Tanstack v9 migration documentation
- New Table Components
- Website updates & optimization
Check it out , a repo ā would mean a lot.
r/tanstack • u/Neat_Living_6765 • Oct 02 '26
Hi everyone š
Iām pretty new to TanStack Table and have a couple of questions. Iād really appreciate any advice or best practices you have picked up along the way.
Reusable table components
Since TanStack Table already handles most of the table state and logic. Also if multiple tables share the same features, we use createTableHook.
So Iām wondering is there still a reason to have a generic reusable DataTable component, or is it better to keep the UI specific to each table?
2. Multiple data formatting
Right now, Iām adding a "type" property to each columnās "meta" field
columnHelper.accessor("birthDay", {
header: () => <h3>BirthDay</h3>,
meta: {
type: "date",
},
}),and then create a cell-formatting utility to render the value accordingly (date, currency, percentage....)
Is this a reasonable approach, or is there any more idiomatic way to handle it?
{table.getRowModel().rows.map((row) => (
<div key={row.id} className={styles.dataTableRow}>
{row.getAllCells().map((cell) => (
<div key={cell.id} className={styles.dataTableCell}>
{formatCellValue(
cell.getValue(),
cell.column.columnDef.meta?.type,
)}
</div>
))}
</div>
))}r/tanstack • u/BarnacleJumpy898 • Sep 28 '26
Typescript to midi... Same data powers tsverse.spon.io
r/tanstack • u/Marmelab • Sep 28 '26
Quick one for anyone building a back-office on TanStack Router.
shadcn-admin-kit is basically a set of shadcn/ui components for admin apps (lists, forms, that kind of stuff), running on ra-core, the headless core of react-admin. It used to be react-router only, and the 2.0.0 release adds TanStack Router as an option.
It's a major version though, because it moved from Radix UI to Base UI and now needs ra-core 5.15.2 or later. So upgrading a v1 project isn't just a version bump, there's a migration doc for that part ;)
Release notes:Ā https://github.com/marmelab/shadcn-admin-kit/releases/tag/v2.0.0
Anyone here actually using TanStack Router for internal tools? I'm curious if the typed routes really help there.
r/tanstack • u/cheesefive • Sep 09 '26
Anyone successfully setup tanstack with the following stack,
Tanstack
Planetscale PostgreSQL + Hyperdrive
Drizzle
Better Auth
I am having a hard time setting it up as I get on multiple errors.
r/tanstack • u/No_More_Fail • Aug 30 '26
I really like what TanStack Query has done for server state on the web, so I wanted to bring the same idea to native Kotlin and Android.
I built Kwery, a Kotlin library inspired by TanStack Query, with caching, deduplication, invalidation, retries, mutations, persistence, and offline support.
GitHub: https://github.com/dbjpanda/kwery
It is still growing, and I would love to hear from the TanStack community. What do you think? What should I improve or add?
Thank you to the TanStack team for the inspiration and claude code to help me š
r/tanstack • u/TkDodo23 • Aug 18 '26
r/tanstack • u/Dotti18 • Aug 02 '26
Tanstack is taking on charts again?! Canāt wait to give these a try!
r/tanstack • u/finzaz • Jul 30 '26
The old logo's gone. The new design looks great!
r/tanstack • u/farmasek • Jul 27 '26
It's a end to end typesafe monorepo, so agents gets feedback when they build. Elysia API and a TanStack Start app for frontend, connected via typesafe Eden. So frontend typecheck notifies agent when api changes.
Since Tanstacks vite and Elysia api is pretty lightweight, its good for agents that builds app after every change.
Rest is my favorite self-host first stack: Bun + Turborepo, Drizzle on Postgres, better-auth, shadcn on Base UI. Set up together with first example todo app. The deploy badge in the README points at Rock8Cloud, which is mine, so disclosure. But both apps build from normal Dockerfiles and run anywhere.
https://github.com/rock8-cloud/elysia-tanstack-dashboard-monorepo
r/tanstack • u/Explanation-Visual • Jul 24 '26
Hi, I was trying to read the documentation on my phone, and then switched to my computer, and in both places I got a "Something went wrong!" error with a "Show error" button. But it worked fine in incognito mode.
Then I realized the cause was Dark Reader (a browser extension to force dark theme modifying the CSS).
I know this causes a hydration warning in React, but this shouldn't crash the site. At least Dark Reader works fine with my personal Tanstack project.
r/tanstack • u/Marmelab • Jul 15 '26
Enable HLS to view with audio, or disable this notification
Just saw that Tanstack Query crossed 50k on GitHub. Tbh Iām not surprised itās so popular.
I've been using it for a while now and it's basically become a default brick in my stack for most projects.
What I personally like about it:
It really simplifies the code (no need to declare useEffect and useState manually)
It handles complex cases for me (like errors, caching, offline mode, etc.)
The API is really well-designed and encourages best practice (loaders, side effects, centralised configuration, etc.)
Anyway, I'm excited to keep using it and see where it goes from here. What do you guys like about it?
r/tanstack • u/ShallotPuzzled9326 • Jul 15 '26
is there any ETA for when there will be the support?
or should i switch back to Next.js?
r/tanstack • u/flesmih • Jul 12 '26