tRPC llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/trpc/llms-txt)

# tRPC llms.txt

Browse tRPC documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

trpc.io/llms.txt

[Raw llms.txt](https://trpc.io/llms.txt) [Raw llms-full.txt](https://trpc.io/llms-full.txt)

Copy Markdown [](https://trpc.io/llms.txt)

llms.txt

Documentation Pages

Send cookies cross-origin

Headers

HTTP Batch Link

HTTP Batch Stream Link

HTTP Link

HTTP Subscription Link

Local Link

Logger Link

Links Overview

Retry Link

Split Link

WebSocket Link

Server Actions

Set up with Next.js App Router

Next.js Integration

Aborting Procedure Calls

Server-Side Helpers

Set up with Next.js Pages Router

Static Site Generation

Server-Side Rendering

Starter Projects

OpenAPI (alpha)

Client Overview

Aborting Procedure Calls

createTRPCQueryUtils

Disabling Queries

getQueryKey

Inferring Types

React Query Integration (Classic)

Set up with React Server Components

Set up the React Query Integration

Suspense

useInfiniteQuery()

useMutation()

useQueries()

useQuery()

useSubscription()

useUtils

Migrating from the classic React Client

TanStack React Query

Set up with React Server Components

TanStack React Query

TanStack React Query

Aborting Procedure Calls

Inferring Types

tRPC Client

Set up a tRPC Client

Awesome tRPC Collection

Contributing

Testimonials / Love

Sponsors

FAQ / Troubleshooting

Further Reading

HTTP RPC Specification

Step1

Step2

Step3

Concepts

Example Apps

tRPC

Quickstart

Agent Skills

Videos and Community Resources

Migrate from v10 to v11

Overview

AWS Lambda + API Gateway Adapter

Express Adapter

Fastify Adapter

Fetch / Edge Runtimes Adapter

Next.js Adapter

Standalone Adapter

Authorization

Response Caching

Context

Data Transformers

Error Formatting

Error Handling

Merging Routers

Metadata

Middlewares

Content Types

Backend Usage

Define Procedures

Define Routers

Server Side Calls

Subscriptions

Input & Output Validators

WebSockets

Test

## What is tRPC's llms.txt?

tRPC publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what tRPC offers and where to find details.

Issues

Spec

1

Sections

91

Links

15.3 KB

Size

~3.9k

Tokens

Sections: Documentation Pages

## Add tRPC Docs to Your AI Assistant

Select your tool to see how to add tRPC's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://trpc.io/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about tRPC

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 1 error

## Frequently Asked Questions

Where is tRPC's llms.txt file?

tRPC publishes its llms.txt at https://trpc.io/llms.txt. This file provides a structured, markdown-formatted index of tRPC's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use tRPC's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of tRPC's documentation so it can provide better code suggestions and answers about tRPC.

What does tRPC's llms.txt contain?

tRPC's llms.txt contains 1 sections and 91 documentation links in 15.3 KB (~3.9k tokens). Key sections include Documentation Pages.

How many tokens does tRPC's llms.txt use?

The concise llms.txt index is approximately 3.9k tokens (15.3 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is tRPC?

End-to-end typesafe APIs made easy. tRPC's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with tRPC.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Valibot The modular and type safe schema library](https://mdream.dev/llms-txt/trpc/llms-txt/valibot) [Prettier Opinionated code formatter](https://mdream.dev/llms-txt/trpc/llms-txt/prettier) [Effect A powerful TypeScript library for complex programs](https://mdream.dev/llms-txt/trpc/llms-txt/effect) [Deno The next-generation JavaScript runtime](https://mdream.dev/llms-txt/trpc/llms-txt/deno) [Zustand Bear necessities for state management in React](https://mdream.dev/llms-txt/trpc/llms-txt/zustand) [Rspack A fast Rust-based web bundler](https://mdream.dev/llms-txt/trpc/llms-txt/rspack) [SWR React Hooks for Data Fetching](https://mdream.dev/llms-txt/trpc/llms-txt/swr) [Turborepo High-performance build system for JavaScript](https://mdream.dev/llms-txt/trpc/llms-txt/turborepo)

[View all 99 projects ](https://mdream.dev/llms-txt/trpc/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/trpc/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/trpc/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)