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

node-reqwest

v0.0.15

Published

Node.js bindings for reqwest - Rust HTTP client library

Readme

node-reqwest

Node.js bindings for reqwest - Rust HTTP client library. This library provides support for system proxy and trusted system CA certificates without additional configuration. The build is made in a fashion that allows usage by Electron-based applications.

Why you want to use this library?

  1. DNS resolution using recursive DNS resolver https://github.com/hickory-dns/hickory-dns instead of non-recursive https://github.com/c-ares/c-ares used by Node.js (and Undici) which crashes Electron on Windows if you try to resolve nonexistent domain fetch('http://example.lan')
  2. System CA certificates are used by default without additional libraries like https://www.npmjs.com/package/win-ca and https://www.npmjs.com/package/mac-ca
  3. System proxy is used by default, while it is not obtainable with Node.js and in Electron you have to use very complex interface https://www.electronjs.org/docs/latest/api/session#sesresolveproxyurl
  4. Socks proxy is supported out of the box
  5. HTTP/2 performance and support is much better than in Node.js
  6. Rustls https://github.com/rustls/rustls is used for TLS

Usage

This library provides an Agent that is fully compatible with the undici.Dispatcher interface. This allows it to be used as a global dispatcher for fetch or with other undici-compatible APIs.

import { Agent } from 'node-reqwest';
import { setGlobalDispatcher } from 'undici';

// Create an agent with system proxy enabled (default)
const agent = new Agent({
  allowH2: true,
  proxy: 'system'
});

setGlobalDispatcher(agent);

// Now all fetch calls will use reqwest under the hood
const response = await fetch('https://example.com');

Install script

Warning: this package uses install script to download precompiled binary for the correct OS and architecture. All the binaries get attached to GitHub release. The releases are made immutable to prevent supply chain attacks.