The pragmatic native fetch API wrapper for JavaScript.
npm install @z-fetch/fetchimport { GET } from '@z-fetch/fetch';
async function getPosts() {
  const { data, error } = await GET('https://jsonplaceholder.typicode.com/posts');
  if (data) {
    console.log('Posts:', data);
  } else {
    console.error('Error fetching posts:', error);
  }
}
getPosts();Built on the native fetch API with no extra libraries needed.
Works with any JavaScript project, no matter the framework.
Automatic caching with auto revalidation and configurable options.
Automatic JSON parsing of responses and request payload.
Built-in streaming utilities for stream responses handling.
Real-time progress tracking for file uploads and downloads.
Hooks are interceptors for the request lifecycle.
Catch common errors nicely with customizable error message mapping.
You can cancel requests, set timeout, custom HTTP methods and more.