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

dev-srv

v0.3.1

Published

Developer servers daemon

Readme

dev-srv

Developer servers daemon.

Install

$ npm install -g dev-srv

Useage

$ dev-srv proxy test 3000

Folder structure

Once dev-srv is installed, it will automatically create these folders:

  • $HOME/.devsrv — will contain all PM2 related files
  • $HOME/.devsrv/daemon.sock — socket file for remote commands
  • $HOME/.devsrv/daemon.logdev-srv daemon logs
  • $HOME/.devsrv/daemon-error.logdev-srv daemon error logs

Start and config

$ dev-srv start -p 8080 -h lc.nim.space

This command starts daemon on port (-p or 8080 by default). -h parameter will useing for servers start (http://[server_name].lchost.ws/ for host lchost.ws).

Set DNS A record for all subdomains in your host. For example:

*.lchost.ws.  A   127.0.0.1

Commands

  • start [options] — Starts daemon server
    • -p, --port [port] — Set daemon server port
    • -h, --host [hostname] — Set daemon server domain name
  • restart [options] — Restarts daemon server
    • -p, --port [port] — Set daemon server port
    • -h, --host [hostname] — Set daemon server domain name
  • stop — Stops daemon server
  • ping — Ping daemon server
  • list — List current running servers
  • proxy <name> <port> — Add proxy connection for already running server
  • srv [options] <name> <root> — Add node-srv server
    • -p, --port [port] — Set custom port
    • -i, --index [filename] — Set index file name
  • exec [options] <name> <command> — Execute server start command
    • -p, --port [port] — Set custom port
    • -- [args...] — Custom args for command
  • fork [options] <name> <path> — Fork nodejs server script by path
    • -p, --port [port] — Set custom port
    • -- [args...] — Custom args for script
  • remove <name> — Remove server

API

var DevSrv = require('dev-srv');

DevSrv.ping(function(err, data){
   console.log(err, data);
});

Methods

  • start(port, host, autoport, callback)
  • stop(callback)
  • restart(port, host, autoport, callback)
  • ping(callback)
  • list(callback)
  • srv(name, root, port, index, callback)
  • proxy(name, port, callback)
  • exec(name, command, cwd, port, args, callback)
  • fork(name, path, cwd, port, args, callback)
  • remove(name, callback)

All callbacks has errdata format.

Methods automatically call connect(), if daemon socket not connected. Disconnect will done manually with method disconnect() (sync).

You can connect manually, just call method connect(callback).

Grunt task

module.exports = function(grunt) {
    grunt.loadTasks('dev-srv');

    grunt.initConfig({
        devsrv: {
            site: {
                mode: 'srv',
                name: 'mysite',
                root: './dist'
            },
            tests: {
                mode: 'exec',
                name: 'tests.mysite',
                command: 'npm',
                args: ['test']
            }
        }
    });
};
grunt devsrv:site
grunt devsrv:remove:site    # remove server with name 'site'

Available modes: srv, proxy, exec, fork.

Grunt task just starts servers. You can't start and stop daemon. Server not removing when task done, runt devsev:remove:{name} task.