Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

317 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Linux Server Control Panel

Lightweight, modern, realtime Linux server control panel β€” a blend of aaPanel, Portainer, CasaOS, and Cockpit, but far lighter.

Node.js Version License

Core Features

  • πŸ” Multi-Factor Authentication (MFA / 2FA) β€” Access token, refresh token, TOTP (Google Authenticator/Authy) session management
  • πŸ‘₯ Dynamic RBAC β€” Super Admin, Admin, Operator, Read Only with per-resource permissions
  • πŸ“Š Realtime Dashboard β€” CPU, RAM, Disk, Temperature, Network via Socket.IO + Chart.js, featuring a Real-Time Process Inspector (sort by CPU/Memory)
  • πŸ“ˆ Monitoring β€” Historical metrics, disk health, network interfaces (with IP mapping), alert thresholds
  • πŸ–₯️ Web Terminal β€” xterm.js + node-pty, multi-tab, bash/zsh/fish
  • πŸ“ File Manager β€” Browse, upload, download, edit, zip/unzip, rename, delete, search
  • πŸ›‘οΈ Security & SSH Key Manager β€” Dedicated UI to manage SSH keys (authorized_keys), SSH port, Password Authentication toggle, and live Fail2Ban intrusion logs dashboard
  • 🌐 Tailscale VPN Integration β€” Optional client-side status dashboard, automatic installation scripts, one-click connection/disconnection controls, and web browser or auth key configuration to securely access the panel privately
  • πŸ”Œ Plugin Marketplace & SDK β€” Install/uninstall extensions dynamically with hot route mounting
  • 🐘 PHP Manager Plugin β€” Complete control panel for multiple PHP versions (8.1 - 8.4) with FPM service actions and custom php.ini config values
  • 🐳 Docker & Compose Engine β€” Start, stop, monitor telemetry, and deploy compose stacks (with automatic fallback to standalone docker-compose)
  • πŸ”’ Let's Encrypt Auto-Renewal β€” Automatic SSL certificate request and renewal scheduler built into the panel health system
  • βš™οΈ Distro-Aware Auto-Updates β€” Dynamically writes daily update/upgrade cron scripts tailored to native package managers (APT, DNF, Pacman, Emerge)
  • πŸ“± Responsive Design β€” Fully mobile-friendly layout with a frosted-glass Burger Sidebar Drawer offcanvas navigation menu
  • πŸ“‘ Built-in Plugins β€” DB Web Admin (phpMyAdmin, pgAdmin, Adminer), Smart Home Manager (Home Assistant, Mosquitto, Zigbee2MQTT), Media & Cloud Services (Jellyfin, qBottorrent), Realtime Log Analyzer, OpenClaw AI, WireGuard VPN, Fail2ban Admin, PM2 Manager, S3/Rclone Backups, Redis, Nextcloud, AdGuard Home, MinIO S3 Server, Uptime Kuma, and Rclone Manager (featuring host-level dependencies auto-installers)
  • πŸ” Security Hardened (v1.8.0) β€” Shell injection prevention via execFile(), Zip Slip protection, upload extension blocking (18 dangerous types), WAL-safe graceful shutdown, EISDIR crash guard, storage permission hardening (750), and path traversal validation on rename

Requirements

  • Node.js 20+
  • SQLite 3 (embedded, zero-configuration required)
  • Redis 7 (optional, for background jobs and message queues)
  • Linux (Debian/Ubuntu/Fedora/Arch/Gentoo) for full terminal/PTY and service management features

Quick Start

With Docker Compose (Recommended)

cp .env.example .env
# Edit .env and set secure secrets.
docker compose up -d

Open: http://localhost:23456
Login: admin / Admin@123456 (change this immediately!)

With Docker CLI

# Pull the latest image from Docker Hub
docker pull mastarom/panelku:latest

# Run the container
docker run -d -p 23456:3000 --name panelku \
  -v $(pwd)/storage:/app/storage \
  mastarom/panelku:latest

Manual Install

# Install dependencies
npm install

# Copy and configure environment
cp .env.example .env

# Start development server
npm run dev

# Or production with PM2
pm2 start ecosystem.config.cjs

One-Click Server Install (Debian/Ubuntu/Fedora/Arch/Gentoo)

sudo bash scripts/install.sh

Architecture

src/
β”œβ”€β”€ app.js              # Express factory
β”œβ”€β”€ server.js           # HTTP + Socket.IO entry
β”œβ”€β”€ bootstrap.js        # DB, Redis, WS, jobs, plugins
β”œβ”€β”€ config/             # App, DB, Redis, Socket, Logger configs
β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ db/             # SQLite Singleton and Schema definitions
β”‚   β”œβ”€β”€ events/         # EventBus (pub/sub)
β”‚   β”œβ”€β”€ scheduler/      # Background job scheduler
β”‚   β”œβ”€β”€ permissions/    # Dynamic RBAC engine
β”‚   └── plugin-loader/  # Plugin SDK
β”œβ”€β”€ middleware/         # Auth, RBAC, rate limit, error handler
β”œβ”€β”€ models/             # Mongoose-compatible SQLite models
β”œβ”€β”€ repositories/       # Data access layer
β”œβ”€β”€ helpers/            # Response, crypto, system, validation
β”œβ”€β”€ modules/            # Feature modules (auth, users, dashboard, etc.)
β”œβ”€β”€ websocket/          # Socket.IO namespaces
β”œβ”€β”€ jobs/               # Background jobs
β”œβ”€β”€ public/             # Static assets (CSS, JS)
└── views/              # HTML pages

Default Credentials

Username Password Role
admin Admin@123456 Super Admin

⚠️ Change the default password immediately after first login!

Roadmap

Phase Status Features
Phase 1 βœ… Done Auth, RBAC, Dashboard, Monitor, Terminal, File Manager
Phase 2 βœ… Done Docker, Websites, Domains, SSL
Phase 3 βœ… Done Database Management, Backup, Cron
Phase 4 βœ… Done Firewall, WAF, Security, Notifications
Phase 5 βœ… Done Git Deploy, Auto Update, Plugin Marketplace, WireGuard VPN, Fail2ban, PM2, Rclone, OpenClaw AI, DB Web Admin, Smart Home, Media Services, Log Analyzer
Phase 6 (v1.6.0) βœ… Done Multi-Node Cluster, SQLite Auto-Backups, PTY Terminal Command Audit Log, GitHub Actions Docker Hub Integration
Phase 7 (v1.7.0) βœ… Done OpenClaw AI Copilot Floating Assistant, Nginx Reverse Proxy Docker Mapper, PHP Pool Configuration Manager, Database Visual Explorer/Console, WhatsApp Alerting, Service Watchdog Auto-Healer, Visual Audit Log Dashboard, Security Advisor (One-Click Fix), Multi-Cloud S3 Backup, Terminal AI Suggestions, Git Webhook Auto-Build, Tailscale VPN Integration
Phase 8 (v1.8.0) βœ… Done Security Patch β€” Shell injection fix (execFile), Zip Slip protection, upload extension filter, graceful shutdown WAL-safe, EISDIR crash guard, install dir fix (/opt/panelku), storage permission hardening (750β†’), multi-distro install.sh rewrite
Phase 9 (v1.9.0) βœ… Done Runtime Managers β€” Node.js version management (nvm/nodenv), Python virtual environments (pyenv), Gunicorn/Uvicorn setup, MongoDB Manager, Redis Manager, Apache Manager
Phase 10 (v1.9.0) βœ… Done Backup & Disaster Recovery β€” Rclone + S3 automated backups, scheduled snapshots, retention policies, one-click restore
Phase 11 (v1.9.0) βœ… Done Analytics & Monitoring β€” Metrics & Logs Analytics Dashboard, historical trend analysis, log aggregation, Prometheus-style visualization
Phase 12 (v1.9.0) βœ… Done Multi-User RBAC + SSO/LDAP β€” LDAP authentication, SAML/OpenID Connect SSO, fine-grained permissions, group-based role mapping
Phase 13 (v1.9.0) βœ… Done Service Mesh & Auto-Healing β€” systemd health checks, auto-restart, alerting, service dependency management
Phase 14 (v1.9.0) βœ… Done Auto-Updater & Rollback β€” One-click git update, pre-update health check, automatic rollback on failure, update history
Phase 15 (v1.9.0) βœ… Done Caddy Server Manager β€” Full Caddyfile editor, automatic HTTPS, reverse proxy, static file serving
Phase 16 (v1.9.0) βœ… Done AI Auto-Repair β€” GPT-powered log analysis, auto-fix suggestions, predictive alerts, self-healing engine
Phase 17 (v1.9.0) βœ… Done Enhanced Database Explorer β€” 5-tab explorer (Browse/Structure/Query/Export/History), pagination, sorting, export/import JSON/CSV/SQL
Phase 18 (v1.9.0) βœ… Done GPU Manager β€” NVIDIA GPU monitoring (nvidia-smi), CUDA/CUDNN detection, process management, power limit control
Phase 19 (v1.9.0) βœ… Done Power Manager β€” CPU governor control, power profiles, suspend/hibernate, thermal zones, fan monitoring
Phase 20 (v1.9.0) βœ… Done Mail Server Manager β€” Postfix/Dovecot/SpamAssassin, email accounts, mail queue, spam config, SSL certs
Phase 21 (v1.9.0) βœ… Done CDN & Cache Manager β€” Cloudflare API, Varnish cache, Redis cache, Full Page Cache (Nginx FPC)
Phase 22 (v1.9.0) βœ… Done IoT & Edge Device Manager β€” Mosquitto MQTT, Home Assistant, Node-RED, device discovery, MQTT metrics
Phase 23 (v2.0.0) βœ… Done Password Policy Engine & History β€” Password complexity rules, expiration job, force change prompt on login, policy history & JSON import/export
Phase 24 (v2.0.0) βœ… Done Split-View File Manager & CodeMirror β€” Tree + CodeMirror editor split view, light/dark themes, media previewer (image zoom/audio/video/PDF), tree-to-editor drag & drop, CSP nonces, rate limiters, 0-vulnerability audit

Changelog

v2.0.0 β€” July 28, 2026 (Major Architecture & Security Release)

Password Policy Engine, Split-View File Manager with CodeMirror & Media Previews, CSP Security Hardening, and 0-Vulnerability Dependency Audit.

πŸš€ New Features & Enhancements

  • Password Policy Engine & Expiry Reminder: Configurable password complexity rules, automated password expiration reminder background job, forced password change on login (mustChangePassword), policy history audit trail, and JSON import/export.
  • Split-View File Manager: Dual-pane file manager with side-by-side file tree and editor, smooth draggable divider, and full-width responsive flex container.
  • Self-Hosted CodeMirror Integration: CodeMirror text editor with syntax highlighting, active line highlighting, match brackets, auto-close brackets, line numbers, and instant light/dark theme switcher.
  • Media & Document Previewer: Inline file previewer for images (with zoom in/out, fit-to-width, fit-to-page controls & mouse wheel zoom), audio player, video player, and PDF reader iframe inside the split view.
  • Tree-to-Editor Drag & Drop: Drag files or folders from the file explorer tree directly into the editor to insert relative/absolute paths at cursor position.
  • CSP Nonce Security Hardening: Automated Content Security Policy nonce injection for all inline scripts & style blocks across EJS views.
  • Optimized Rate Limiting: Smart API & Download Token rate limiters with loopback/auth exemptions to prevent false-positive 429 Too Many Requests during active session management.
  • 0-Vulnerability NPM Audit: Resolved 100% of high-severity npm vulnerabilities via package overrides (brace-expansion 5.0.8).

v1.9.0 β€” July 17, 2026 (Major Feature Release)

12 new modules added β€” GPU management, power management, mail server, CDN/cache, IoT device manager, enhanced database explorer, runtime managers, and more.

πŸš€ New Modules

  • GPU Manager β€” Full NVIDIA GPU monitoring via nvidia-smi, CUDA/CUDNN detection, per-GPU utilization (GPU/Memory/Power), temperature, fan, clocks, process management with kill capability, power limit control
  • Power Manager β€” CPU frequency scaling & governor control, power profiles (Performance/Balanced/Power-Saver), suspend/hibernate/hybrid-sleep, thermal zone monitoring with threshold alerts, fan RPM monitoring
  • Mail Server Manager β€” Postfix/Dovecot/SpamAssassin: install/uninstall, domain management, email accounts (SHA512-CRYPT), mail queue view/flush/delete, SpamAssassin config, SSL viewer, journalctl logs
  • CDN & Cache Manager β€” Cloudflare API (zone list, cache purge, analytics), Varnish (status, VCL editor, cache purge), Redis cache stats/flush, Full Page Cache
  • IoT & Edge Device Manager β€” Mosquitto MQTT broker (config/users/ACL/publish QoS), Home Assistant & Node-RED Docker deploy, nmap device discovery, MQTT metrics
  • Enhanced Database Explorer β€” 5-tab explorer: Browse (paginated, sortable), Structure (columns/keys/FK), Query (SQL console with Ctrl+Enter), Export (JSON/CSV/SQL), Import (CSV/SQL), History (last 100 queries)
  • Runtime Managers β€” Node.js version management (nvm/nodenv), Python virtual environments (pyenv/Gunicorn/Uvicorn), MongoDB full management, Redis dashboard with keyspace monitor, Apache virtual host manager
  • Caddy Server Manager β€” Full Caddyfile editor, automatic HTTPS, reverse proxy config, import management
  • AI Auto-Repair β€” GPT-powered log analysis, intelligent fix suggestions with one-click apply, predictive alerting, trend analysis
  • Auto-Updater & Rollback β€” One-click git update with pre-update health check, automatic rollback on failure
  • Multi-User RBAC + SSO/LDAP β€” LDAP integration, SAML/OpenID Connect SSO, fine-grained permissions, group-based mapping
  • Service Mesh & Auto-Healing β€” systemd health checks, auto-restart, alerting on repeated failures
  • Backup & Disaster Recovery β€” Rclone + S3 automated backups with retention policies
  • Analytics Dashboard β€” Historical metrics with time-range selectors, log aggregation, trend charts
  • Comprehensive Swagger API Docs β€” OpenAPI 3.0 documentation for all modules with interactive Try-It-Out

v1.8.0 β€” July 15, 2026 (Security Patch)

πŸ”΄ Critical: Shell injection fix (execFile), Zip Slip protection, upload filter (18 types), graceful shutdown WAL-safe, EISDIR crash guard, install dir fix (/opt/panelku), storage 750, install.sh multi-distro rewrite.

v1.7.0 β€” July 13, 2026

OpenClaw AI Copilot, Nginx Reverse Proxy Docker Mapper, PHP Pool Manager, Database Visual Explorer, WhatsApp Alerting, Service Watchdog, Audit Log Dashboard, Security Advisor, Multi-Cloud S3 Backup, Terminal AI, Git Webhooks, Tailscale VPN.

v1.6.0 β€” July 9, 2026

Multi-Node Cluster Manager, SQLite Auto-Backups, Terminal Audit Logs, GitHub Actions CI/CD.

v1.5.0 β€” July 8, 2026

PHP Manager, 2FA/MFA, SSH Key Manager, Let's Encrypt Auto-Renewal, Fail2Ban logs, distro-aware auto-updates.

License

MIT

About

panelku

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages