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

dataform-docs

v1.5.3

Published

Generate beautiful, interactive documentation for Dataform projects with dependency graphs, deep linking, and base path support for proxy deployments

Downloads

198

Readme

dataform-docs

Generate beautiful, interactive documentation for your Dataform projects with dependency graphs, pipeline isolation, and auto-zoom functionality.

Features

Interactive Dependency Graph - Visualize your entire data pipeline with hierarchical DAG layout 🔍 Pipeline Isolation - Focus on specific models and their dependencies 🎯 Auto-zoom - Automatically zoom to isolated pipelines for better visibility 📊 Column Definitions - View table schemas and column descriptions 🔗 Deep Linking - Share direct links to specific models with full URL state management 🌐 Base Path Support - Deploy under custom paths for proxy/subdirectory hosting 🚀 Fast & Static - Generates self-contained HTML that can be hosted anywhere

Demo

🌟 View Live Demo - Interactive climbing database documentation

Demo Screenshot

Requirements

  • Node.js 16 or higher
  • Dataform CLI - Automatically installed as a dependency for optimal column extraction and compilation

Quick Start

The easiest way to use dataform-docs is with npx (no installation required):

# From your Dataform project directory
npx dataform-docs generate
npx dataform-docs serve

Open http://localhost:4200 to view your documentation.

Installation

Global Installation (Recommended)

npm install -g dataform-docs

Then from any Dataform project:

dataform-docs generate
dataform-docs serve

Local Installation

npm install --save-dev dataform-docs

Add to your package.json scripts:

{
  "scripts": {
    "docs:generate": "dataform-docs generate",
    "docs:serve": "dataform-docs serve",
    "docs": "dataform-docs generate && dataform-docs serve"
  }
}

Usage

Generate Documentation

dataform-docs generate [options]

Options:
  -p, --project <path>    Path to Dataform project (default: current directory)
  -o, --output <path>     Output directory for documentation (default: ./dataform-docs)
  -b, --base-path <path>  Base path for serving the documentation (e.g., /dataform/docs/)
  --no-compile            Skip SQL compilation

Serve Documentation

dataform-docs serve [options]

Options:
  -p, --port <number>     Port to serve on (default: 4200)
  -d, --dir <path>        Directory to serve (default: ./dataform-docs)
  -b, --base-path <path>  Base path for routing (e.g., /dataform/docs/)
  --open                  Open browser automatically

Base Path Support

Use base paths when deploying under custom URL paths or proxy configurations:

Local Development with Base Path

# Generate with base path
dataform-docs generate -b /my-project/docs/

# Serve with base path
dataform-docs serve -b /my-project/docs/
# Opens http://localhost:4200/my-project/docs/

Common Deployment Scenarios

GitHub Pages with Project Path

# For https://username.github.io/project-name/dataform/
dataform-docs generate -o ./docs -b /project-name/dataform/

Proxy/Subdirectory Hosting

# For https://company.com/internal/dataform-docs/
dataform-docs generate -b /internal/dataform-docs/
dataform-docs serve -b /internal/dataform-docs/

Docker/Kubernetes with Ingress

# For ingress path /api/v1/dataform/
dataform-docs generate -b /api/v1/dataform/

Deploy to GitHub Pages

# Generate docs with GitHub Pages base path
dataform-docs generate -o ./docs -b /your-repo-name/

# Commit and push
git add docs
git commit -m "Update documentation"
git push

# Enable GitHub Pages from /docs folder in repository settings

Requirements

  • Node.js 16.0.0 or higher
  • A Dataform project with dataform.json configuration

License

MIT