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

vibe-flow

v1.0.5

Published

Vibe Flow

Readme

@vibe-flow/node

Vibe Flow Node is a library for building nodes in the Vibe Flow framework. It will be used to work with vibe coding.

Installation

pnpm add @vibe-flow/node

Concepts

This package is built around the concept of nodes.

Nodes are the building blocks of a flow. They are responsible for executing a single task and returning a result.

Nodes can be linked together to form a flow.

Basic

Nodes are defined by the createNode function. It takes a prep, exec, and post function.

const node = createNode({
  prep: async (shared) => {},
  exec: async (payload) => {},
  post: async (shared, payload, result) => {},
});

When building a node system, you should define a type for the shared object. It is much easier for LLMs to work with shared memory than to work with the entire context.

type SharedMemory = {
  // input
  filepathList: string[];
  // output
  fileContent: Partial<Record<string, Buffer>>;
};

const readFileNode = createNode({
  prep: async (shared) => {
    return {
      filepathList: shared.filepathList,
    };
  },
  exec: async (payload) => {
    const { filepathList } = payload;
    const fileContent: Partial<Record<string, Buffer>> = {};
    for (const filepath of filepathList) {
      const content = await readFile(filepath);
      fileContent[filepath] = content;
    }
    return fileContent;
  },
  post: async (shared, payload, result) => {
    for (const filepath in result) {
      shared.fileContent[filepath] = result[filepath];
    }
    return "completed";
  },
});

const sharedMemory: SharedMemory = {
  filepathList: ["file1.txt", "file2.txt"],
  fileContent: {},
};

await readFileNode.run(sharedMemory);

console.log(sharedMemory.fileContent);

Next

Nodes can be linked together to form a flow.

const nodeA = createNode({
  prep: async (shared) => {},
  exec: async (payload) => {
    console.log("nodeA");
  },
  post: async (shared, payload, result) => {
    return "default";
  },
});

const nodeB = createNode({
  prep: async (shared) => {},
  exec: async (payload) => {
    console.log("nodeB");
  },
  post: async (shared, payload, result) => {
    return;
  },
});

nodeA.next(nodeB);

await nodeA.run(sharedMemory); // nodeA -> nodeB

On

Nodes can be linked together to form a flow with conditions.

const nodeA = createNode({
  prep: async (shared) => {},
  exec: async (payload) => {},
  post: async (shared, payload, result) => {
    if (shared.condition) {
      return "condition";
    }
    return "default";
  },
});

nodeA.on("condition", nodeB);

const sharedMemory = {
  condition: true,
};

await nodeA.run(sharedMemory); // nodeA -> nodeB