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

pegasus-core

v2.4.1

Published

πŸš€ Professional SSH Node Management System with CLI

Readme

πŸš€ Pegasus Core

Professional SSH Node Management System with Enterprise Security

A bulletproof, web-based SSH management platform with Pterodactyl-inspired UI, built for production environments with comprehensive security hardening.

npm version License: MIT Security: Hardened

✨ Features

  • 🌐 Beautiful Web Interface - Dark theme with modern UI
  • πŸ” Enterprise Security - Rate limiting, JWT tokens, bcrypt hashing
  • πŸ–₯️ SSH Management - Connect and manage multiple servers
  • πŸ“Š Real-time Monitoring - System stats and performance metrics
  • πŸ—„οΈ Multi-Database Support - PostgreSQL, MySQL, SQLite, In-Memory
  • βš™οΈ Fully Configurable - 25+ environment variables for customization
  • πŸ›‘οΈ Zero Vulnerabilities - Comprehensive security hardening
  • 🌍 Production Ready - OWASP Top 10 compliant

πŸ“‹ Prerequisites

System Installation

Install Node.js and npm (Required):

Ubuntu 22.04:

# Update package index
sudo apt update

# Install curl (if not already installed)
sudo apt install curl

# Install NodeSource repository for latest Node.js
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -

# Install Node.js and npm
sudo apt install nodejs

# Verify installation (should show v18.x.x and 9.x.x+)
node --version && npm --version

⚠️ Important: The default Node.js in Ubuntu 22.04 repositories (v12.x) is too old and will cause compatibility issues. You must use Node.js v16+ from NodeSource as shown above.

System Requirements

  • Node.js v16.0.0 or higher (v18+ recommended, tested up to v22)
  • npm v8.0.0 or higher (comes with Node.js)
  • Operating System: Ubuntu 22.04 LTS (officially supported)
  • Memory: 512MB minimum, 1GB+ recommended
  • Storage: 1GB minimum free space

πŸ› οΈ Development Setup

For developers who want to contribute or run from source:

# Clone the repository
git clone https://github.com/Daniel-Farmer/pegasus-core.git
cd pegasus-core

# Install all development dependencies
npm install

# Install all database drivers for testing
npm install sqlite3 pg mysql2

# Install development tools
npm install -g nodemon typescript @types/node

# Build the project
npm run build

# Run in development mode
npm run dev

πŸš€ Quick Start

Installation

# Install globally via npm (includes all core dependencies)
npm install -g pegasus-core@latest

# Create a new instance
pegasus-core init my-instance

# Start the server
pegasus-core start my-instance

Web Setup

  1. Open your browser to http://localhost (or your server IP)
  2. Complete the 4-step installation wizard:
    • Welcome & system check
    • Create admin account
    • Configure database
    • Installation complete

πŸ“‹ CLI Commands

Instance Management

# Create new instance
pegasus-core init <name> [--port 3001]

# List all instances
pegasus-core list

# Start instance
pegasus-core start <name>

# Stop instance
pegasus-core stop <name>

# Restart instance
pegasus-core restart <name>

# Remove instance (requires --force)
pegasus-core remove <name> --force

# Show instance status
pegasus-core status [name]

System Management

# Update system
pegasus-core update [name]

# View logs
pegasus-core logs [name]

# Health check
pegasus-core health [name]

# Open in browser
pegasus-core open [name]

πŸ”„ Auto-Update System

Pegasus Core includes a comprehensive auto-update system for self-hosted servers that ensures safe updates without data loss.

Features

  • πŸ”„ Automatic Updates: Daily checks with automatic installation
  • πŸ’Ύ Smart Backups: Pre-update backups with rollback capability
  • πŸ›‘οΈ Safe Operations: Graceful shutdown and health checks
  • ⏰ Scheduled Updates: Configurable maintenance windows
  • πŸ“Š Health Monitoring: Post-update validation and status reporting

Quick Setup

# Download and install auto-update system
curl -fsSL https://raw.githubusercontent.com/Daniel-Farmer/pegasus-core/production/scripts/download-auto-update.sh | bash

# Or install from npm package
cd /usr/local/lib/node_modules/pegasus-core/scripts
sudo ./install-auto-update.sh

Usage

# Check for updates
pegasus-check

# Manual update
pegasus-update

# Create backup
pegasus-backup

# Restore from backup
pegasus-restore /path/to/backup.tar.gz

# View update status
systemctl status pegasus-auto-update.timer

Configuration

Edit /etc/pegasus-core/update-config.conf to customize:

  • Maintenance windows
  • Backup retention
  • Health check timeouts
  • Notification settings

For complete documentation, see scripts/AUTO-UPDATE-README.md.

πŸ› οΈ Troubleshooting

Common Issues

Port Already in Use

# Check what's using the port
sudo lsof -i :3001

# Use a different port
pegasus-core init my-instance --port 3002

Database Connection Failed

# Check database status
pegasus-core status my-instance

# Reset database
pegasus-core remove my-instance --force
pegasus-core init my-instance

πŸ“š API Documentation

Authentication

POST /api/auth/login
{
  "username": "admin",
  "password": "your-password"
}

Node Management

GET /api/nodes           # List all nodes
POST /api/nodes          # Create new node
PUT /api/nodes/:id       # Update node
DELETE /api/nodes/:id    # Delete node

🀝 Contributing

Development Setup

## 🌿 Branch Structure

This repository follows a simplified two-branch workflow:

- **`production`** - Stable production releases, used for NPM publishing and GitHub releases
- **`development`** - Active development branch, where new features and fixes are integrated

### Release Process

1. **Development** β†’ Features and fixes are merged here first
2. **Production** β†’ Stable code is merged from development for releases
3. **NPM Publishing** β†’ Done from production branch with version tags

## 🀝 Contributing

```bash
# Fork and clone the repository
git clone https://github.com/YOUR-USERNAME/pegasus-core.git
cd pegasus-core

# Install dependencies
npm install

# Create feature branch from development
git checkout development
git checkout -b feature/your-feature-name

# Submit pull request to development branch

## πŸ“„ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## πŸ“ž Support

- **GitHub Issues** - [Report bugs](https://github.com/Daniel-Farmer/pegasus-core/issues)
- **Documentation** - [Wiki](https://github.com/Daniel-Farmer/pegasus-core/wiki)

---

**Made with ❀️ by Daniel Farmer**

*Pegasus Core - Professional SSH Management for the Modern Era*