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

supervisord-monitor

v1.0.3

Published

Supervisord Manager is a web-based interface designed to manage Supervisord processes.

Readme

Supervisord Manager

Supervisord Manager is a web-based interface designed to manage Supervisord processes. It provides a user-friendly way to monitor and control processes managed by Supervisord, making it easier to handle process management tasks.

Features

  • Web Interface: A simple and intuitive web interface to manage Supervisord processes.
  • User Authentication: Secure access with user authentication.
  • Process Control: Start, stop, and restart processes directly from the web interface.
  • Configuration Management: Manage Supervisord configuration files.
  • Real-time Monitoring: View real-time status and logs of managed processes.

Preview

Installation

  • install package

    npm install -g supervisord-manager
  • configure /etc/supervisor/supervisord.conf

    the username does not have to be a system user. you can make one up. its used for authentication in to the RPC_XML. same goes for the password

    [unix_http_server]
    file=/var/run/supervisor.sock   ; (the path to the socket file)
    chmod = 0777
    username = <username>
    password = <password>
      
    [inet_http_server]
    port = 127.0.0.1:9005
    username = <username>
    password = <password>

Simple usage

supervisord-manager serve --port 1234 \
    --admin-email "[email protected]" --admin-password test --admin-name Admin \
    --rpc-host 127.0.0.1:9005 --rpc-username <username> --rpc-password <password> 

Will host the web interface on http://localhost:1234. You can log in with the admin credentials.

Note that for full functionality, the user running the server should have read/write access to /etc/supervisor/conf.d

Full installation

Generates configuration file and you can choose between systemd service or supervisor program

mkdir ~/.supervisord-manager
cd ~/.supervisord-manager
supervisord-manager init

Will generate

- config.json
- supervisord-monitor.service
- supervisord-monitor.conf
- install-as-systemd.sh
- install-as-supervisor.sh
  • Open and edit config.json and set all required values
  • Open and review supervisord-monitor.conf or if you want to use systemd supervisord-monitor.service, make sure the usage of node version & run as user are correct
  • Run install-as-supervisor.sh to symlink supervisord-monitor.conf into /etc/supervisor/conf.d and reload & start the service
  • OR Run install-as-systemd.sh to symlink supervisord-monitor.service into /lib/systemd/system and reload & start the service

Configuration

The config.json should be structured like this

export interface Configuration {
    port?: number;
    supervisor?: {
        client?: {
            host?:string
            username?:string
            password?:string
        };
        server?: {
            configurationFilePath?: string;
        }
    };
    users?: Array<{ name: string, email: string, password: string }>;
}

Example:

{
    "port": 4035,
    "supervisor": {
        "client": {
            "host": "http://localhost:9005",
            "username": "<username>",
            "password": "<password>"
        },
        "server": {
            "configurationFilePath": "/etc/supervisor/supervisord.conf"
        }
    },
    "users": [
        {"name": "Admin","email": "[email protected]","password": "test1234"}
    ]
}

Security

This package is not meant to be accessed by outside hosts. It is however possible and safe to use nginx or something likewise to make a reversed proxy. This should be combined with only allowing a range of trusted IP addresses.

server {
    listen 80;
    server_name your_domain.com;

    location / {
        proxy_pass http://localhost:4035;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # Allow only specific IP addresses
        allow 192.168.1.100;  # Replace with your allowed IP address
        allow 192.168.1.101;  # Replace with another allowed IP address
        deny all;             # Deny all other IP addresses
    }
}

License

This project is licensed under the MIT License. See the LICENSE file for details.