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.1.3

Published

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

Readme

durable-viz

npm License: MIT

Visualize AWS Lambda Durable Functions workflows. Static analysis turns your handler code into a flowchart, no deployment or execution required.

Supports TypeScript/JavaScript, Python, and Java runtimes.

graph LR
  node_start([Start])
  step_1[validate]
  parallel_2{{prepare}}
  subgraph sub_parallel_2[" "]
    invoke_3[/check-inventory\]
    invoke_4[/reserve-payment\]
  end
  style sub_parallel_2 fill:transparent,stroke:#444,stroke-width:1px,stroke-dasharray:5 5
  step_5[fulfill]
  cond_6{approval?}
  callback_7((wait))
  node_end([End])
  node_start --> step_1
  step_1 --> parallel_2
  parallel_2 --> invoke_3
  parallel_2 --> invoke_4
  invoke_3 --> step_5
  invoke_4 --> step_5
  step_5 --> cond_6
  cond_6 -->|yes| callback_7
  cond_6 -->|no| node_end
  callback_7 --> node_end
  style node_start fill:#5b8ab4,stroke:#4a7293,color:#e8edf2
  style step_1 fill:#4a8c72,stroke:#3d7360,color:#e0efe8
  style parallel_2 fill:#7b6b9e,stroke:#655883,color:#e8e3f0
  style invoke_3 fill:#b8873a,stroke:#967032,color:#f5edd8
  style invoke_4 fill:#b8873a,stroke:#967032,color:#f5edd8
  style step_5 fill:#4a8c72,stroke:#3d7360,color:#e0efe8
  style cond_6 fill:#6b71a8,stroke:#575c8a,color:#e3e4f0
  style callback_7 fill:#b05a5a,stroke:#8f4a4a,color:#f2e0e0
  style node_end fill:#5b8ab4,stroke:#4a7293,color:#e8edf2

Quick Start

npx durable-viz handler.ts --open

This parses the handler, extracts the workflow structure, and opens an interactive diagram in your browser with scroll zoom, click-drag panning, direction toggle, source view, 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

Java SDK support is in preview with some primitives still in development.

| Primitive | TypeScript | Python | Java (preview) | | --- | --- | --- | --- | | Step | context.step() | context.step() | ctx.step() | | Invoke | context.invoke() | context.invoke() | ctx.invoke() | | Parallel | context.parallel() | context.parallel() | in development | | Map | context.map() | context.map() | in development | | Wait | context.wait() | context.wait() | ctx.wait() | | Wait for Callback | context.waitForCallback() | context.wait_for_callback() | in development | | Create Callback | context.createCallback() | context.create_callback() | ctx.createCallback() | | Wait for Condition | context.waitForCondition() | context.wait_for_condition() | in development | | Child Context | context.runInChildContext() | context.run_in_child_context() | ctx.runInChildContext() |

VS Code Extension

Also available as a VS Code extension with an interactive side panel, click-to-navigate, and auto-refresh on save.

Install from VS Code Marketplace

Links

License

MIT