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

@causaprima/scribo-cli

v1.0.0

Published

Causa Prima Scribo CLI — generate EN 16931-compliant e-invoices (XRechnung, ZUGFeRD, plain US PDF) from the terminal.

Readme

@causaprima/scribo-cli

Generate EN 16931-compliant e-invoices from the terminal.

npx @causaprima/scribo-cli create \
  --jurisdiction DE --currency EUR \
  --sender-name "Example GmbH" --sender-country DE \
  --sender-address "Example Allee 1" --sender-postcode 10115 --sender-city Berlin \
  --sender-tax-id DE123456788 --sender-email [email protected] \
  --sender-contact-name "Billing" --sender-contact-phone "+49 30 0000000" \
  --recipient-name "Acme GmbH" --recipient-country DE \
  --recipient-address "Hauptstrasse 1" --recipient-postcode 10117 --recipient-city Berlin \
  --recipient-email "[email protected]" \
  --line "Senior consulting,3,1200,19,DAY,S" \
  --due-date 2026-05-16 \
  -o invoice.pdf

After npm install -g @causaprima/scribo-cli, the binary is available as both scribo and scribo-cli.

Commands

  • scribo create — generate an invoice and save it locally.
    • Use --from invoice.json to load CreateInvoiceInput from a JSON file.
    • Use repeated --line flags for line items: description,quantity,unit_price,tax_rate[,unit_code,tax_category_code]. Escape commas with \,.
    • Payment instructions: --payment-iban (+ optional --payment-bic) for SEPA, or --payment-account-number + --payment-routing-number for US bank details. XRechnung (German B2G) requires an IBAN.
  • scribo get <invoiceId> — fetch metadata (JSON to stdout).
  • scribo download <invoiceId> [-o file] — download bytes only.
  • scribo jurisdictions — list supported jurisdictions and formats.

Configuration

| Variable | Purpose | Default | |---|---|---| | SCRIBO_API_BASE_URL | Public API origin | https://scribo.causaprima.ai | | SCRIBO_API_KEY | Optional bearer token (reserved for v1.1 partner quotas) | (unset) |

CLI flags --base-url and --api-key override env vars.

Contract

The CLI talks to the public Scribo /api/v1/* HTTP API. The authoritative contract is the OpenAPI document at docs/openapi/scribo-v1.json in this repo (also served at GET {SCRIBO_API_BASE_URL}/api/v1/openapi.json).

Exit codes

  • 0 — success
  • 64 (EX_USAGE) — missing or malformed CLI flag
  • 65 (EX_DATAERR) — server returned 4xx (other than 404)
  • 66 (EX_NOINPUT) — invoice not found (404)
  • 70 (EX_SOFTWARE) — server returned 5xx
  • 75 (EX_TEMPFAIL) — rate-limited (429) or temporarily soft-blocked; retry after the period printed in the error
  • 1 — network or unclassified error