Domain Rating
by Ahrefs
Domain Rating by Ahrefs51
Description
Mande is a small JavaScript wrapper around the browser's fetch function, with defaults that suit API calls. Instead of setting headers, checking status codes and parsing JSON on every request, you create a client for a base URL and call methods such as get and post on it. Requests that return a non-2xx status are rejected for you. The documentation shows how to add an authorization token once so that every later request carries it. Mande is distributed as an npm package and installed with npm or yarn. It includes TypeScript types and has a section on server-side rendering and Nuxt in universal mode. It needs an environment with fetch support. It is meant for developers who write an API layer in front-end or full-stack JavaScript projects and want shorter request code.…
Highlights
- Small fetch wrapper with sensible defaults
- Create a client for each API base URL
- Rejects non-2xx responses automatically
- Authorization tokens set once for all requests
- TypeScript support
- Server-side rendering and Nuxt guide
Ratings & Reviews
No ratings yet
Be the first to rate Mande.
People also visit
Mande FAQ
What is Mande?
A small wrapper around fetch that adds defaults for calling JSON APIs, so each request is shorter to write.
How do I install it?
Run npm install mande or yarn add mande. The environment must support fetch.
Does it support TypeScript?
Yes. The documentation has a TypeScript section.
Can it be used with server-side rendering?
The docs include a section on SSR and on using Mande with Nuxt in universal mode.
How are authorization tokens handled?
The usage guide shows a setToken function that stores the token in the client options, so every request made with that client includes it.
What are the best Mande alternatives?
Popular alternatives to Mande include Up Fetch, Kitsu and Mangadex Full API. See all Mande alternatives


