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

easysocket

v0.4.3

Published

easy socket for everyone

Readme

EasySocket

easy websocket for everyone demo as cloud service : easysocket.io

Instaling

  $ npm install easysocket -g
  $ easysocket start

Using easysocket from the command line

The usage options are simple:

  $ easysocket --help
  usage: easysocket [action] [options]

  Monitors the script specified in the current process or as a daemon

  actions:
    start               Start your basic easysocket server
    config              Lists all easysocket configuration
    list                List of all keys
    set <key> <val>     Sets the specified easysocket config <key>
    clear <key>         Clears the specified easysocket config <key>

  options:
    -p  PORT         Base port for easysocket server
    -h, --help       You're staring at it

$ easysocket start

Starts easysocket with given config.

$ easysocket start
    info  - socket.io started
    info: Listening on http://localhost:7777
$ easysocket start -p 9999
    info  - socket.io started
    info: Listening on http://localhost:9999

$ easysocket config

Synchronously gets the all configuration (config) for the easysocket module.

data:    {
data:       root: '/path/of/your/root',
data:       port: '7777',
data:       privateKey: 'm0sts3cur3k3y',
data:       ssl: 'false'
data:    }

There are two important options:

  • root: Directory to put all default easysocket config
  • port: easysocket runs on this port default:7777

$ easysocket list

List of all config keys

     $ easysocket list

        * ssl : specify that you are using ssl or not default:false

        * pemcert: path of "cert" file, this is mandatory if "ssl" is "true"
        * pemkey: path of "key" file, this is mandatory if "ssl" is "true"
        * pemca: path of "ca" file, this is mandatory if "ssl" is "true"

        * privateKey:  easysocket can be used with any privateKey for preventing unauthorized access
        * auth:  domain based access control, if set "true", have to give domain
        * domain: give a string or array for white domain list for server

$ easysocket set key val

Update or insert new key for easysocket config

$ easysocket set port 9999
    info:    Setting easysocket config: port
    data:    {
    data:       root: '/path/of/your/root',
    data:       port: '9999'
    data:    }
    info:    easysocket config saved: /path/of/your/root/config.json
$ easysocket set lovingEasySocket YES
    info:    Setting easysocket config: port
    data:    {
    data:       root: '/path/of/your/root',
    data:       port: '9999',
    data:       lovingEasySocket: 'YES'
    data:    }
    info:    easysocket config saved: /path/of/your/root/config.json

$ easysocket clear key

Basically unset of given key

$ easysocket clear port
    warn:    Cannot clear reserved config: port
    warn:    Use `easysocket set port` instead
  • some keys are mandatory root,port
$ easysocket clear lovingEasySocket
    info:    Clearing easysocket config: lovingEasySocket
    data:    {
    data:       root: '/path/of/your/root',
    data:       port: '9999'
    data:    }
    info:    easysocket config saved: /path/of/your/root/config.json

Authors