netlify-frameworks-tanstack

netlify-frameworks-tanstack is a cursor rule for Cursor from netlify/context-and-tools. It costs 16 tokens per session (718 once invoked), scanned A, original, MIT.

Setup guidance for deploying TanStack Start applications on Netlify, a hosting platform. TanStack Start is a React framework, and this guidance uses its Netlify Vite plugin.

In plain words
What is it for?
Use it when configuring TanStack Start and React plugins in Vite so the application can be deployed to Netlify.
Why use it?
It explains the required package and configuration and avoids relying on guessed package versions.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when configuring TanStack Start and React plugins in Vite so the application can be deployed to Netlify.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/netlify/context-and-tools/netlify-frameworks-tanstack
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/netlify/context-and-tools

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for netlify-frameworks-tanstack

README.md
[![agentmods](https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-frameworks-tanstack/github.svg)](https://agentmods.dev/rules/netlify/context-and-tools/netlify-frameworks-tanstack)
Your own site
<a href="https://agentmods.dev/rules/netlify/context-and-tools/netlify-frameworks-tanstack"><img src="https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-frameworks-tanstack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for netlify-frameworks-tanstack

Your own site · 80×15
<a href="https://agentmods.dev/rules/netlify/context-and-tools/netlify-frameworks-tanstack"><img src="https://agentmods.dev/badge/rules/netlify/context-and-tools/netlify-frameworks-tanstack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 718 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00718
Opus 5.5 $0.00006 $0.00287
Sonnet 5.5 $0.00003 $0.00144
Haiku 4.5 $0.00002 $0.00072

Measured 3mo ago against content hash e65450ea9f65, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

netlify-frameworks-tanstack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cursor/rules/netlify-frameworks-tanstack.mdc · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TanStack Start on Netlify

Setup

Check current versions before pinning. Knowledge cutoffs lag behind npm, and guessing a version tends to fail (npm install rejects it, or worse, installs something incompatible). Before pinning @netlify/vite-plugin-tanstack-start, @tanstack/react-start, vite, or any other package in package.json, run npm view <pkg> version to get the current latest. Or omit explicit pins and let npm install pick them up. If that check itself fails (no network, registry unreachable), still don't fall back to a guessed exact pin — install without a version (or with @latest) and tell the user live verification wasn't possible so they should confirm the installed versions. Never present an unverified x.y.z as the current release.

TanStack Start uses the @netlify/vite-plugin-tanstack-start plugin for deployment.

npm install -D @netlify/vite-plugin-tanstack-start

Register it in vite.config.ts alongside the TanStack Start and React plugins:

// vite.config.ts
import { defineConfig } from "vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import netlify from "@netlify/vite-plugin-tanstack-start";
import viteReact from "@vitejs/plugin-react";

export default defineConfig({
  plugins: [tanstackStart(), netlify(), viteReact()],
});

TanStack Start < 1.132.0: the standalone plugin isn't available. Instead pass the target: 'netlify' option to tanstackStart() in vite.config.ts (tanstackStart({ target: 'netlify' })) and don't install @netlify/vite-plugin-tanstack-start.

Netlify CLI deploys: deploying with the Netlify CLI requires netlify-cli ≥ 17.31.

What the Plugin Does

  • Deploys SSR, Server Routes, Server Functions, and middleware to Netlify Functions
  • Provides full local Netlify platform emulation in vite dev (no netlify dev needed)
  • Maps TanStack Start's file-based routing to Netlify's infrastructure

Server Functions

TanStack Start uses createServerFn for server-side logic. These are automatically handled by the Netlify plugin — no raw Netlify Functions needed:

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 73 lines · 16 tokens per session scan A e65450ea9f65

Subscribe to this mod's changes

netlify-frameworks-tanstack is a cursor rule published in the GitHub repository netlify/context-and-tools (58 stars, last pushed 4d ago), licensed MIT. It adds 16 tokens to every session and 718 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

netlify-frameworks-tanstack compared with cursor rules from other repositories

netlify-frameworks-tanstack next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
netlify-frameworks-tanstacknetlify/context-and-toolsCursor rule584d agoMITA16Cursor
aws-ecssanjeed5/awesome-cursor-rules-mdcCursor rule3.6k8d agoCC0-1.0A2,640Cursor
log-watchbriiirussell/cybersecurity-skillsCursor rule541yesterdayMITA184Cursor
beanstalk-deploypr-pm/prpmCursor rule1251mo agoMITA0Cursor
deploymentlacymorrow/paperclip-hubCursor rule162d agoMITA0Cursor
advisor-routingmicrosoft/azure-skillsCursor rule1.7ktodayMITA37Cursor
aws-rds-best-practicesbeettlle/CursorRulesCursor rule214d agononeA0Cursor