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

@klevar/docs-cli

v0.1.23

Published

Brain CLI wrapper for the Klevar Docs API — covers all 165 production endpoints + digest snapshot. Source of truth for the Brain repo's docs control surface.

Downloads

2,345

Readme

@klevar/docs-cli

Brain CLI wrapper for the Klevar Docs API. Covers all 165 production endpoints + a digest snapshot for daily ops surfacing.

Install

npm install @klevar/docs-cli

Configure

Create ~/.klevar/docs.env (or set env vars):

DOCS_API_KEY=<your-bearer-token>
DOCS_API_URL=https://docs.klevar.ai

Or pass per-invocation:

npx klevar-docs --api-key=<token> --api-url=https://docs.klevar.ai invoice list

Usage

npx klevar-docs version
npx klevar-docs ping
npx klevar-docs invoice list
npx klevar-docs invoice create --entity llc --client mathias \
  --line "Retainer:1500" --currency EUR --due 2026-06-30
npx klevar-docs reports revenue --entity llc --year 2026
npx klevar-docs hash-chain verify --entity <id>
npx klevar-docs admin events --limit 10

--help lists every command group.

Output modes:

  • default — human-readable
  • --json — machine-parseable
  • --quiet — IDs only, for shell pipelines

Programmatic

import { createClient } from '@klevar/docs-cli';
import { checkDocs } from '@klevar/docs-cli/digest';
import { loadConfig } from '@klevar/docs-cli/config';

const config = loadConfig();
const client = createClient(config);
const digest = await checkDocs({ client });
console.log(digest.overdue_invoice_count);

What it covers

29 command modules covering every PRD §12 surface:

  • Lifecycle: invoice / pro-forma / credit-note / payment / storno
  • AP: vendor / vendor-bill / vendor-payment / vendor-credit-note / intercompany
  • Pipeline: documents / templates / signatures / signing-cert / hash-chain / factur-x / xrechnung / signers
  • Operations: entity / clients / recurring / resolutions / reports / webhooks / email / audit / admin
  • Reconciliation: reconcile / bulk

53 stub commands (endpoints not yet live in production) print honest "not yet implemented" messages and exit 0.

CI guarantee

The source repo (klevar-docs) runs scripts/check-cli-coverage.ts on every PR — fails CI if any production endpoint lacks a CLI command, if a CLI references a path absent from the OpenAPI spec, or if a CLI body literal drifts from the OpenAPI requestBody schema (B148 schema-shape diff). Means this package's coverage tracks the API drift-free.

Releasing

Maintainer flow (B148 E3):

# From repo root, on a clean working tree:
./tools/scripts/release.sh patch    # bump 0.1.1 → 0.1.2
# or release.ps1 patch on Windows

Behind the scenes:

  1. npm --tag-version-prefix=cli-v version <kind> in tools/ bumps tools/package.json, commits, and tags cli-v<new-version>.
  2. git push origin --tags pushes the new tag.
  3. .github/workflows/publish-cli.yml fires on the cli-v*.*.* tag, validates the tag matches tools/package.json, builds, and runs npm publish --access public.

Required repo secret: NPM_TOKEN (an Automation token from npmjs.org → Access Tokens). Set once via gh secret set NPM_TOKEN or the GitHub web UI.

Manual fallback: trigger the Publish @klevar/docs-cli to npm workflow from the Actions tab and supply the tag name as input.

License

UNLICENSED — internal Klevar Group tooling.