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 🙏

© 2024 – Pkg Stats / Ryan Hefner

fastagent

v1.0.7

Published

Fast nodejs http/https client

Downloads

66

Readme

fastagent

Node.js module for highload projects, written on typescript

Table of Contents

Install

npm:

npm install fastagent

yarn:

yarn add fastagent

Usage

import Client from "fastagent";
const client = new Client();

( () => {
    client.get({
        uri: "https://www.google.com",
        responseType: "text"
    }, console.log);
})();

Benchmarks

> node -r ts-node/register --max-old-space-size=4096 benchmark/index.ts

[core] http [GET] x 23,718 ops/sec ±6.20% (180 runs sampled)
[core] https [GET] x 21,763 ops/sec ±3.45% (180 runs sampled)
[fastagent] http empty response [GET] x 21,269 ops/sec ±1.48% (174 runs sampled)
[fastagent] https empty response [GET] x 19,905 ops/sec ±0.78% (179 runs sampled)
[fastagent] http empty response with url.parse [GET] x 14,545 ops/sec ±2.64% (173 runs sampled)
[fastagent] http binary response [GET] x 17,252 ops/sec ±1.26% (178 runs sampled)
[fastagent] https binary response [GET] x 16,766 ops/sec ±2.38% (174 runs sampled)
[superagent] http [GET] x 9,476 ops/sec ±5.54% (171 runs sampled)
[superagent] https [GET] x 9,998 ops/sec ±2.52% (175 runs sampled)
[request] http [GET] x 9,661 ops/sec ±1.85% (180 runs sampled)
[request] https [GET] x 8,907 ops/sec ±1.42% (179 runs sampled)
[axios] http [GET] x 7,725 ops/sec ±3.30% (173 runs sampled)
[axios] https [GET] x 7,551 ops/sec ±2.53% (169 runs sampled)
[got] http [GET] x 2,712 ops/sec ±3.42% (171 runs sampled)
[got] https [GET] x 2,851 ops/sec ±2.78% (173 runs sampled)
Benchmark done

License

MIT © Ibragim Zubailov