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

blueprint-graph

v1.0.6

Published

Create nodes, join the graph, wait for the result. Just like Blueprint. Asynchronous for everythings.

Downloads

23

Readme

Blueprint-Graph-in-Javascript

Create nodes, join the graph, wait for the result. Just like Blueprint. Asynchronous for everythings.

What's this for?

Help you write Javascript code like Unreal blueprint.
Uhh, may be you need a beautiful UI.

All source codes useful were in src/index.ts.

And src/example.ts is an example for use, basic_lib.ts is an example for writting an library.

How to use it?

First of all, create a graph.

let ctx = new GraphRuntime();

Then create some nodes with initial value.

let node1 = addNewNode(ctx, NumberNode(2));
let node2 = addNewNode(ctx, NumberNode(4));
let nodemmul = addNewNode(ctx, CalcNumNode("**"));
let show = addNewNode(ctx, OutputNode());

Tell graph the connections between nodes.

node1.linkTo(node1.out.Value, nodemmul, nodemmul.in.A);
node2.linkTo(node2.out.Value, nodemmul, nodemmul.in.B);
nodemmul.linkTo(nodemmul.out.Output, show, show.in.Input);

Finally run the graph.

ctx.run();

And you get the result:16.

The code above is equivalent to:

console.log(2 ** 4);

How to create your own node?

A custom node is like this:

function CustomNode(name?: string) {
  return new NodeRuntime(async (self) => {

    // begin your code
    let data1 = await self.getFromPort("input_data_1");
    setTimeout(async () => {
      let data2 = await self.getFromPortOptional("input_data_2");
      /**do some calculation */
      let result = data1.toString() + (data2 || 0).toString();
      self.sendToPort("my_output_port", result);
    }, 1000);

    // end your code
  });
}

You can get data by port name, if the data is not prepared, your node will wait until the data arrived.

Also, write some wrappers to help you remember port names.

These codes show how to use for loop in graph.

let fornode = addNewNode(ctx, ForLoopNode(5));
let testnode = addNewNode(ctx, TestForBody());
fornode.linkTo(fornode.out.index, testnode, "exec_signal");

Then we will get:

hello0
hello1
hello2
hello3
hello4

When will nodes run?

  • When graph begin.
  • When someone push data to a completed node.
  • When some remain data is found when it completed.

Why do you make things complicated?

Uhh, I don't know. Just for fun.