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

@scrobblr/types

v0.1.0

Published

Shared TypeScript types for Scrobblr, generated from the Rust API models via ts-rs.

Readme

@scrobblr/types

Shared TypeScript types for Scrobblr, generated from the Rust API models (crates/shared) via ts-rs. This package is the contract between the backend and every TypeScript client (the browser extension in this repo, and the separate web app).

How it stays in sync

The .ts files under src/generated/ are produced by ts-rs: running cargo test -p shared at the repo root regenerates them (the export dir is set by TS_RS_EXPORT_DIR in .cargo/config.toml). Never edit them by hand.

src/generated/index.ts is an auto-generated barrel — bun run gen-index (part of bun run build) rebuilds it from whatever files exist, so a new model can't be forgotten.

Consuming it

Inside this monorepo it's a workspace dependency ("@scrobblr/types": "workspace:*").

Elsewhere (the web repo, contributors):

bun add @scrobblr/types
import type { ScrobbleRich, UserProfile } from "@scrobblr/types";

Publishing

Published to the public npm registry by .github/workflows/types-release.yml.

  1. Change a model in crates/shared, run cargo test -p shared, commit the regenerated src/generated/ files.
  2. Tag a release: git tag types-v0.2.0 && git push origin types-v0.2.0 (or run the workflow manually with a version).

The workflow regenerates the bindings and fails if the committed types are stale, then builds and publishes. Bump the version following semver — removing or renaming a field is a breaking change for consumers.

Requires an NPM_TOKEN repo secret (an npm automation/granular token with publish rights to the @scrobblr scope).