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

coronncet

v2.1.1

Published

A HTTP client for devs that love low-level communication

Readme

What is coronncet

Coronncet is a http client library that provides low-level access to TCP connection. Its made with TypeScript and built with Rollup so it supports both commonjs and es.

Features of coronncet

  • Its directly made on top of Node.js TCP API.
  • It supports both HTTP and HTTPS. (TLSv1.2 and TLSv1.3)
  • Doesn't close the connection after each request.
  • It has types by TypeScript.
  • It supports HTTP/1.1.

Coronncet API

import { HTTPAgent } from 'coronncet';

const conn = new HTTPAgent('https://www.example.com');
conn.connect(); // Async function
const resp = await conn.get('/'); // Async function
conn.disconnect(); // Async function
  1. We are creating a connection object
  2. We are calling connect() on the connection object.
  3. We are calling get() on the connection object and returns the response object.
  4. We are calling disconnect() on the connection object.

HTTPAgent

Is the class that responsible for creating a http agent and maintaining it. It is the child class of HTTPConnection. Difrence beetwen them is that HTTPAgent has built in http methods.

Option timeout is used for responses that has not Content-Length header.

connection(Url: string, Options?: { timeout?: number}): Connection;

.connect()

Connects to the server. It returns a promise that resolves when the connection is established. if the connection is already established, it returns a promise that resolves immediately.

if it returns with true, it means the connection is established.

connection.connect(): Promise<boolean>;

.setHeader(key, value)

Sets the header for the requests that will be sent to the server.

connection.setHeader(key: string, value: string | number): void;

.get(path)

Sends a GET request to the server for the given path. Its returns a promise that resolves when the response is received.

connection.get(path: string): Promise<Response>;

.post(path, body)

Sends a POST request to the server for the given path. Its returns a promise that resolves when the response is received.

connection.post(path: string, body: any): Promise<Response>;

Most of the HTTP methods same as .get() and .post().

Supported HTTP methods: GET, POST, PUT, DELETE, HEAD, PATCH

.disconnect()

Disconnects from the server. Its same as the connect() function.

connection.disconnect(): Promise<boolean>;

.connected

Type of boolean, default is false. It indicates whether the connection is established or not. Protected veriable

.headers

Type of object, default is {}. It contains the headers that will be sent to the server.

Response

Is the class that responsible for handling the response.

.getRaw()

Returns the raw body of the response. if the response is not fully received, it throw error.

response.getRaw(): Buffer;

.getText(Encoding)

Returns the body of the response as a string. With encoded as the parameter of the function. Default is ascıı.

response.getText(encoding: string): string;

If sended request is a HEAD request .getText() and .getRaw() will throw error.

.statusCode

Type of number. It contains the status code of the response.

.headers

Type of object. It contains the headers of the response.