A lightweight, minimal RPC framework using tRPC running on Bun's native server.
- Type-safe API: End-to-end type safety with tRPC
- High Performance: Just
Bun.Serve. No overhead - Minimal Setup: No additional web framework needed
- Stack: TypeScript, Bun, tRPC, Biome and Vite
- Monorepo Structure: With Nx
- Install Bun
📁 Root
- 📄
package.json- Workspace configuration - 📄
nx.json- Nx settings - 📄
biome.json- Biome settings
🌐 Web Application
/web- Frontend Vite + React application- 🎯 Vanilla tRPC client
- 🔒 Importing types from server
🔧 Server
/server- Bun tRPC backend- 🚀 Bun Http server
- 🔒 Example TRPC routers
- 🛠️ Cors middleware
# Clone the repository
git clone https://github.com/cjkihl/brpc.git
# Install dependencies
bun install
# Start development servers
bun dev