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

gds-stack

v0.1.14

Published

Stack of all Great design and Systems NodeJS technologies

Downloads

2

Readme

Gds-stack

Another utilization of NodeJS technologies in one package.

Technologies supported and available

Getting started

    npm install --save gds-stack

Sample configuration

GDS-stack uses our very own fluid-chains to process configurations and for you to add your own chain.

    var GDS = require('gds-stack');
    var fluidChains = require('fluid-chains');
    var ExecuteChain = fluidChains.ExecuteChain;
    var ClusterChains = GDS.ClusterChains;
    var DockerChains = GDS.DockerChains;
    var DatabaseChains = GDS.DatabaseChains;
    var ServerChains = GDS.ServerChains;
    var LoggerChains = GDS.LoggerChains;
    var Logger = GDS.Logger;
    var ExpressApp = GDS.ExpressApp;
    
    ExecuteChain([
        ClusterChains.CLUSER_CONFIG,
        DockerChains.DOCKER_CONFIG,
        DockerChains.DOCKER_CONNECT,
        LoggerChains.LOGGER_CONFIG,
        DatabaseChains.MONGO_CONFIG,
        DatabaseChains.MONGO_CONNECT,
        ServerChains.GDS_SERVER_CONFIG,
        ServerChains.GDS_SERVER_CONNECT_MULTIPARTY,
        ServerChains.GDS_SERVER_HTTP_LISTENER,
        ServerChains.GDS_SERVER_HTTPS_LISTENER
    ],
     {
        mongo_databaseName: 'data-sample-db',
        mongo_retry: 5,
        logger_name: 'SampleLogger',
        logger_filePath: 'sample-logger.log',
        server_tempDir: 'files',
        server_port: 8080
     },
     function(result) {
        Logger('SampleLogger').info('Server in running Express on port 8080');
        ExpressApp.get('/', function(req, res) {
            res.status(200).send('hello world');
        });
     });  

Docker Configuration

For linked containers

Chain |Parameter | Description | value | default ---------------|----------|------------|---------| ---------- DOCKER_CONNECT | docker_proxyHost| proxy host | ?String | none DOCKER_CONNECT | docker_proxyPort| proxy port | ?Number | none DOCKER_CONNECT | docker_serviceRetry| number of retries | *Number | none DOCKER_CONNECT | docker_serviceTimeout| timeout in milisecond | ?Number | 5000

Logger Configuration

For log4js configuration

Chain |Parameter | Description | value | default --------------|----------|-------------|---------| ---------- LOGGER_CONFIG | logger_name| name of logger | *String | none LOGGER_CONFIG | logger_filePath| absolute path of the log file | *String | none LOGGER_CONFIG | logger_level| level of logs to write | ?String | all

Database Configuration

Chain |Parameter | Description | value | default -------------|----------|-------------|---------| ---------- MONGO_CONFIG | mongo_port | mongo database port| ?Number | 27017 MONGO_CONFIG | mongo_host | mongo database host | *String | localhost MONGO_CONFIG | mongo_databaseName | mongo database name | *String | none MONGO_CONFIG | mongo_user | mongo database username | ?String | none MONGO_CONFIG | mongo_password | mongo database password | ?String | none

Server Configuration

Chain |Parameter | Description | value | default ----------------------------------|------------------------|----------------------------------------------|----------------| ---------- GDS_SERVER_CONFIG | server_domainApi | domain dto object of the current app service | ?GDSDomainDTO | none GDS_SERVER_CONFIG | server_cors | Cors option | Object | default cors option GDS_SERVER_CONNECT_MULTIPARTY | server_tempDir | file directory path | *String | none GDS_SERVER_HTTP_LISTENER | server_port | express server http port | ?Number | 80 GDS_SERVER_HTTP_LISTENER | server_host | express server http host to bind GDS_SERVER_HTTPS_LISTENER | server_httpsPort | express server https port | ?Number | 443 GDS_SERVER_HTTPS_LISTENER | server_host | express server https host to bind GDS_SERVER_HTTP_PROXY_LISTENER | server_proxyPort | proxy server port | ?Number | 8080 GDS_SERVER_HTTPS_PROXY_LISTENER | server_proxyHttpsPort | proxy server https port | ?Number | 443 GDS_SERVER_HTTP(S)PROXY_LISTENER | server_addresses | target hosts | *[{host,port}] | [] GDS_SERVER_HTTPS(PROXY)LISTENER | server_privateKey_path | server privateKey (.key) file path | *String | none GDS_SERVER_HTTPS(PROXY)LISTENER | server_certificate_path| server certificate (.cert) file path | *String | none GDS_SERVER_HTTPS(PROXY)_LISTENER | server_encoding | server file encoding | ?String | 'utf8'

Cluster Configuration

Chain |Parameter | Description | value | default --------------|---------------|----------------------|---------------|------------- CLUSTER_CONFIG|cluster_max_cpu| Number of cpu to fork|?Number | os cpu count

Utility

Chain |Parameter | Description | value | default ----------------------------------|------------------------|-----------------------------------------------|----------------------| ---------- INPUT_HANDLER | util_inputMap | maps the process.argv value to a context field| *{argv[index]:String}| none

SocketIO Listener

Chain | Parameter | Description | value | default -----------------------------|----------------------|----------------------------------|-------------------------------------------|----------- GDS_SERVER_SOCKET_IO_LISTENER| server_host | Http server host | String | localhost GDS_SERVER_SOCKET_IO_LISTENER| server_port | Http server port | String | localhost GDS_SERVER_SOCKET_IO_LISTENER| server_socket_events | This is where you put the events | Object: {event(String):chainName(String)} | localhost