Skip to main content


aspida logoaspida logo

TypeScript friendly HTTP client wrapper for the browser and node.js.


Work within the Frourio ecosystem

Aspida is a simple library that enables type-safe HTTP communication via TypeScript by wrapping clients such as fetch and axios. It generates a single object from a directory-based API types definition similar to Next.js.

Aspida was originally designed for the client-side, but Frourio expands type safety to the server-side by writing controllers and so on based on Aspida type definitions.

In short, Aspida works on client-side type safety within the Frourio ecosystem.

Types in Frourio

Types defined as reqBody, reqHeaders, and query in the API type definition are included in the arguments of controllers, etc. Also, types defined as resBody and resHeaders must be returned from the controller.

Writing API Definitions

Please refer to aspida's README for how to write API type definitions.