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

@liiift-studio/sanity-studio-version-badge

v2.3.4

Published

Sanity Studio plugin — shows installed @liiift-studio package versions in a bottom-right badge on the structure root page.

Downloads

302

Readme

sanity-studio-version-badge

npm version

Sanity Studio plugin that shows installed @liiift-studio package versions in a fixed bottom-right badge on the structure root page. Surfaces recently published packages and reminds the team when updates are available.

Screenshot pending — a maintainer screenshot of the badge in Studio goes here. The diagram below documents exactly when it appears.

The badge only renders on the structure root, and only when it has something worth saying:

When the version badge appears: it shows on the structure root — always on localhost, and in production only when a package version changed or more than 7 days passed since it was last seen.

Install

npm install @liiift-studio/sanity-studio-version-badge

Usage

Add the plugin to your sanity.config.ts:

import { defineConfig } from 'sanity'
import { liiiftVersionBadge } from '@liiift-studio/sanity-studio-version-badge'

export default defineConfig({
	projectId: 'your-project-id',
	dataset: 'production',
	plugins: [
		liiiftVersionBadge({
			packages: [
				{ name: '@liiift-studio/sanity-font-manager', version: '2.3.18' },
				{ name: '@liiift-studio/sanity-bulk-data-operations', version: '2.0.0' },
				{ name: '@liiift-studio/sanity-studio-version-badge', version: '2.3.3' },
			],
		}),
	],
})

Pass the currently installed version of each @liiift-studio package. The badge compares these against the latest npm releases to highlight updates.

Keeping the versions in sync

The packages list is supplied by you — the plugin does not auto-detect installed versions. To avoid a hand-maintained list drifting out of date, import each package's version straight from its package.json so the badge always reflects what's actually installed:

import fontManagerPkg from '@liiift-studio/sanity-font-manager/package.json'
import bulkOpsPkg from '@liiift-studio/sanity-bulk-data-operations/package.json'

liiiftVersionBadge({
	packages: [
		{ name: fontManagerPkg.name, version: fontManagerPkg.version },
		{ name: bulkOpsPkg.name, version: bulkOpsPkg.version },
	],
})

This requires resolveJsonModule in your tsconfig.json. If you prefer to hardcode versions, update them whenever you bump a dependency — a stale entry makes the badge report the wrong installed version.

Visibility rules

| Environment | When shown | |---|---| | Localhost | Always visible on the structure root | | Production | On version change, or if more than 7 days since last shown |

  • Packages published within the last 7 days are labeled new
  • npm descriptions are fetched asynchronously and shown in tooltips
  • A close button dismisses the badge for 7 days (cookie-based)

Peer Dependencies

| Package | Version | |---|---| | @sanity/icons | >=3 | | @sanity/ui | >=3 | | react | >=18 | | sanity | >=3 |

Built and type-checked against sanity v5 / React 19; the >=3 / >=18 ranges reflect the minimum supported majors.

Network & privacy

The badge runs entirely client-side in the Studio. While it is shown, it:

  • Fetches the public npm registry (https://registry.npmjs.org/<package>) once per listed package, a few seconds after load, to read each package's publish dates and description. These are direct requests from the browser; no proxy or server is involved. If a request fails (offline, private/unpublished package), that package simply shows no "new" label and no tooltip.
  • Stores one cookie, liiift_pkg_versions, holding the last-seen version of each listed package and a timestamp. This drives the "shown on version change or after 7 days" logic and the 7-day dismissal. The cookie is SameSite=Strict, scoped to the Studio origin, with a 1-year expiry. No version data leaves the browser.

Because the registry lookup hits the public npm registry, descriptions and "new" labels only resolve for packages published publicly. Note that these requests reveal which packages you list to npm (and anyone observing the connection), since each package name appears in a request URL.

License

MIT — see LICENSE.