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

pterostatus

v2.0.0

Published

A npm package meant for tracking your nodes

Readme

Ptero-Status

About

PteroStatus is an easy to setup pterodactyl daemon status project. It will continuously update a discord embed with live stats from your daemons.

Preview

Preview

Installation

Run the following command to install the npm package

npm i pterostatus

Usage

Node:

const Status = require('pterostatus');

const Node = new Status.Node({
    name: 'Node1',
    interval: 15000,
    controller: 'http://91.109.117.42:4000'
});

Controller: (Simple)

const Status = require('pterostatus');

const Controller = new Status.Controller({
    port: 4000,
    interval: 15000
});

Controller: (Advanced)

const Status = require('pterostatus');

const Controller = new Status.Controller(4000, {
    discord: {
        token: 'BOT-TOKEN',
        channel: 'CHANNEL-ID',
    },
    pterodactyl: {
        panel: 'https://panel.domain.com',
        apiKey: 'API-KEY'
    },
    notifications: {
        discord: process.env.DISCORD_WEBHOOK,
        webhook: 'http://0.0.0.0:5000/webhook'
    },
    node: {
        message: '**{node.name}**: [Memory: {node.memory.used}/{node.memory.total}] [Disk: {node.disk.used}/{node.disk.total}]',
        online: '🟢 **ONLINE**',
        offline: '🔴 **OFFLINE**'
    },
    embed: {
        color: '#06cce2',
        title: 'Node Status',
        description: '**Nodes**:\n{nodes.list}\n\n**Total**:\nMemory: {memory.used}/{memory.total}\nDisk: {disk.used}/{disk.total}\n\n**Pterodactyl:**\nUsers: {pterodactyl.users}\nServers: {pterodactyl.servers}',
        footer: {
            text: 'Last updated: {lastupdated}',
            icon: 'https://i.imgur.com/9b1qwml.jpg'
        }
    },
    port: 4000,
    interval: 15000
});

Events

Controller.on('online', (node) => {
    console.log(`Node: "${node.nodeName}" has come back online!`);
});

Controller.on('offline', (node) => {
    console.log(`Node: "${node.nodeName}" has gone offline!`);
});

Pterodactyl Application API Key

You need to have pterodactyl panel installed in order to use PteroStatus' pterodactyl integration. Not all permissions are required on the api key. Please just give the following permissions to the api key Permissions

Placeholders:

NODE: {node.name} - Node's name {node.memory.used} - Total node's memory {node.memory.total} - Total used memory {node.disk.used} - Total used disk {node.disk.total} - Total node's disk {node.cpu.used} - Total used cpu {node.cpu.cores} - Total cpu cores {node.cpu} - Displays the cpu model {node.os} - Displays the os {node.status} - Shows if it's online or offline

NODES: {nodes.online} - Number of online nodes {nodes.offline} - Number of offline nodes {nodes.list} - List of nodes along with their statuses {nodes.total} - Number of total nodes

TOTAL: {memory.total} - Total memory {disk.total} - Total disk {cores.total} - Total cores

USED: {memory.used} - Total memory used by nodes {disk.used} - Total disk used by nodes {memory.used%} - Total memory percentage used by nodes {disk.used%} - Total disk percentage used by nodes

PTERODACTYL: {pterodactyl.users} - Number of current panel users {pterodactyl.servers} - Number of current panel servers

Support

Need some help setting up Ptero-Status? Join BlueFox Development's Discord

https://discord.gg/KHbBfWSdnZ

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT