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

@ashishalex/dataform-graph

v0.3.0

Published

CLI that serves the dataform-tools dependency graph in your browser. Wraps `dataform compile --json` and renders the same React graph used by the VS Code extension.

Readme

@ashishalex/dataform-graph

A CLI that serves the vscode-dataform-tools dependency graph in your browser. Wraps dataform compile --json and renders the same interactive React graph used by the VS Code extension — useful when you want to share the graph, view it without VS Code, or use a different editor.

Install

npm install -g @ashishalex/dataform-graph

Or run on demand without installing:

npx @ashishalex/dataform-graph

Requirements

  • Node.js ≥ 18
  • The dataform CLI on your PATH, or pointed at via --dataform-bin / $DATAFORM_BIN
  • For the Show schema button on each node: Google Cloud Application Default Credentials with permission to read the underlying BigQuery tables. Authenticate once with:
    gcloud auth application-default login
    Or point at a service-account key via GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json.

Usage

Run from the root of a Dataform project (the directory containing workflow_settings.yaml):

dataform-graph

A local HTTP server starts on 127.0.0.1 and your default browser opens to it. Press Ctrl+C to stop.

Options

-m, --model [model]    Filter the initial view to a specific model. Matches against
                       the file name, fully-qualified `database.schema.name`, or
                       short `target.name`. Pass --model with no value to pick
                       interactively (file → model).
-t, --tag [tag]        Filter the initial view to a specific tag. Pass --tag with
                       no value to pick a tag interactively.
-i, --input <path>     Use a pre-compiled dataform JSON file instead of running
                       `dataform compile --json`.
-c, --cwd <path>       Directory to run `dataform compile --json` from
                       (default: current directory).
    --dataform-bin <path>
                       Path or name of the dataform binary to invoke
                       (default: `dataform` on PATH, or $DATAFORM_BIN if set).
-p, --port <n>         Port to listen on (default: random ephemeral).
-H, --host <host>      Host interface to bind to (default: 127.0.0.1).
    --no-open          Do not auto-launch the default browser.
-h, --help             Show help.

--model and --tag are mutually exclusive.

Examples

Open the graph for the model under your cursor… well, just pick interactively:

dataform-graph --model

Show only models tagged daily:

dataform-graph --tag daily

Use a project's local dataform instead of a global one:

dataform-graph --dataform-bin ./node_modules/.bin/dataform

Or set it once for the shell:

export DATAFORM_BIN=./node_modules/.bin/dataform
dataform-graph

Render from a pre-compiled JSON (skip running dataform):

dataform compile --json > compiled.json
dataform-graph --input compiled.json

Interactive pickers

Both --model and --tag accept no value to launch a filterable picker. Keyboard navigation supports:

  • / — arrow keys
  • Ctrl+N / Ctrl+P — next / previous (emacs-style)
  • Ctrl+J / Ctrl+K — next / previous (vim-style)
  • type to filter
  • Enter to select, Ctrl+C / Esc to cancel

License

MIT