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

@oidfed/cli

v0.5.2

Published

Command-line interface for inspecting, validating, and debugging OpenID Federation deployments — resolve trust chains, decode entity statements, verify signatures, and more.

Readme

@oidfed/cli

npm downloads license Node

Command-line interface for inspecting, validating, and debugging OpenID Federation deployments — resolve trust chains, decode entity statements, verify signatures, and more.

Status: prerelease — API may change before the upcoming stable 1.0.0 release.

Install

Requires Node.js ≥ 22.

npm install -g @oidfed/cli

Installs two equivalent binaries: oidfed and openidfed.

Usage

# Fetch an entity configuration
oidfed entity https://ta.example.org

# Resolve and validate a trust chain
oidfed chain https://rp.example.com

# Verify a JWT signature
oidfed verify eyJ... --entity-id https://rp.example.com

# Check trust mark status
oidfed trust-mark-status https://ta.example.org --trust-mark eyJ...

# Machine-readable output (decode the JWT first so `jq` sees the payload)
oidfed entity https://ta.example.org --decode --json | jq '.metadata'

# Generate a signing key
oidfed keygen --algorithm ES256

# Health check
oidfed health https://ta.example.org

# Page through a large federation with extended listing
oidfed list-extended https://ta.example.org \
  --limit 50 --audit-timestamps \
  --claims subordinate_statement --claims trust_marks

Commands

| Command | Description | |---------|-------------| | entity <entity-id> | Fetch and display an entity configuration | | fetch --issuer <url> --subject <url> | Fetch a subordinate statement from an authority | | list <entity-id> | List subordinate entities | | list-extended <entity-id> | Paginated subordinate listing with audit timestamps and bulk claim retrieval | | resolve <entity-id> | Resolve trust chains for an entity | | chain <entity-id> | Resolve and validate trust chains for an entity | | validate <jwt-or-entity-id...> | Validate a trust chain from JWTs or by resolving an entity ID | | verify <jwt> | Verify a JWT signature | | trust-mark-status <entity-id> | Check trust mark status at its issuer | | trust-mark-list <entity-id> --trust-mark-type <id> | List entities holding an active Trust Mark of the given type | | decode <jwt> | Decode a JWT without verification | | keygen | Generate a signing key pair | | sign | Sign a JSON payload as a JWT | | health <entity-id> | Check federation endpoint health | | expiry <jwt-or-entity-id> | Show expiration details for a JWT or entity trust chain |

Global flags

Apply to every command:

| Flag | Description | |------|-------------| | --json | Output raw JSON (machine-readable, suitable for piping to jq) | | -c, --config <path> | Path to a config file (overrides default discovery) | | -q, --quiet | Suppress informational output | | -v, --verbose | Enable debug output |

Configuration

Config file: ~/.oidfed/config.yaml (override with --config <path> or the OIDFED_CONFIG_PATH environment variable).

trust_anchors:
  - entity_id: https://ta.example.org
    jwks:
      keys:
        - kty: EC
          crv: P-256
          x: "..."
          y: "..."

http_timeout_ms: 10000
max_chain_depth: 10

Documentation

Full reference: docs/tools/cli.md

Part of @oidfed

| Package | Role | |---------|------| | @oidfed/core | Federation primitives | | @oidfed/authority | Trust Anchor & Intermediate operations | | @oidfed/leaf | Leaf Entity toolkit | | @oidfed/oidc | OIDC/OAuth 2.0 federation flows | | @oidfed/cli | CLI for federation debugging (this package) |

License

Apache-2.0 — see NOTICE for attribution.