Minimal tRPC frontend Vite boilerplate for projects with separate backend and frontend repositories. Easily consume fully typesafe APIs.
Monorepos are great, but sometimes the architecture requires separating the backend and frontend into distinct repositories.
This boilerplate is ideal when you want to separate:
- Domain/business logic – expose only what needs to be exposed through the API.
- Developer responsibilities – for larger teams/companies.
- CI/CD pipelines – manage PRs, issues, and deployments independently.
Easily set up a local development environment
- Clone the repo
- Run
npm install
- Run
npm run dev
- Use the tRPC API package in your app 🚀
There are two ways to import tRPC API types from the backend repo: