Skip to content

Toapi

A fully-typed REST API toolkit for TypeScript. Define your API once on the server and get an end-to-end typed client — no code generation step.

Toapi is a small family of composable packages. Start with @toapi/server to define your API, generate a typed client with @toapi/client, then add caching, routing, React bindings and a Vite plugin as you need them.

Terminal window
pnpm add @toapi/server @toapi/client

Then head to the server introduction to define your first API.