    Skip to content

      Navigation Menu

            Sign in Appearance settings
                * Platform
                        + AI CODE CREATION
                            o GitHub Copilot Write better code with AI
                            o GitHub Copilot app Direct agents from issue to merge
                            o MCP Registry Integrate external tools
                        + DEVELOPER WORKFLOWS
                            o Actions Automate any workflow
                            o Codespaces Instant dev environments
                            o Issues Plan and track work
                            o Code Review Manage code changes
                            o Code Quality Enforce quality at merge
                        + APPLICATION SECURITY
                            o GitHub Advanced Security Find and fix vulnerabilities
                            o Code security Secure your code as you build
                            o Secret protection Stop leaks before they start
                        + EXPLORE
                            o Why GitHub
                            o Documentation
                            o Blog
                            o Changelog
                            o Marketplace
                      View all features
                * Solutions
                        + BY COMPANY SIZE
                            o Enterprises
                            o Small and medium teams
                            o Startups
                            o Nonprofits
                        + BY USE CASE
                            o App Modernization
                            o DevSecOps
                            o DevOps
                            o CI/CD
                            o View all use cases
                        + BY INDUSTRY
                            o Healthcare
                            o Financial services
                            o Manufacturing
                            o Government
                            o View all industries
                      View all solutions
                * Resources
                        + EXPLORE BY TOPIC
                            o AI
                            o Software Development
                            o DevOps
                            o Security
                            o View all topics
                        + EXPLORE BY TYPE
                            o Customer stories
                            o Events & webinars
                            o Ebooks & reports
                            o Business insights
                            o GitHub Skills
                        + SUPPORT & SERVICES
                            o Documentation
                            o Customer support
                            o Community forum
                            o Trust center
                            o Partners
                      View all resources
                * Open Source
                        + COMMUNITY
                            o GitHub Sponsors Fund open source developers
                        + PROGRAMS
                            o Security Lab
                            o Maintainer Community
                            o Accelerator
                            o GitHub Stars
                            o Archive Program
                        + REPOSITORIES
                            o Topics
                            o Trending
                            o Collections
                * Enterprise
                        + ENTERPRISE SOLUTIONS
                            o Enterprise platform AI-powered developer platform
                        + AVAILABLE ADD-ONS
                            o GitHub Advanced Security Enterprise-grade security features
                            o Copilot for Business Enterprise-grade AI features
                            o Premium Support Enterprise-grade 24/7 support
              * Pricing
                Type / to search
                Sign in
              Sign up Appearance settings
      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              Uh oh!

              There was an error while loading. Please reload this page.

              trpc / trpc Public

                      * Uh oh!

                        There was an error while loading. Please reload this page.

              * Notifications You must be signed in to change notification settings
              * Fork 1.7k
                * Star 40.5k
          * Code
          * Issues 153
          * Pull requests 113
          * Discussions
          * Actions
          * Security and quality 2
          * Insights
          Additional navigation options
                  * Code
                  * Issues
                  * Pull requests
                  * Discussions
                  * Actions
                  * Security and quality
                  * Insights
                                              main
                                          Branches Tags
                                            Go to file
                                        Code
                                          Open more actions menu

                                        Folders and files

                                          Name                         Name                           Last commit message    Last commit date
                                            Latest commit            
                                                                     
                                                History              
                                                                     
                                                4,901 Commits        
                                                  4,901 Commits      
                                                  .cursor/ rules               .cursor/ rules                                                
                                                  .github                      .github                                                       
                                                  .superset                    .superset                                                     
                                                  .vscode                      .vscode                                                       
                                                  _artifacts                   _artifacts                                                    
                                                  examples                     examples                                                      
                                                  packages                     packages                                                      
                                                  scripts                      scripts                                                       
                                                  www                          www                                                           
                                                  .coderabbit.yaml             .coderabbit.yaml                                              
                                                  .dockerignore                .dockerignore                                                 
                                                  .gitignore                   .gitignore                                                    
                                                  .kodiak.toml                 .kodiak.toml                                                  
                                                  .npmrc                       .npmrc                                                        
                                                  .nvmrc                       .nvmrc                                                        
                                                  .prettierignore              .prettierignore                                               
                                                  .tool-versions               .tool-versions                                                
                                                  .ts-prunerc                  .ts-prunerc                                                   
                                                  CONTRIBUTING.md              CONTRIBUTING.md                                               
                                                  LICENSE                      LICENSE                                                       
                                                  README.md                    README.md                                                     
                                                  SECURITY.md                  SECURITY.md                                                   
                                                  codecov.yml                  codecov.yml                                                   
                                                  eslint.config.js             eslint.config.js                                              
                                                  lerna.json                   lerna.json                                                    
                                                  package.json                 package.json                                                  
                                                  pnpm-lock.yaml               pnpm-lock.yaml                                                
                                                  pnpm-workspace.yaml          pnpm-workspace.yaml                                           
                                                  prettier.config.js           prettier.config.js                                            
                                                  tsconfig.build.json          tsconfig.build.json                                           
                                                  tsconfig.json                tsconfig.json                                                 
                                                  turbo.json                   turbo.json                                                    
                                                  vitest.config.ts             vitest.config.ts                                              
                                            View all files           
                                          

                                              Repository files navigation

                                                * 
                                                * README
                                                * Contributing
                                                * MIT license
                                                * Security
                                                More items

                                                  tRPC

                                                  Move fast and break nothing.
                                                  End-to-end typesafe APIs made easy.




                                                The client above is not importing any code from the server, only its type declarations.


                                                Intro

                                              tRPC allows you to easily build & consume fully typesafe APIs without schemas or code generation.

                                                Features

                                                * ✅ Well-tested and production ready.
                                                * 🧙‍♂️ Full static typesafety & autocompletion on the client, for inputs, outputs, and errors.
                                                * 🐎 Snappy DX - No code generation, run-time bloat, or build pipeline.
                                                * 🍃 Light - tRPC has zero deps and a tiny client-side footprint.
                                                * 🐻 Easy to add to your existing brownfield project.
                                                * 🔋 Batteries included - React.js/Next.js/Express.js/Fastify adapters. (But tRPC is not tied to React, and there are many community adapters for other libraries)
                                                * 🥃 Subscriptions support.
                                                * ⚡️ Request batching - requests made at the same time can be automatically combined into one
                                                * 👀 Quite a few examples in the ./examples-folder

                                                Quickstart

                                              There are a few examples that you can use for playing out with tRPC or bootstrapping your new project. For example, if you want a Next.js app, you can use the full-stack Next.js example:

                                              Quick start with a full-stack Next.js example:

                                                # yarn
                                                yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
                                                
                                                 # npm
                                                npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
                                                
                                                 # pnpm
                                                pnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
                                                
                                                 # bun
                                                bunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
                                                
                                                 # deno
                                                deno init --npm next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter

                                              👉 See full documentation on tRPC.io. 👈

                                                AI Agents

                                              If you use an AI coding agent (Claude Code, Cursor, Windsurf, etc.), install tRPC skills for better code generation:

                                                npx @tanstack/intent@latest install

                                                Star History

                                                Core Team

                                              Do you want to contribute? First, read the Contributing Guidelines before opening an issue or PR so you understand the branching strategy and local development environment. If you need any more guidance or want to ask more questions, feel free to write to us on Discord!

                                                Project leads

                                              The people who lead the API-design decisions and have the most active role in the development

                                                                                      
                                              Alex / KATT  Julius Marminge  Nick Lucas
                                              

                                                Active contributors

                                              People who actively help out improving the codebase by making PRs and reviewing code

                                                               
                                              Matthieu Hocquart
                                              

                                                Special shout-outs

                                              Individuals who have made exceptional contributions to tRPC through code, documentation, community building, and other valuable efforts

                                                                      
                                              Theo Browne  Sachin Raja
                                              

                                                Sponsors

                                              If you enjoy working with tRPC and want to support us, consider giving a token appreciation by GitHub Sponsors!

                                                🥈 Silver Sponsors

                                                                           
                                              Greptile  CodeRabbit  SerpApi
                                              

                                                😻 Smaller Backers

                                                                                                                                                    
                                                Ahoy Labs       Unkey              Dr. B              Proxidize       Ferry Health     Liminity AB  
                                                                                                                                                    
                                               Ryan Magoon     BestKru         Max Greenwald        Dmitry Maykov    Chris Bradley       fanvue     
                                                                                                                                                    
                                               Drew Powers   Drizzle Team    Spencer McKenney           Kalle        Maicon Carraro  Andrei Karushev
                                                                                                                                                    
                                              Stefan Wallin   Venue Ink    Aerius Ventilation AB  Stefan Smiljkovic  Netrouting.com  Erik Bjäreholt 
                                              

                                                All contributors ✨

                                        About

                                        🧙‍♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.

                                          tRPC.io

                                        Topics

                                          apinextnextjsprismareacttypescript

                                        Resources

                                          Readme
                                          MIT license

                                        Contributing

                                          Contributing

                                        Security policy

                                          Security policy
                                          Activity
                                          Custom properties

                                        Stars

                                          40.5k stars

                                        Watchers

                                          101 watching

                                        Forks

                                          1.7k forks
                                          Report repository

                                        Releases

                                        Sponsor this project

                                        Used by

                                        Contributors

                                        Languages

    Footer

        © 2026 GitHub, Inc.

      Footer navigation

        * Terms
        * Privacy
        * Security
        * Status
        * Community
        * Docs
        * Contact
        * Manage cookies
        * Do not share my personal information
      You can’t perform that action at this time.