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 🙏

© 2025 – Pkg Stats / Ryan Hefner

hejhog

v2.0.5

Published

browser fowarding proxy cli tool

Downloads

36

Readme

hejhog

A simple browser forwarding proxy cli tool useful for analysing web applications.

usage

  • Create some self signed certificates* in the current working directory,
  • install hejhog globally (npm i hejhog -g) and run the hejhog command.
  • Configure your browser to use localhost:8080 as the http and https proxy.
  • Add a self signed certificate authority to the browser.
> hejhog --help
> hejhog --just-urls

You will then see the throughput when connecting to duckduckgo.com in the browser...

<hejhog> listening @ 8080

intercepting https *

You must set up a self signed cryptographic key and certificate to intercept https traffic. This tool has only been tested in https intercepting mode.

Place self signed certificate and keys in the working directory to automatically use them, or alternatively provide the key and cert parameters directly.

create a self signed certificate with OpenSSL

# create the key
openssl genrsa -out ./key.pem 2048
# create the cert
openssl req -x509 -new -nodes -key ./key.pem -days 1024 -out crt.pem -subj "/C=US/ST=Utah/L=Provo/O=ACME Signing Authority Inc/CN=example.com"

add the certificate to the browser

Go to browser preferences / privacy / certificates... add your self signed certificate to the "authorities" tab and select the checkboxes.

configure the browser using hejhog as a proxy server

Go to browser preferences / networks / proxy settings: configure http & https proxy to the port

saving a session

Hejhog works as a ut8 encoded text stream so you can easily store the output of hejhog to a text file for later analysis.

hejhog -v > ./log.txt

issues

Please report any issues.

install

npm i hejhog -g