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

@doxbrix/cli

v0.1.2

Published

Doxbrix CLI — docs-as-code from the command line.

Readme

dxb — the Doxbrix CLI

Docs-as-code from the command line. Author Doxbrix documentation locally as files (docs.json + .mdx), preview it like the live site, validate it, and push to your Doxbrix project in one command — with or without GitHub/GitLab.

npm install --global @doxbrix/cli
dxb --help

For a one-off run without a global install:

npx --yes @doxbrix/cli@latest --help

Requires Node ≥ 22.

Quick start

dxb login                       # browser sign-in (or: dxb login --with-token dxb_…)
dxb init my-docs                # scaffold docs.json + starter pages
cd my-docs
dxb dev                         # local preview at http://localhost:4000 (hot reload)
dxb lint                        # validate docs.json, frontmatter, links, orphans
dxb link --create               # create a Doxbrix project and link this folder
dxb push --publish              # publish — search + AI update immediately

Migrating from Mintlify or GitBook?

dxb init . --from mintlify      # or gitbook | generic
dxb lint && dxb link --create && dxb push

The local format

A Doxbrix docs project is a folder with:

docs/                           # basePath (configurable)
├── docs.json                   # navigation manifest (authoritative)
├── images/                     # media (also assets/ media/ img/ static/)
└── <space>/<group>/page.mdx    # pages with --- frontmatter ---

docs.json covers every nav type — page, group, label, divider, link, api. Page frontmatter: title, sidebarTitle, description, slug, icon, tags, status, hidden, locale.

Commands

| Group | Commands | |---|---| | Workflow | init, dev, lint, link, push, pull, status, diff, new page | | Import | import repo, import file, init --from <dialect> | | Structure (local) | space list/create, nav tree/add-link/add-label/add-divider/remove | | Git sync | git status/connect/sync/pause/resume/disconnect/conflicts | | Auth | login, logout, whoami, auth status/token/switch | | Content | project list/view/use, page list/get/create, search, review queue | | AI | ai ask, keys list/create/revoke | | Utilities | open, doctor, completion, config, version |

Run dxb <command> --help for details. Every read command supports --json.

Authentication

  • dxb login — browser device flow (default).
  • dxb login --with-token dxb_… — paste a Personal Access Token (CI-friendly).
  • DOXBRIX_TOKEN env always wins; DOXBRIX_API_URL overrides the host.
  • Tokens are stored at ~/.doxbrix/config.json (mode 0600). Manage with dxb auth token create/list/revoke and switch accounts with dxb auth switch. Token-management commands require a PAT with the explicit tokens:manage scope; the normal browser-login token intentionally does not receive it.

Configuration & precedence

Highest → lowest: command flags → env (DOXBRIX_TOKEN, DOXBRIX_API_URL, DOXBRIX_PROJECT, DOXBRIX_PROFILE) → global ~/.doxbrix/config.json → built-in defaults. Project selection and basePath come from the commit-safe project .doxbrix/config.json, but API hosts and tokens never do.

The default cloud host is https://app.doxbrix.com. Remote overrides must use HTTPS; plain HTTP is accepted only for localhost development.

Use in CI

# .github/workflows/docs.yml
name: Publish docs
on: { push: { branches: [main] } }
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: 22 }
      - run: npx @doxbrix/cli@latest lint
      - run: npx @doxbrix/cli@latest push --publish --yes
        env:
          DOXBRIX_TOKEN: ${{ secrets.DOXBRIX_TOKEN }}
          DOXBRIX_PROJECT: my-docs

Exit codes

0 ok · 1 generic · 2 usage/validation · 3 auth · 4 entitlement (402/403) · 5 conflict · 6 network. Scriptable: dxb status --json | jq .clean.

Shell completion

eval "$(dxb completion bash)"      # bash
eval "$(dxb completion zsh)"       # zsh
dxb completion fish | source       # fish

License

UNLICENSED (internal). See the repository root.