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

flow-client

v1.1.2

Published

The client-side component of the Flow Framework.

Downloads

4

Readme

Flow System - Client Component

TODO

[] Need to have dependencies for 'tools' integrated or dynamically loaded.

  • How to do this with ES6 modules? Exports are static, so the export would have to be defined and then an asynchronous loading of the dependencies and initializing of the exported object. This leaves the possibility of race conditions. Perhaps we can make FlowNode wait until initialization?
    • Or we can make tools a non-ES6 module...

[x] Fix 'logging' toggle

[x] Add method to create response object from FlowMesssage

[x] Add send method on 'Flow' to simplify sending flow messages

  • [] Update example and FlowManager accordingly (Flows sending replies to should be done via the 'send' method)

[] Devise scheme for async waiting on responses to sent flow messages

[] Add logging config for FlowConnector

Flow Client

Flow Client is the client-side component of the Flow Framework. It is designed to allow any ES6 Javascript module that extends the Flow class to be easily and seamlessly integrated into the client-side of an application built using the Flow Framework.

Getting Started

To get started with Flow Client, you need to install it via npm:

npm install flow-client

Usage After installing the Flow Client, you can import it in your project:

import FlowClient from 'flow-client';

You can then create a new instance of a FlowNode:

class MyFlowNode extends FlowNode {
  constructor(config = {}) {
    super(config.id || "MyFlowNode", config);
    
    this.initialize();
    this.flowRouter.addConnector(new LocalFlowConnector());
    this.flowRouter.addConnector(new WsFlowConnector('WSS-1', 'localhost', 8000));
  }
}

Building the Project

To build the project, run the build script in the package.json file:

npm run build

Contributing

Contributions are welcome. Please submit a pull request or create an issue to discuss what you would like to change.

License

Flow Client is licensed under the MIT License. See the LICENSE file for more details.