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

durable-viz

v0.6.1

Published

Visualize AWS Lambda Durable Functions workflows. CLI and core library.

Downloads

419

Readme

durable-viz

npm License: MIT

Static analysis for AWS Lambda Durable Functions workflows. Parses handler code and renders an interactive flowchart — no deployment or execution required.

Supports TypeScript/JavaScript, Python, Java, and C# (.NET) runtimes.

Quick Start

npx durable-viz handler.ts --open

Opens an interactive diagram in your browser with scroll zoom, click-drag panning, direction toggle, source view, PNG export, and a dark theme.

Usage

Usage: durable-viz [options] <file>

Arguments:
  file                   Path to a durable function handler file

Options:
  -d, --direction <dir>  Graph direction: TD (top-down) or LR (left-right) (default: "TD")
  -n, --name <name>      Override the workflow name
  --json                 Output the raw workflow graph as JSON
  -o, --open             Open the diagram in your browser
  -V, --version          Output the version number
  -h, --help             Display help

Output Formats

Mermaid (default) prints Mermaid flowchart syntax to stdout. Paste into GitHub Markdown, Notion, or any Mermaid-compatible renderer.

durable-viz handler.ts

Browser generates a self-contained HTML file and opens it.

durable-viz handler.ts --open

JSON outputs the raw workflow graph for custom tooling.

durable-viz handler.ts --json

Supported Primitives

| Primitive | TypeScript | Python | Java | C# (.NET) | | --- | --- | --- | --- | --- | | Step | context.step() | context.step() | ctx.step() | ctx.StepAsync() | | Invoke | context.invoke() | context.invoke() | ctx.invoke() | ctx.InvokeAsync() | | Parallel | context.parallel() | context.parallel() | ctx.parallel() | ctx.ParallelAsync() | | Map | context.map() | context.map() | ctx.map() | ctx.MapAsync() | | Wait | context.wait() | context.wait() | ctx.wait() | ctx.WaitAsync() | | Wait for Callback | context.waitForCallback() | context.wait_for_callback() | ctx.waitForCallback() | ctx.WaitForCallbackAsync() | | Create Callback | context.createCallback() | context.create_callback() | ctx.createCallback() | ctx.CreateCallbackAsync() | | Wait for Condition | context.waitForCondition() | context.wait_for_condition() | ctx.waitForCondition() | ctx.WaitForConditionAsync() | | Child Context | context.runInChildContext() | context.run_in_child_context() | ctx.runInChildContext() | ctx.RunInChildContextAsync() | | With Retry | withRetry(context, ...) | with_retry(context, ...) | ctx.withRetry(...) | via StepConfig |

TypeScript also supports context.promise.all(), context.promise.any(), context.promise.race(), and context.promise.allSettled().

Java also supports DurableFuture.allOf(futures...) and DurableFuture.anyOf(futures...).

Visual Encoding

| Node | Shape | Color | | --- | --- | --- | | Start / End | Stadium | Blue | | Step | Rectangle | Green | | Invoke | Trapezoid | Amber | | Parallel / Map | Hexagon | Purple | | Wait / Callback | Circle | Red | | Condition | Diamond | Indigo | | Child Context / With Retry | Subroutine | Teal |

Build Mode

For visual workflow design with code generation, use the VS Code extension and run Durable Viz: Build Workflow Diagram.

Links

License

MIT