RuleMembers

TanStack Start Cursor rules for full-stack React

TanStack Start Guidelines is a Cursor rule file for the full-stack React framework that sits on TanStack Router and Vinxi. It is for developers who want server logic, SSR, streaming and deployment handled through Start's own patterns rather than a separate REST API.

What it does

Start uses file-based routing through TanStack Router. Server functions made with createServerFn always run on the server, validate input with Zod through .validator(), implement logic in .handler(), and are called like normal async functions from components or loaders. Streaming and Suspense are used for progressive rendering, and the file explains that Start is not an API-first framework.

How to use it

The rule applies to all files, including app.config.ts and the root route setup.

Requirements and limits

It overlaps with the separate tanstack-start rule file, so teams usually need only one.

More in Rules and the Cursor library.

What it covers

  • What is TanStack Start
  • Core Principles
  • Project Structure
  • app.config.ts
  • Root Route Setup
  • Server Functions
  • Using Server Functions in Routes
  • Mutations with Server Functions
  • API Routes
  • Streaming & Suspense

The full text is in the members library

Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.

Source and license

Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/tanstack-start-cursorrules-prompt-file.mdc

Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.

Related entries