npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hyperttp/transport-undici

v0.3.2

Published

High-performance, extensible HTTP client for undici

Readme

@hyperttp/transport-undici

English | Русский

High-performance Node.js transport for @hyperttp/core, built on Undici's low-level Dispatcher API.

Features

  • Direct integration with the Undici Dispatcher API.
  • Connection pooling with configurable concurrency, pipelining, and keep-alive timeout.
  • Support for an externally managed Undici Dispatcher.
  • Request cancellation through AbortSignal.
  • Optional response and cookie caches.
  • Optional TLS fingerprint, HTTP/2, and request-fragmentation settings.
  • REST transport contract for @hyperttp/core@2 and @hyperttp/types@^0.3.0.

Performance

Node.js v26.7.0 — UndiciTransport

Environment

  • OS: Linux 7.1.8-zen1-3-zen
  • CPU: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz

Benchmark results

| Rank | Client | RPS Med | RPS Trim | Δ Best | Avg | p50 | p90 | p99 | | ---- | -------------------- | ------- | -------- | ------ | --------- | --------- | --------- | --------- | | 🥇 1 | @hyperttp/core-2.0.0 | 22.38K | 22.42K | (ref) | 44.44 ms | 44.27 ms | 47.60 ms | 58.58 ms | | 🥈 2 | undici | 22.10K | 22.41K | -1.3% | 44.89 ms | 44.64 ms | 50.83 ms | 60.42 ms | | 🥉 3 | hyperttp-0.5.0 | 19.93K | 19.98K | -11.0% | 50.01 ms | 49.39 ms | 52.98 ms | 71.36 ms | | 4 | @hyperttp/core-1.5.6 | 18.55K | 18.59K | -17.1% | 53.62 ms | 54.46 ms | 61.10 ms | 69.53 ms | | 5 | @hyperttp/core-1.5.5 | 17.93K | 17.95K | -19.9% | 55.45 ms | 56.78 ms | 63.41 ms | 73.89 ms | | 6 | hyperttp-0.4.16 | 16.06K | 16.00K | -28.2% | 61.89 ms | 63.74 ms | 69.53 ms | 80.35 ms | | 7 | bun-fetch | 9.07K | 9.06K | -59.5% | 109.69 ms | 112.25 ms | 127.68 ms | 143.30 ms |

These results compare complete client stacks in one local environment; they are not a guarantee of production performance. Run the same benchmark with your workload, concurrency, payload, and network conditions before choosing a client.

Installation

npm install @hyperttp/core @hyperttp/transport-undici
bun add @hyperttp/core @hyperttp/transport-undici

Usage

With @hyperttp/core

import { HyperCore } from "@hyperttp/core";
import { UndiciTransport } from "@hyperttp/transport-undici";

const transport = new UndiciTransport({
  baseUrl: "https://api.example.com",
  network: {
    maxConcurrent: 500,
    pipelining: 8,
    keepAliveTimeout: 30_000,
  },
});

const core = new HyperCore({
  customTransport: transport,
});

const response = await core.rest.get("/v1/users");
console.log(response.status, response.data);

await core.destroy();

Retry, redirect, parsing, and other request policies belong to the core or its plugins rather than the transport configuration.

External dispatcher

Use an external dispatcher when your application already owns an Undici Agent, Pool, proxy dispatcher, or another compatible implementation:

import { Pool } from "undici";
import { UndiciTransport } from "@hyperttp/transport-undici";

const pool = new Pool("https://api.example.com", {
  connections: 100,
});

const transport = new UndiciTransport({
  baseUrl: "https://api.example.com",
  dispatcher: pool,
});

When dispatcher is supplied, transport.close() and transport.destroy() do not close it. The application that created the dispatcher remains responsible for its lifecycle:

await pool.close();

Configuration

| Option | Description | | ---------------------------- | ------------------------------------------------ | | baseUrl | Base URL used to resolve relative request URLs. | | dispatcher | Externally managed Undici dispatcher. | | network.maxConcurrent | Maximum connections per generated pool. | | network.pipelining | Undici pipelining depth. | | network.keepAliveTimeout | Keep-alive timeout in milliseconds. | | network.rejectUnauthorized | Enables or disables TLS certificate validation. | | network.cache | Optional response-cache settings. | | network.cookieCache | Optional cookie-cache settings. | | stealth | TLS profile, HTTP/2, and fragmentation settings. |

License

MIT © dirold2