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

@pdsjs/npm

v0.1.3

Published

Host npm packages natively in an atproto account. Dist-tags, version manifests and tarballs live in the account's PDS as a `dev.pdsjs.npm.package` record plus blob storage, so a package rides along in CAR backups, migrates with the account, and needs no s

Readme

@pdsjs/npm

Host npm packages natively in an atproto account. Dist-tags, version manifests and tarballs live in the account's PDS as a dev.pdsjs.npm.package record plus blob storage, so a package rides along in CAR backups, migrates with the account, and needs no separate registry service:

npm config set registry https://pds.example.com/npm/
npm login
npm publish

npm install my-package   # anonymous

How it works

  • The registry serves under /npm/ on the PDS hostname, because the npm protocol wants the URL root and the PDS owns it. Point npm at the registry per project with an .npmrc, or per scope with @myscope:registry=.
  • One record per package (rkey = name with the leading @ dropped and / replaced by :). It holds the dist-tags and, per version, blob references for the tarball and the version manifest, which keeps those blobs out of orphan cleanup. The packument is assembled from the manifest blobs with each tarball URL rewritten to the requesting origin.
  • npm integrity is SHA-512, so the record carries the integrity strings; the server hashes each tarball at publish and refuses a body whose declared integrity disagrees.
  • Publishing over an existing version is refused the way npm expects, and npm dist-tag works over the wire.

Authentication

Installs are anonymous. Publishes authenticate with the account password or an app password. npm login verifies through createSession and answers the password back as the token, so the _authToken npm stores is the app password itself and nothing server-side has to survive a restart. A .npmrc written by hand works the same way:

registry=https://pds.example.com/npm/
//pds.example.com/npm/:_authToken=<app password>

Enabling

Node:

const server = await createServer({
  // ...
  experimental: { npm: true },
});

Cloudflare: set PDS_EXPERIMENTAL_NPM = "true".

Both mount createNpmExtension() through core's extensions option. A platform that builds PersonalDataServer itself does the same:

import { createNpmExtension } from '@pdsjs/npm/extension';

new PersonalDataServer({
  // ...
  extensions: [createNpmExtension({ maxTarballSize: 32 * 1024 * 1024 })],
});

Limits

  • npm publishes the tarball base64-encoded inside one JSON body, buffered server-side; maxTarballSize bounds it (default 64 MB).
  • Unpublish is not served; delete the dev.pdsjs.npm.package record instead and the orphan sweep frees the bytes.
  • Search and the audit endpoints answer 404, which npm treats as the feature being absent.