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

@chix/runtime

v2.9.14

Published

Chix Runtime

Downloads

19

Readme

Chix Runtime

Build Status

Runtime to be used with the noflo fbp protocol:

http://noflojs.org/documentation/protocol/

Installation:

npm install

Test:

npm test

Usage:

 Usage: fbpx-server [options] <file ...>

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -t, --type [name]       Runtime type chix, noflo-nodejs
    -c, --cache             cache components
    -p, --proxy             expose /proxy to proxy requests to e.g. a browser
    -s, --secure            secure wss or ws
    -u, --uppercase         force ports uppercase
    -h, --host [name]       hostname
    -p, --port [name]       port
    -I, --no-ids            do not use uuids
    -b, --bail              bail on errors
    -i, --interface [name]  choose a webserver interface
    -l, --loader [loader]   loader `remote` or `npm`
    -L, --loglevel [level]  Log level
    -f, --flowhub           ping flowhub
    -v, --verbose           verbose output

Transport

The transport will be independent from the protocol itself.

It's job is:

  • receiving
  • sending
  • keep track of client scope.

For the noflo protocol, the scope are graphs.

Monitors

The monitors will listen for output from whatever it listen to. They only know how to sendAll(), sendAll is a negotiating method within the transport. This method will determine who is concidered to be all. This will mainly depend on what is considered the scope parameter.

Handlers

Handlers will handle the received requests. Sometimes they will need to send data back to the requester, sometimes they will not send any data back.

The requester will then receive it's reply as part of the group who is subscribed to the particular scope. Which is a graph in the context of this protocol.

Implementation of the above.

There are three variants for now:

  • receive
  • receive / send
  • sendAll

The schema defines when a property is considered to be a topic. In this case, graph will always be defined as topic.

This can then be used within the transport to categorize the clients. sendAll will then be aware of who it is it must send its reply to.

Flowhub

To run the chix-runtime and be able to use the UI at https://app.flowhub.com

You must first register.

npm run register

Above will generate a flowhub.json file, you must modify this file to contain your flowhub userID

In order to connect with flowhub the server must be started in secure mode. A simple way to do this is to run the script `create_cert.sh'

After this you must run the server in secure mode:

fbpx-server main_graph.fbp --flowhub --secure -L debug

HTTPS

First generate a certificate.

If the connection is not trusted, first go to the url with a browser and accept the self signed certificate, otherwise the connection will silently fail with a 500 message.

Schemas

To update the modified yaml schemas run:

npm run schemas

This will update ./schemas.js in the root directory