Skip to main content
Version: 10.x

Example Apps

info

Some of the examples on this page are out-of-date since V10. We'll update this soon.

You can clone trpc and play with local examples, or play with them in the CodeSandbox link below.

Here's some example apps:

DescriptionURLLinks
Recommended:
Next.js starter with Prisma, E2E testing, & ESLint

Quick start with create-next-app
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
nextjs.trpc.io
zART-stack example (zero-API, TypeScript, React).
Monorepo setup with React Native, Next.js, & Prisma

Quick start with git clone
git clone git@github.com:KATT/zart.git
n/a
Next.js starter with Prisma, E2E testing, ESLint, Auth using next-auth, WebSockets, & Subscription support

Quick start with create-next-app
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter-websockets trpc-prisma-starter-websockets
websockets.trpc.io
Next.js TodoMVC-example with SSG & Prisma.

Quick start with create-next-app
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
todomvc.trpc.io
Minimal (Hello world) server and client in node.jsn/a
Vanilla standalone server & procedure calls with node.jsn/a
Express server & procedure calls with node.js.n/a
Fastify server with WebSocket & procedure calls with node.js.n/a
SvelteKit Example Application with Prisma.n/a
Cloudflare Workers examplen/a
Express server with tRPC Shield + Prisma

Quick start with create-trpc-appx
npx create-trpc-appx --example https://github.com/omar-dulaimi/trpc-shield/tree/master/example
n/a