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

backing-tracks-isomorphic

v1.0.7

Published

Shared Backing Tracks code that runs on client and server.

Readme

Backing Tracks Isomorphic

Contains code that we use on both the client and server, namely:

  • zod schemas... spent a lot of time thinking if want to use something like TypeSpec to first define my endpoints there. And then generate openapi and zod schemas.. Would be really cool to do it in such an API first approach. But decided it was too much for this. Might try it in a big prod someday.
  • ts types
  • possibly more in the future

schemas/api

I am trying out an API first approach for this backing-tracks app. So these schemas are used to validate the server response and ofc used on the client as well.

Prod

Code is built and published to npm from my machine :P

  1. Bump up the version.
  2. npm i
  3. stage changes.
  4. npm run build
  5. npm publish
  6. commit & push.

Local

For local integration of this bulld with other projects there are quite a few different ways:

  • yalc - have used it before and like it.
  • npm local file. Creates a symlink like npm link does. https://docs.npmjs.com/cli/v10/configuring-npm/package-json#dependencies https://docs.npmjs.com/cli/v10/configuring-npm/package-json#local-paths
  • npm link https://docs.npmjs.com/cli/v10/commands/npm-link
  • npm workspaces - bigger abstraction, need to check it out.

Ended up using symlinks by specifying the local file path in package json.

npm run dev - builds the pkg on src file changes.

TODO:

  • sanitize input... for path and query params as well.
  • maybe create the seeder here - can be used in server and also for cleint mock data ?
  • make sure it is easy to use with MSW as well!
  • actyally should keep the zod and validation lib versions pinned as we want to have the exact same for the client and the server.
  • upgrade to zod4
  • move to the github pkg registry
  • play around with optimizing bundle size here and at client side https://stackoverflow.com/questions/70296652/how-can-i-use-exports-in-package-json-for-nested-submodules-and-typescript
  • CI/CD with GitHub Actions - build and publish to npm - we should qualify for the free plan.
  • TypeSpec - define api first, then generate open api and zod.
  • check release management tools although we really don't need one! - release-it, changesets, semantic-release, etc.. Now, we will just do npm publish.