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

@disclosure-api/cli

v0.0.1

Published

Agent-friendly command line client for the Disclosure API.

Readme

Disclosure API CLI

Agent-friendly command line client for the Disclosure API.

Install

npm install -g @disclosure-api/cli

The package exposes one binary:

disclosure --help

Environment

export DISCLOSURE_API_KEY="your_api_key"
export DISCLOSURE_API_BASE_URL="https://disclosureapi.com"

DISCLOSURE_API_BASE_URL is optional and defaults to https://disclosureapi.com. A local API server can be used with:

DISCLOSURE_API_BASE_URL=http://127.0.0.1:5173 disclosure status

DISCLOSURE_API_KEY is required for all protected /v1 commands. disclosure status is public.

Output Contract

Success writes JSON to stdout. Errors write a JSON error envelope to stderr and exit non-zero. List commands support --format jsonl for one returned data row per line.

Use --all on list commands to follow pagination.has_more and pagination.next_offset until the API has no more pages.

Agent Help

The CLI is self-describing:

disclosure --help
disclosure help --json
disclosure help filings list
disclosure filings list --help

disclosure help --json returns a machine-readable command catalog with command names, arguments, flags, API endpoints, auth requirements, output behavior, and examples.

For coding agents:

  • Prefer --format json unless --format jsonl is easier to stream.
  • Use --all only when a complete dataset is required.
  • Avoid --include-text unless full extracted filing text is needed.
  • On non-zero exit, parse stderr JSON and inspect error.code and error.details.
  • Cite returned SEC/source URLs when relevant.

Examples

disclosure status
disclosure companies search AAPL --limit 5
disclosure companies get AAPL
disclosure filings list --ticker AAPL --form-type 8-K --format jsonl
disclosure filings get 0000320193-24-000037
disclosure filings sections 0000320193-24-000037 --item-code 2.02
disclosure earnings list --ticker DELL --limit 5
disclosure insider-transactions list --ticker AAPL --transaction-class buy
disclosure insider-holdings list --ticker AAPL --format jsonl
disclosure insiders search "Cook"
disclosure insiders transactions 0001214156 --all --format jsonl
disclosure material-events list --ticker AAPL --event-type earnings_release
disclosure confidential-filings list --ticker AAPL