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 🙏

© 2025 – Pkg Stats / Ryan Hefner

flowe

v0.2.17

Published

![NPM Last Update](https://img.shields.io/npm/last-update/flowe)

Readme

Flowe

NPM Last Update

Flowe is a developer tool for visualizing and debugging program flows. Track, visualize, and debug complex workflows across your application with minimal overhead.

Features

  • Easy Instrumentation: Lightweight SDK integrates with any JavaScript/TypeScript codebase
  • Real-time Visualization: See your application flows in a clean UI
  • Debug with Context: Examine process inputs and outputs to identify issues
  • Automatic Parent Detection: Automatically connect related processes via stack trace analysis
  • Multi-Parent Support: Processes can have multiple parent processes for complex workflows

Installation

# Install globally
npm install -g flowe # Installs both the CLI server and SDK

# Install SDK in your project
npm install flowe

Usage

  1. Start the Flowe server:
flowe start
  1. Instrument your code with the SDK:
import { f } from 'flowe';

// Enable flow tracking (disabled by default)
f.setEnabled(true);

// Optional: Give your flow a readable name (shown on the sidebar)
f.renameFlow("my-application-flow");

// Start a flow process
f.start('process-name', { input: 'data' });

// Do work...
f.start('sub-process', {foo: 'bar'}, 'process-name'); // process-name is the parent, can be also an array if multiple parents
...
f.end('sub-process'); // you can always reference a flow with a string or the return variable from .start()

// End the flow with result
f.end('process-name', { result: 'success' });
  1. View your flows at http://localhost:27182

Advanced Example

Here's a more realistic example showing automatic parent detection:

import { f } from 'flowe';

f.setEnabled(true);
f.renameFlow("weather-lookup-flow");

// Main function that will be the parent process
async function getWeatherReport(city) {
  // Start the main process
  f.start("getWeather", { city });
  
  // Call another function that starts its own process
  const forecast = await fetchWeather(city);
  
  // Process and return results
  const report = {
    city,
    forecast,
    generated: new Date().toISOString()
  };
  
  f.end("getWeather", report);
  return report;
}

async function fetchWeather(city) {
  // No parent specified, but will automatically link to getWeather
  // because fetchWeather is called from getWeatherReport's stack
  f.start("weatherAPI", { city });
  
  // Even nested function calls maintain the stack context
  logActivity(`Fetching weather for ${city}`);
  
  // In a real app, this would be an API call
  const forecast = { temperature: 72, conditions: "Sunny" };
  
  f.end("weatherAPI", forecast);
  return forecast;
}

function logActivity(message) {
  // Again, no parent specified but will be linked to weatherAPI
  // because of the stack trace context
  f.start("logging", { message });
  console.log(message);
  f.end("logging", { success: true });
}

// Run the example
getWeatherReport("New York")
  .then(report => console.log("Weather report complete:", report));

This example demonstrates:

  • The weatherAPI process automatically links to getWeather via stack trace
  • The logging process automatically links to weatherAPI via stack trace
  • No explicit parent IDs are needed - the relationships are detected automatically
  • Process connections are visualized with special styling to indicate automatic linking

Documentation

Testing

# Install dependencies
npm install
npx playwright install

# Run E2E tests
npm run e2e:ui