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

@ewanc26/malachite

v0.19.7

Published

Import your music listening history to AT Protocol from Last.fm, Spotify, Apple Music, YouTube Music, or ListenBrainz, with deduplication and rate limiting

Downloads

519

Readme

malachite

Import your music listening history to AT Protocol as fm.teal.feed.play records, from Last.fm, Spotify, Apple Music, YouTube Music, or ListenBrainz. Web interface at malachite.croft.click.

Full documentation at docs.ewancroft.uk.

Deduplication & sync guarantees

Malachite treats two play records as the same listen using a single shared key (@ewanc26/croft-click-core): the normalized artist, normalized track, and a canonical timestamp. Normalization is case-insensitive, punctuation-insensitive, and applies Unicode NFKC equivalence first, so Dagames/DAGames, jack stauber's/jack stauber's (curly vs straight apostrophe), and Bru-C/Bru-C (non-breaking vs regular hyphen) all collapse onto one key without rewriting the casing of the stored record.

Timestamps are parsed and re-emitted as canonical ISO 8601, so the same instant scrobbled as 2026-07-17T11:39:14Z and 2026-07-17T11:39:14.000Z hashes to one record key and publishes a byte-identical playedTime.

Beyond exact keys, the sync and cleanup paths also fold together records that share artist + track within a ±60 second window — the conservative "cross-source overlap / double-fire" tolerance (a deliberate replay of a short track after the window is preserved as a real listen). This window is configurable via the windowMs/--dedup-window option.

The historical deduplicate mode (--mode deduplicate) is dry-run first: it fetches your repo via CAR, builds a reviewable plan that keeps the richest copy of each duplicate cluster (MusicBrainz IDs, ISRC, duration preferred) and marks the rest for deletion, then prompts for confirmation before deleting anything with com.atproto.repo.deleteRecord.

Related projects

Part of the croft.click toolkit — free, browser-based tools for moving your data onto the AT Protocol:

  • Opal — Convert Twitter, Mastodon, Threads, and Nostr posts to Bluesky.
  • Jasper — Import Instagram photos, stories, and videos to Grain or Spark.
  • Bismuth — Convert ATProto richtext-block documents to Markdown.
  • Tourmaline — Analyse your Teal.fm scrobbles and find your listener archetype.

Support

This is free and open source, built and maintained in my spare time. If it's useful to you, a one-off tip on Ko-fi or a monthly sponsorship helps keep it maintained. A star on the repo or a mention to someone who'd use it helps just as much.

Trademark

“AT Protocol”, “atproto”, and “atprotocol” are trademarks of Bluesky Social PBC. This project is independent and is not affiliated with or endorsed by Bluesky Social PBC; the terms are used only to describe compatibility. See the AT Protocol trademark policy and this repository's TRADEMARKS.md.

Licence

AGPL-3.0-only.