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

proxymenu

v0.6.3

Published

Configure, run, and list multiple proxies

Readme

proxymenu: Configure, run, and list HTTP proxy servers

proxymenu lets you configure and run multiple HTTP proxy servers (using Node Express and http-proxy-middleware) and render a list of your running proxy servers in a web browser.

Installation

npm install proxymenu

Usage

proxymenu exports the following functions:

startProxyMenu(options)

Runs a web server on the specified port number, which simply responds with an HTML table of the running proxy servers, giving the name and HTTP URL link of each proxy server.

  • options (Object)
    • title: (string) title text to appear above the proxy menu table; defaults to "Proxy Menu"
    • port: (number) local port number
    • timeout: (number) milliseconds after which a request should receive a timeout error response

Returns: ProxyMenu Object, which should be passed as the proxyMenu option in all calls to the startProxy function.

startProxy(options)

Run an HTTP proxy server configured by the specified options.

  • options (Object)
    • port (number): local port number of proxy server
    • path (string): URL path that must be matched on requests to this proxy server
    • timeout (number): milliseconds after which a request should receive a timeout error response
    • name (string): Unique identifier for this proxy server, which will appear in the proxy menu; see startProxyMenu function above
    • proxyMenu (ProxyMenu Object): See startProxyMenu function above
    • targets (Array of TargetConfig Objects)

Each target config object may define:

  • path (string) or paths (Array of string): the HTTP request URL path(s) to be matched to this target
  • sockets (boolean): Set to true to enable WebSockets from proxy port to this target
  • middleware (Function): When provided, this Express middleware function will be used to handle requests, ignoring all other options below
  • target (string): If given, the URL of the target HTTP server
  • body (string): When target is omitted, use body to specify the response body (usually HTML or plain text) that should be returned to matching requests
  • headers Object: When target is omitted, headers to specify the response headers (usually HTML or plain text) that should be returned to matching requests
  • methods (Array of string): HTTP methods to be matched to this target
  • pathRewrite (Function): takes request URL path as parameter and returns a new path to be used in the proxied request to the target HTTP server
  • Additional options may be specified and will be passed to the createProxyMiddleware method of http-proxy-middleware.

Each target config should specify a target or a body; if both are specified, target will have precedence, and body will be ignored.

Only one target of a proxy server may have sockets enabled.

responseInterceptor

For convenience, proxymenu also exports the responseInterceptor method from http-proxy-middleware. See the Response Interceptor guide for more info and examples.