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

@disusered/okf-cli

v2.0.0

Published

Command line for OKF bundles, including the self-contained HTML page

Readme

@disusered/okf-cli

@disusered/okf-cli installs the okf binary. The CLI writes deterministic JSON by default and accepts --json so calling programs can state the contract explicitly. Every command operates on exactly one bundle.

okf inspect docs --json
okf validate docs --strict
okf search docs "box office"
okf read docs concepts/settlement.md
okf index docs
okf index docs concepts
okf visualize docs --out .okf/viz.html
okf watch docs --out .okf/viz.html

When a target is a repository rather than a bundle root, discovery uses only .agents/okf.yaml. Use --bundle NAME when the manifest declares more than one bundle.

Directory navigation

okf index [target] [directory] emits okf.index.v1 JSON, including generated Markdown in content. Omit the directory for the root. It reads current titles and descriptions on every invocation and never overwrites authored files.

okf visualize embeds the same indexes in the reader's Browse pages panel. okf watch regenerates them with the viewer whenever Markdown changes. After a CLI change, call index for current navigation or use watch for a saved viewer that updates automatically.

Change operations

Changes are JSON on standard input by default, or from --input FILE. Preview the exact file, review its diff and diagnostics, then pass its preview_id to apply:

okf change preview docs --input change.json
okf change apply docs --input change.json --preview-id sha256:REVIEWED_ID

The accepted operations are create, update, delete, and move. Updates, deletes, and moves require expected_revision. Apply rejects a missing or mismatched preview ID before mutation. It then validates the proposed bundle, rechecks live filesystem state, writes the change to disk, and validates the result. Repeating an accepted request returns unchanged if the requested state already exists.

Consumer profiles

The base CLI has no named profile registry and rejects --profile NAME. Trusted local wrappers can explicitly pass --profile-module FILE, where the built JavaScript module exports a profile object compatible with okf-core's ValidationProfile. Hosted consumers compose profiles directly in code. The CLI never executes validation command arrays from a manifest.

Exit status

  • 0: command completed, validation passed, or a change was applied/unchanged.
  • 1: validation failed or a change preview/apply was rejected.
  • 2: arguments, I/O, configuration, or input were invalid. The error is JSON on standard error.