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

srv-it

v0.5.1

Published

Static server with polished CLI UI, directory listing, and live reload

Readme

srv-it

NPM Last Update NPM Downloads install size NPM Version

elouan.xyz

srv-it is a simple cli that merges the best parts of live-server and serve:

  • one-command static server from any folder
  • polished terminal UX
  • live DOM reload and CSS refresh
  • directory listing with customizable page style
  • simple defaults via config files

Quick start

npm install -g srv-it

Then run:

cd your-project
srv-it

This serves the current directory on port 3000.

Common usage

srv-it
srv-it 3000
srv-it 8080 ./public
srv-it ./public --open
srv-it --style paper --style-css ./srv-listing.css

Config defaults

You can set defaults globally and per-project:

  • global: ~/.srvrc.json
  • project: ./srv.config.json
  • override file: srv-it --config ./my-srv.json
  • template: ./srv.config.example.json

Example srv.config.json:

{
  "port": 3000,
  "host": "0.0.0.0",
  "open": false,
  "single": true,
  "cors": true,
  "style": "midnight",
  "directoryListing": true,
  "noCssInject": false,
  "logLevel": 2,
  "noRequestLogging": false,
  "ignore": ["**/.git/**", "**/node_modules/**"]
}

CLI flags always override config files.

CLI options

Run:

srv-it --help

Supported Arguments

  • -h, --help: show help output
  • -v, --version: print the current version
  • -p, --port <number>: set the server port
  • --host <host>: set the bind host (default: 0.0.0.0)
  • --open [path]: open a browser to / or the provided path
  • --no-open: disable automatic browser opening
  • --watch <path> (repeat): add extra files/folders to watch for live reload
  • --ignore <glob> (repeat): ignore matching watcher paths/globs
  • --no-css-inject: use full page reload for CSS changes instead of hot CSS refresh
  • --cors: enable CORS headers
  • --single: serve index.html for unknown routes (SPA fallback)
  • --no-dir-listing: disable generated directory listing pages
  • --style <midnight|paper>: choose the directory listing style preset
  • --style-css <file>: load custom CSS for directory listing pages
  • -c: create srv.config.json in the served root if missing
  • --config <file>: read additional config JSON file
  • --no-request-logging: disable request logs
  • --log-level <0-3>: set startup log verbosity
  • --ssl-cert <file>: path to SSL certificate
  • --ssl-key <file>: path to SSL private key
  • --ssl-pass <file>: path to SSL passphrase file

Notes

  • HTML pages get an auto-injected websocket client for live reload.
  • CSS changes refresh styles without full page reload unless --no-css-inject is enabled.
  • If a folder has index.html, that file is served; otherwise a styled directory listing is shown.
  • Watch mode always ignores .git and node_modules, and also skips common home cache/config paths (~/.cache, ~/.local/share).
  • If the OS watcher limit is reached (ENOSPC), srv-it keeps serving files and disables live reload instead of crashing.