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

@matthiasc/flow-nodes

v1.1.13

Published

Experimental / tryout of a flow-based programming with nodes. It lays somewhere between functional programming and node based flows such as NODE-RED. (but then without the graphical interface)

Readme

flow-nodes

Experimental / tryout of a flow-based programming with nodes. It lays somewhere between functional programming and node based flows such as NODE-RED. (but then without the graphical interface)

The idea is to create a set of nodes that can be connected to each other to create a flow. A node can be linked to one or more nodes. And one or more nodes can be linked to one node. You could create a flow that does something like this:

example

This would create a flow that fetches the content of https://example.com and then selects all h2 elements from the response and logs it to the console.

//create the nodes

const nFetch = createHttpRequestNode({
  name: "fetchNode1",
  url: "https://example.com",
});

const nHtmlSelector = createHtmlSelectorNode({
  name: "selectorNode1",
  selector: "h2",
});

const nDebugger = createDebuggerNode({ name: "debuggerNode1" });

// connect the nodes

nFetch.to(nHtmlSelector).to(nDebugger);

//start the flow
nFetch.process({ msg: {} });

connecting nodes

// you can connect one node to another
node1.to(node2).to(node3);

// you can connect one node to multiple nodes
node1.to(node2);
node1.to(node3);

//or shorter
node1.to([node2, node3]);

// you can connect multiple nodes to one node
node1.to(node3);
node2.to(node3);

// connect nodes in a loop
// (be careful for infinite loops, incorporate flow altering / limiting nodes)
node1.to(node2);
node2.to(node3);
node3.to(node1);