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

@nikolareljin/credential-lens

v0.3.0

Published

Safe, evidence-based credential inspection

Downloads

68

Readme

credential-lens

credential-lens safely inspects SSH key files and compact JWTs and produces evidence-based facts for security-review tooling.

Author

Nik Reljin · LinkedIn

Install

After npm publication, install it globally to use the CLI:

npm install --global @nikolareljin/credential-lens
credential-lens inspect --file /protected/path/to/artifact --format json

Run with npx

Run the published CLI without installing it globally:

npx --yes @nikolareljin/credential-lens inspect --file /protected/path/to/artifact --format json

Use the same file-only form for each credential; do not place credential values in shell arguments.

Or add it to another Node.js tool:

npm install @nikolareljin/credential-lens
import { inspectFile } from '@nikolareljin/credential-lens';

const result = await inspectFile('/protected/path/to/artifact');

For local development before publication, install from a checkout:

npm install /path/to/credential-lens
credential-lens inspect --file /path/to/id_ed25519 --format json
credential-lens inspect --file /path/to/encrypted-key --unlock --format json
credential-lens inspect --file /path/to/token.jwt --format json

It accepts only a path, never a key value argument. Reports never contain private-key material or passphrases. They include format, encryption, algorithm, safe public-key facts, and clearly labelled identity claims embedded in the supplied credential. Use --unlock only from an interactive terminal to have the local OpenSSH utility prompt for, and verify, the passphrase. The passphrase is never an argument, report field, log value, or file. JWT output shows decoded header and payload claims, plus issued-at, not-before, and expiration timestamps converted to UTC. It never emits the raw token or signature, and decoding is not signature verification.

SSH keys do not contain a cryptographically verified owner, creation date, or ordinary-key expiry. JWT claims and OpenSSH certificates can carry issuer, subject, issued-at, and validity claims; these remain unverified until signature validation is added.

Test-data policy

Tests use only synthetic, non-usable parser fixtures. Do not add real SSH keys, credentials, production-derived data, or generated key material to this repository.

Documentation

Library

import { inspectFile } from '@nikolareljin/credential-lens';

const report = await inspectFile('/protected/path/to/key');

For PEM keys, an interactive host application may pass a short-lived in-memory passphrase option to inspect public facts that require unlocking. The command-line tool deliberately does not accept passphrases.