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

@node-software-ts/server-cli

v1.1.2

Published

Deploy and manage Next.js, Nuxt.js, Laravel (Supervisor) and Socket apps on a Linux server.

Downloads

1,682

Readme

@mohamed-emad-software/server-cli

Deploy and manage Next.js (static export), Nuxt.js, Laravel (Supervisor), and Socket.io apps on a Linux server with PM2.

Install

npm i -g @mohamed-emad-software/server-cli
server --version

Quick start

# Next.js
server next /home/offroads/provider.offroadsapp.com 4989
server next 4989             # from inside the dir
server 4989                  # type auto-detected

# Restart (no port check)
server restart /home/offroads/provider.offroadsapp.com
server restart               # from inside the dir
server restart all

# Nuxt.js
server nuxt /home/wesellco/public_html 4988

# Laravel / Supervisor
server supervisor /home/aladarba/public_html

# Socket (v1.1)
server socket /home/foo/chat-app 4990

Auto-detection

  • Type: nuxtnextsocketsupervisor (see source src/core/detect.ts).
  • User: /home/<user>/..., else --user, else $USER.
  • Name: package.json / composer.json name, else a stable fallback.
  • Domain (health check): --domain, cPanel userdata, nginx server_name, or directory basename if it looks like a domain.

Supported project types

| Type | Detection / notes | Runtime | | ----------- | ------------------------------------------------------ | -------------- | | next | next.config.* or .next/, static export out/ | PM2 + static server | | nuxt | .output/server/index.mjs or nuxt.config.* | PM2 + Nitro | | supervisor | artisan + composer.json | supervisord | | socket | server/app.js + socket.io dependency (v1.1) | stub in v1.0 |

Config

Global defaults live in ~/.server-cli/config.json (create via server init).

Optional per-project overrides in ./server.yaml (name, type, port, env).

Precedence: defaults → global JSON → server.yaml → CLI flags.

Global flags

| Flag | Meaning | | ---- | ------- | | --dry-run | Log shell/file actions, execute nothing | | --verbose / -v | Stream child output | | --yes / -y | Non-interactive init | | --user | Override detected Linux user | | --name | Override app name | | --domain | Override health-check domain | | --no-healthcheck | Skip HTTP probe | | --config | Alternate global config path |

Troubleshooting (exit codes)

| Code | Meaning | | ---- | ------- | | 10 | Bad arguments / merge conflicts | | 20 | Missing/empty directory | | 30 | Port in use | | 40 | Unknown project type / missing metadata | | 50 | Build failed | | 60 | PM2 / permission issues | | 70 | Supervisor failure | | 80 | Health check failed | | 90 | Lock held |

License

MIT