Skip to content
M

Mande

800 bytes modern wrapper around fetch with smart defaults

by posvaFree

Domain Rating by Ahrefs51

#2162in Developer Tools
0In stores

Description

Mande is a small JavaScript wrapper around the browser's fetch function, with defaults that suit API calls. Instead of setting headers, chec…

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

U

Up Fetch

Advanced fetch client builder

Developer Tools
Launch
K

Kitsu

A simple, lightweight & framework agnostic JSON:API client

Developer Tools
Launch
M

Mangadex Full API

The largest MangaDex API

Developer Tools
Launch
R

Requestly

Open-source, lightweight Git-Friendly API Client built for modern developers

Developer Tools
Launch
F

FakeRest

Patch fetch/XMLHttpRequest to fake a REST API server in the browser

Developer Tools
Launch
R

Reqable

Next-Gen API Development Tool, Advanced API Debugging Proxy and REST Client

Developer Tools
Launch

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

Developer Stuff

Badges