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

hub-server

v1.0.0

Published

A lightweight server for serving contents to the browser.

Readme

Hub-Server

A lightweight server for serving files to a browser.

Features

Hub-Server is depedencies hassle-free, following are some other features.

  • Lightweight only 3KB (server).
  • Easy to install.
  • Easy to use.
  • High performance.
  • Has CLI option.
  • Speed in resolving requests.
  • Can serve more than 800 type of files.

Installation

You can install Hub-Server easily using the following command:

npm install hub-server --save

or:

npm install -g hub-server --save

Usage

You can use Hub-Server through two ways.

1) As a module

First, require the module:

const HubServer = require("hub-server");

Next, make an instance using new keyword:

let server = new HubServer();

Next, use the serve() method to pass the port you want to connect through:

server.serve(5000);

| Method | Params | | ------- | ------------------------------- | | serve() | port: Accepts number value. |

assets() method:

It's optional, uses to tell Hub-Server where should search for the assets.

server.assets("public");

Here you told Hub-Server to search for the assets in the public folder.

| Method | Params | | -------- | ------------------------------------------------------------------ | | assets() | path: Accepts a string value that represents a name of folder. |

2) As CLI tool

First, make sure you installed Hub-Server following the -g flag.

Next, open Terminal and go to the directory where your project is located and run the following command.

hub-server port=3000

| Argument | Value | | -------- | -------------------------------------------------------------------- | | port | Accepts a number as a value of the port that should connect through. |

assets argument:

It's optional, uses to tell Hub-Server where should search for the assets.

hub-server port=3000 assets=public

Here you told Hub-Server to search for the assets in the public folder.

| Argument | Value | | -------- | -------------------------------------------------------- | | assets | Accepts a string value that represents a name of folder. |

Support

Thank you for using Hub-Server, if you experienced any issue during usage, feel free to describe it here.