New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hyperfetch-ts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperfetch-ts

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source
HyperFetch Logo

HyperFetch

npm version Bundle size Test Coverage License

A modern, high-performance, TypeScript-first HTTP client for Node, Browser, Bun, and more. Outperforms Axios.

Features

  • 🚀 Faster than Axios (see benchmarks)
  • 🧩 Middleware engine (logging, retry, timeout, caching, etc.)
  • 🔄 Interceptors (request, response, error)
  • 🔥 Streaming support (NDJSON, line-by-line)
  • 🧪 90%+ test coverage
  • 🪶 <5KB gzipped
  • 🌍 Adapters for Node (undici), Fetch, Bun
  • 🦾 TypeScript-native
  • 🗂️ Pluggable, modular, ESM/CJS/UMD

Install

npm install hyperfetch

Usage Example

import { HttpClient } from 'hyperfetch';
import { undiciAdapter } from 'hyperfetch/adapters/undiciAdapter';

const client = new HttpClient({
  baseURL: 'https://jsonplaceholder.typicode.com',
  adapter: undiciAdapter, // or fetchAdapter for browser
});

client.use(/* middleware, e.g. retry, cache, logging */);

const res = await client.get('/todos/1');
console.log(res.data);

Benchmarks

ScenarioHyperFetchAxiosFetch
Sequential GET (100 req)2087ms2010ms2596ms
Concurrent GET (100 req, 10x)325ms370ms366ms
Concurrent POST (100 req, 10x)1079ms1054ms558ms

Documentation

License

MIT

FAQs

Package last updated on 26 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts