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

@distill/cli

v3.0.0

Published

Process code changes with semantic rules

Readme

distill

Process code changes with semantic rules

oclif Version Downloads/week

Usage

$ npm install -g @distill/cli
$ distill COMMAND
running command...
$ distill (--version)
@distill/cli/3.0.0 linux-x64 node-v24.12.0
$ distill --help [COMMAND]
USAGE
  $ distill COMMAND
...

Configuration

distill is configured via a distill.yml file in your repository root. You define concerns (areas of interest) containing signals that match files and apply watches (extraction filters) and reports (output templates).

Concerns and Stakeholders

Concerns represent areas of interest (e.g., "security", "ui-consistency") with associated stakeholders (teams or individuals). Each concern contains signals that define what files to watch and how to process them.

concerns:
  security:
    stakeholders:
      - name: Security Team
        contactMethod: github-reviewer-request
        description: Reviews security-sensitive changes

    signals:
      - watch:
          include: 'src/auth/**/*.ts'
          type: regex
          pattern: 'password|secret'
        report:
          type: handlebars
          template: 'Potential secret exposure in {{filePath}}'

  ui-consistency:
    stakeholders:
      - name: Design System Team
        contactMethod: github-comment-mention

    signals:
      - watch:
          include: 'src/components/**/*.tsx'
          type: ast-grep
          language: tsx
          pattern:
            context: 'style={{...}}'
            selector: 'jsx_attribute'
        report:
          type: handlebars
          template: 'Avoid inline styles in {{filePath}}. Use standard classes.'

Reusable Definitions

You can define reusable watches and reports in a defined block and reference them throughout your configuration:

defined:
  watches:
    jq-deps:
      type: jq
      query: '.dependencies'
  reports:
    deps-report:
      type: handlebars
      template: |
        Dependencies changed in {{filePath}}

concerns:
  dependencies:
    stakeholders:
      - name: Dev Team
        contactMethod: github-comment-mention
    signals:
      - watch:
          include: 'package.json'
          use: '#defined/watches/jq-deps'
        report:
          use: '#defined/reports/deps-report'

Commands

distill diff [BASE] [HEAD]

Annotate a git diff with semantic analysis based on configured rules.

USAGE
  $ distill diff [BASE] [HEAD] [--json] [-c <value>] [-r <value>] [-s]

ARGUMENTS
  [BASE]  Base commit-ish (e.g., HEAD~1, main). Defaults based on working tree state.
  [HEAD]  Head commit-ish (e.g., HEAD, feat/foo, . for working directory). Defaults to "."

FLAGS
  -c, --config=<value>  Path to the distill configuration file (default: distill.yml in repo root)
  -r, --repo=<value>    Path to git repository
  -s, --staged          Only check staged changes (when comparing with working directory)

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Annotate a git diff with semantic analysis based on configured rules.

  When no arguments are provided, defaults are chosen based on the working tree state:
  - If there are unstaged changes, compares HEAD to the working directory
  - If there are only staged changes, use --staged to check them

  When using --json, a "lineRange" field is included. Note that this range refers to the line numbers within the
  *filtered artifact* (the code snippet shown in the report), NOT the original source file.

EXAMPLES
  $ distill diff                  # auto-detect changes

  $ distill diff --staged         # check staged changes only

  $ distill diff HEAD~1 HEAD

  $ distill diff main feat/foo

  $ distill diff HEAD .           # compare HEAD to working directory

  $ distill diff main HEAD --repo ../other-project

See code: src/commands/diff.ts

distill help [COMMAND]

Display help for distill.

USAGE
  $ distill help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for distill.

See code: @oclif/plugin-help

distill pr [PR]

Annotate a GitHub Pull Request.

USAGE
  $ distill pr [PR] [--json] [-c <value>] [-r <value>]

ARGUMENTS
  [PR]  PR number or URL (optional: detects PR for current branch if omitted)

FLAGS
  -c, --config=<value>  Path to the distill configuration file (default: distill.yml in repo root)
  -r, --repo=<value>    GitHub repository (owner/repo). Required if not running in a git repo.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Annotate a GitHub Pull Request.

  When no argument is provided, detects the PR associated with the current branch.
  Requires GITHUB_TOKEN environment variable for authentication.

EXAMPLES
  $ distill pr                                # auto-detect PR for current branch

  $ distill pr 123                            # PR number (uses detected remote)

  $ distill pr https://github.com/owner/repo/pull/123

  $ distill pr 123 --repo owner/repo

See code: src/commands/pr.ts