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 🙏

© 2024 – Pkg Stats / Ryan Hefner

congregate

v1.0.0

Published

Node.js cluster on top of Flatiron CLI & Native cluster. Built with love!

Downloads

36

Readme

                                                      _       
                                                     | |      
            ___ ___  _ __   __ _ _ __ ___  __ _  __ _| |_ ___ 
           / __/ _ \| '_ \ / _` | '__/ _ \/ _` |/ _` | __/ _ \
          | (_| (_) | | | | (_| | | |  __/ (_| | (_| | ||  __/
           \___\___/|_| |_|\__, |_|  \___|\__, |\__,_|\__\___|
                            __/ |          __/ |              
                           |___/          |___/               

Node.js cluster on top of Flatiron CLI & Native cluster. Built with love!

Getting Started.

To install, run the following command:

npm install congregate -g

Once done, you can simply spin your shards by the following method:

congregate spin --app /var/www/myapp/index.js --shards 8

OR

CONG_APP_PATH=/var/www/myapp.js congregate spin --shards 8
--shards = You can put any number of instances you want. If undefined, then it will count your CPU cores and start same count processes.
--app    = You need to pass absolute url to your application. Else, set your environment variable of CONG_APP_PATH

TODO

Tons of more useful commands including:

  • congregate restart
  • congregate shards
  • congregate shutdown

List

The list command helps you figure out how many relevant shard processes are running over the desired instance. There are 2 ways to find them.

1 - Find By Title.
2 - Find By Port

If you know the desired port, all you have to do is to refer your port to congregate.

$ congregate list --port <port>

where <port> would be replaced with the port serving the application i.e 80.

However, if you want to find by process title, you have to be aware that congregate spins with congregate-* where * is the PID.

$ congregate list --name congregate-

This will retrieve all processes which are running under the title of congregate.

Shutdown

To shutdown your congregate shards running over a particular port, invoke the shutdown command with --port of parameter as argument.

$ congregate shutdown --port <port>

Here, <port> would be the port where your application is already running and you're willing to terminate.

Author

Congregate has been initialized by Hamza Waqas inspired from Jonathan Warner's trick!