apiverse
apiverse copied to clipboard
✴️ Unified, pluggable API client management for ofetch, route building and typed OpenAPI clients
apiverse
apiverse
provides a unified way to manage all your API interactions by setting up a client with default fetch options, such as the API base URL and headers. Adapters extend the client with a variety of features to match your favorite API management flavor.
You can use one of the pre-built adapters to get started quickly, or create your own custom adapter to meet your specific requirements.
Setup
[!TIP] 📖 Read the documentation
# pnpm
pnpm add -D apiverse
# npm
npm i -D apiverse
Usage
[!TIP] 📖 Read the documentation
| What it does: The |
| What it does: The |
| What it does: If your API has an OpenAPI schema, For example, the response returned by the API call on the left is typed as follows:
Please follow the OpenAPI adapter documentation to learn more about how to generate TypeScript definitions from your OpenAPI schema files. |
Outlook & Roadmap
As of right now, this library handles API management in the client. In the future, apiverse
is intended to extend to the server side as well, providing a unified way to manage API calls in both client and server.
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
License
Made with 💛
Published under MIT License.