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

zenpaneljs

v1.0.1

Published

Zen Panel NPM Package

Readme

ZenpanelJS

NPM Package for Zen Panel

Become a patron

Wanna join the crab family? And support the crab king and his projects?

By becoming a patron of the crab family you will get

  • Access to the crab family's discord server
  • Early access to new projects
  • Access to get commissions directly from the crab king him self

Become a patron now! Click here ;D

Getting started

 const ZenAPIJS = require('zenapijs').default;
 const ZenAPI = new ZenAPIJS('https://api.zen-panel.net');

Overview

FTP

Service

Ftp

Authenticate the FTP user

// Secret code for the selected daemon
var daemon_secret_code = '04fefc50-1518-4968-bd89-2b99a3941a6c';

// FTP user credentials
var credentials = {
    username: '605cc7d7bc733dae5dab1430',
    password: 'HEPzVLnZVuhyYdDmudpP1FmNq7YDPnQO'
};

ZenAPI.ftp().authenticateUser(daemon_secret_code, credentials.username, credentials.password).then(data => {
    console.log(data);
    /*
    {
        "path": "/",
        "serviceId": "605cdd28bc733dae5dab1433"
    }
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});

Create a new FTP user

// User authentication code
var auth_code = 'ca221d77-6408-471f-af7f-c370f0bad562';

// Body content
var content = {
    serviceId: '605cdd28bc733dae5dab1433',
    path: '/plugins/',
    daemon: 'daemon01'
};

ZenAPI.ftp().newFtpUser(auth_code, content).then(data => {
    console.log(data);
    /*
    {
        "message": "Created a new FTP user."
    }
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});

Get all created FTP users of service

// User authentication code
var auth_code = 'ca221d77-6408-471f-af7f-c370f0bad562';

// Service ID of the requested service
var serviceId = '605cdd28bc733dae5dab1433';

ZenAPI.ftp().getAllUsers(auth_code, serviceId).then(data => {
    console.log(data);
    /*
    [
        {
            "username": "605cc7d7bc733dae5dab1430",
            "password": "HEPzVLnZVuhyYdDmudpP1FmNq7YDPnQO",
            "path": "/"
        },
        {
            "username": "605def9c83b75a61c804dcd7",
            "password": "hX7CvC0vRvZEIOi6ohjQO15gUlAsXaqX",
            "path": "/plugins/"
        }
    ]
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});

Service

Authenticate access for the service

// User authentication code
var auth_code = 'ca221d77-6408-471f-af7f-c370f0bad562';

// Service ID of the requested service
var serviceId = '605cdd28bc733dae5dab1433';

ZenAPI.service(auth_code, serviceId).authenticate().then(data => {
    console.log(data);
    /*
    {
        "message": "Access granted."
    }
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});

Get service data

// User authentication code
var auth_code = 'ca221d77-6408-471f-af7f-c370f0bad562';

// Service ID of the requested service
var serviceId = '605cdd28bc733dae5dab1433';

ZenAPI.service(auth_code, serviceId).getData().then(data => {
    console.log(data);
    /*
    {
        "message": "Access granted."
    }
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});

Control service

// User authentication code
var auth_code = 'ca221d77-6408-471f-af7f-c370f0bad562';

// Service ID of the requested service
var serviceId = '605cdd28bc733dae5dab1433';

ZenAPI.service(auth_code, serviceId).start().then(data => {
    console.log(data);
    /*
    {
        "message": "Server started."
    }
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});

ZenAPI.service(..., ...).stop().then(data => ...).catch(err => ...);
ZenAPI.service(..., ...).kill().then(data => ...).catch(err => ...);

Send command to the service

// User authentication code
var auth_code = 'ca221d77-6408-471f-af7f-c370f0bad562';

// Service ID of the requested service
var serviceId = '605cdd28bc733dae5dab1433';

// Command to send
var command = 'op Notch';

ZenAPI.service(auth_code, serviceId).sendCommand(command).then(data => {
    console.log(data);
    /*
    {
        "message": "Server started."
    }
    */
}).catch(err => {
    console.log(err);
    /*
    {
        "error": {
            "message": "Not authorized."
        }
    }
    */
});