A small library. A better way to grab.

Make the request.
Get on with it.

The TypeScript HTTP library that gets straight to the point.
One explicit request. Your data, error and meta, together.

Start building

THE REQUESTEXPLICIT BY DESIGN
GET/users/you
data = { id: 'you', name: 'Your next big thing.' }ILLUSTRATIVE RESPONSE
At home in your stack.
TypeScript · Browser · Node.js · ESM + CJS

LESS CEREMONY. MORE SHIPPING.

This is the
whole idea.

Say what you want. Grabkit handles the HTTP request and returns a tuple. Check the error. Use the data. Keep going.

Meet the result tuple
your-next-thing.tsTS
import grabkit from 'grabkit';

const grab = grabkit('https://api.example.com', {
  format: 'json',
});

const [data, error, meta] = await grab(
  'GET /users/you'
);

if (error) return;

// Yours to build with.
console.log(data, meta.statusCode);
Plain JSON example Read the guide ↗

SMALL API. CONSIDERED DETAILS.

Less to wire up.
More to work with.

BRING YOUR OWN DATA LAYER

Fits the way you build.

Keep your cache. Keep your framework.
Grabkit takes care of the request.

Your next idea
starts with a grab.

Let's build it

Open source. Apache 2.0. Yours to use.