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

@joinmonolith/cli

v0.1.3

Published

Official CLI for the Monolith API (api.joinmonolith.com)

Readme

@joinmonolith/cli

Official command-line interface for the Monolith API.

Install

Global:

npm install -g @joinmonolith/cli
# or
bun add -g @joinmonolith/cli

One-shot via npx:

npx @joinmonolith/cli hash ./image.png

Commands

monolith hash <path|-> [--json]

Compute the SHA-256 fingerprint of a file (or stdin) plus a perceptual hash when the file kind is recognized:

Auto-detects file kind via magic-byte sniffing (file-type).

Human output (default)

$ monolith hash ./image.png
fingerprint=0x20a7b5ffe611944e5773e165d2d2a25d79cea4880a27dbac4624b3158a7aef7e
kind=image
mime=image/png
phash=918b8b916e4aee91

$ monolith hash ./song.mp3
fingerprint=0x6ea817bd7891b4f75dbe37498a36f02b232337f0e8ec04ee4fd5843bed1b2d39
kind=audio
mime=audio/mpeg
chromaprint=AQAAE0mUaEkSZSoAAAAAAAAA...
sampleRate=44100
channels=2
durationSec=183.524

JSON output (--json)

$ monolith hash ./image.png --json
{"fingerprint":"0x...","kind":"image","mime":"image/png","ext":"png","phash":"918b8b916e4aee91"}

Stdin

$ cat ./image.png | monolith hash -
fingerprint=0x...
kind=image
phash=...

Exit codes:

  • 0 success
  • 1 runtime error (missing file, IO failure)
  • 2 invalid usage (missing arg, unknown command)

Programmatic use

import { fingerprintFile, fingerprintBytes } from "@joinmonolith/cli";

const fp = await fingerprintFile("./image.png");
// 0x...

const fp2 = fingerprintBytes(new Uint8Array([1, 2, 3]));

Lower-level perceptual hashes are exported on the same module if you have already loaded the bytes:

import { detectKind, phashImage, chromaprintAudio } from "@joinmonolith/cli";

const bytes = new Uint8Array(await Bun.file("./image.png").bytes());
const info = await detectKind(bytes);
if (info.kind === "image") console.log(await phashImage(bytes));
if (info.kind === "audio") console.log((await chromaprintAudio(bytes)).fingerprint);

Development

bun install
bun test
bun run build

Releases

Automated via release-please and GitHub Actions.

Use Conventional Commits:

  • feat: → minor bump
  • fix: → patch bump
  • feat!: / BREAKING CHANGE: → major bump (or minor while pre-1.0)
  • chore:, docs:, refactor:, test: → no release

Workflow:

  1. Merge conventional commits into main.
  2. release-please opens/updates a release PR with version bump + CHANGELOG.md.
  3. Merge the release PR → tag is created → npm publishes automatically (with provenance).

One-time setup

  • Create npm access token (Automation type), add as repo secret NPM_TOKEN.
  • Ensure the @joinmonolith org exists on npm and the token has publish rights.
  • GitHub repo settings → Actions → General → Workflow permissions → enable "Read and write" + "Allow GitHub Actions to create and approve pull requests".

License

MIT