qmetrics.net

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC screenshot

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

Overview

tRPC is a TypeScript-first way to build and consume APIs where the client imports only type information from the server and still gets autocompletion and compile-time checks. Procedures can be queries, mutations, or subscriptions, composed into routers and validated with tools such as Zod.

The project emphasizes a small client footprint, no build-time code generation, and adapters for HTTP servers including Next.js, Express, Fastify, the Fetch API, AWS Lambda, and vanilla Node. Request batching can combine concurrent calls automatically.

Developers define procedures and export router types, stand up an HTTP server with an adapter, then create a client that shares those types. Materials describe it as framework-agnostic across JavaScript runtimes while shipping batteries-included React and Next.js integrations plus community adapters.

It is positioned for brownfield adoption: add typed endpoints incrementally and keep TypeScript inference aligned when server handlers change.

Key features

  • Static types client to server
  • No codegen build pipeline
  • Queries, mutations, subscriptions
  • HTTP adapters for many runtimes
  • Optional request batching
  • Zod-friendly input validation
  • React and Next.js adapters
  • Lightweight client library

Use cases

  • Full-stack TypeScript products
  • Typed internal admin APIs
  • Next.js full-stack apps
  • Replacing untyped REST wrappers
  • Realtime subscription backends

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT

Hono

Lightweight web framework on Web Standards

Hono is a small web framework built on Web Standards that runs on Cloudflare Workers, Deno, Bun, Node.js, AWS Lambda, and other JavaScript runtimes with the same application code.

★ 33.1k⟳ yesterdayMIT