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

pmhttp

v1.4.1

Published

A simple, lightweight, CLI and in development HTTP server

Readme

PMHTTP: a simple HTTP server

What is PMHTTP, exactly?

It's a static, very lightweight and in development HTTP server. In simple terms: if you have a static website that only contains pages and other documents ready to be served, this server may be just the thing for you.
It's working properly (at least after many tests), but it only accepts GET and HEAD requests.
Everything is coded in JS (no surprises here) and works with Node.js (wow, really?).
It depends on the npm package yargs.
Requests are treated asynchronously : it can handle several at once.
About its name: it comes from the colossal lack of imagination of its author, PMLefra. It might change later (the name, not the author).
Here's the source code on GitLab, and here's the npm package page.

How do I make it work?

It's very easy, install Node.js, npm, and use the command npm i pmhttp or npm i -g pmhttp to install it globally.
Then, localize the folder that you want to serve and memorize its path (absolute or relative).
Input one of these commands:

  • if installed globally: pmhttp -t [folder to serve]
  • else, node [path to the PMHTTP folder] -t [folder to serve].

If you want to know more, please read the section below about the command options.

What are its options?

There are seven different options:
-p port, where port is the TCP port on which the server will listen ; by default: 8080.
-a address, where address is the server's IP address ; by default: localhost (127.0.0.1).
-t root, where root is the root folder of the website, i.e. where the documents that should be served will be served. By default, the server will serve the current folder (.).
-v (verbose): with -v enabled, you'll have much more information available in the console, like full request headers, a preview of the request bodies, and information about the incoming connections.
-q (quiet): don't log requests in the console at all. Useless if verbose is enabled.
--help: displays a usage menu.
--version: displays the package's version.

If you want to test it

A www folder is included that contains test pages that are written in french. If you find any bugs or vulnerabilities, please let me know! Here's my Twitter.