API boilerplates

API boilerplates ship the foundation — routing, validation, auth, docs — for REST, GraphQL, or tRPC APIs.

16 quality-scored listings.

Buyer's guide: api boilerplates

Quality API listings document their request/response shapes (OpenAPI for REST, schema for GraphQL, Zod for tRPC), include authentication middleware, and ship with example tests. For high-throughput APIs, prefer Fastify or Hono over Express; for edge deployment, prefer Hono.

Common stacks for api boilerplates

Frequently asked questions

REST or tRPC?

tRPC if your clients are all TypeScript and you control them. REST if you need a public API or polyglot clients. GraphQL if your clients query complex relational data.