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

@midim/fingerprint

v0.2.0

Published

Deterministic MIDI fingerprinting — 8 content hashes from any MIDI file

Readme

@midim/fingerprint

npm License: MIT

Deterministic MIDI fingerprinting — 8 content hashes from any MIDI file. No network calls, no corpus lookups, fully local.

Install

pnpm add @midim/fingerprint
# or globally for CLI use:
pnpm add -g @midim/fingerprint

CLI Usage

# Human-readable output
midim-fingerprint song.mid

# Machine-readable JSON
midim-fingerprint song.mid --json

Example output

{
  "hashes": {
    "raw_file_hash_blake3":       "a3f9...c1d2",
    "raw_file_hash_sha256":       "7b2e...9f80",
    "normalized_midi_hash":       "c44a...3e01",
    "note_sequence_hash":         "8812...ab4f",
    "rhythm_hash":                "0d3c...7711",
    "pitch_class_hash":           "f90e...2210",
    "basic_chord_hash":           "3ab1...cc00",
    "basic_repeated_phrase_hash": "6fe3...8890"
  },
  "metadata": {
    "tracks": 2,
    "notes": 144,
    "duration_seconds": 32.5,
    "instruments": [0, 32],
    "tempo_range": { "min_bpm": 120, "max_bpm": 120 }
  },
  "fingerprint_version": "1.0"
}

TypeScript API

import { generateFingerprint } from "@midim/fingerprint";
import { readFileSync } from "node:fs";

const buffer = new Uint8Array(readFileSync("song.mid"));
const result = generateFingerprint(buffer);

// All 8 hashes are deterministic hex strings
console.log(result.hashes.raw_file_hash_blake3);
console.log(result.metadata.notes, "notes");

Hash descriptions

| Hash | What it captures | |------|-----------------| | raw_file_hash_blake3 | Exact file identity (BLAKE3) | | raw_file_hash_sha256 | Exact file identity (SHA-256) | | normalized_midi_hash | All note data normalized | | note_sequence_hash | Pitch sequence only | | rhythm_hash | Timing/duration pattern | | pitch_class_hash | Pitch class distribution | | basic_chord_hash | Chord sequence | | basic_repeated_phrase_hash | Repeated phrase patterns |

What is NOT included

  • Corpus similarity search (MIDIM.net commercial)
  • Motif registry lookup (MIDIM.net commercial)
  • Embedding/vector similarity (MIDIM.net commercial)
  • Rights confidence scoring (MIDIM.net commercial)

For registry-backed POIM, corpus similarity search, rights registry lookup, and marketplace eligibility, visit MIDIM.net.

Disclaimer

This tool computes local file hashes only. It does not determine copyright ownership, provenance registry status, or marketplace eligibility.

License

MIT