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

@colibri-social/space

v0.12.0

Published

Client for com.atproto.space and its space policies: delegation tokens, DPoP-bound space credentials, and verified repo reads

Readme

@colibri-social/space

A client for atproto permissioned spaces: com.atproto.space and the memberspace and managedspace policies, plus the classic PDS calls an application needs alongside them.

@atproto/space covers verification, commits and the token formats. This covers the layer above: obtaining credentials and talking to hosts.

Tracks the spaces alpha, pinned to a 0.0.0-spaces-alpha-* build

Getting a credential

Reading a space needs a space credential issued by the space authority, which is retrieved as follows:

  1. A delegation token is minted by a user's PDS. It is single-use, lives 60 seconds, and is addressed to the space authority
  2. That token is presented to the authority in exchange for a credential, with a DPoP proof that binds the credential to a key this process holds
  3. The credential is presented to each repo host in the space, with a fresh DPoP proof naming that host

SpaceCredentials runs steps 2 and 3 and caches the result. Step 1 is not handled because you need a session to create a delegation token.

const credentials = new SpaceCredentials({
  hosts: new DidDocumentSpaceHostResolver(),
  delegation: async (space) => mintDelegationTokenSomehow(space),
  storage: myStorage,
})

const client = new SpaceClient({ hosts, credentials })
for await (const writer of client.allWriters(space)) { ... }
  • A delegation token is presented as Authorization: Bearer <token> with a DPoP proof that carries no ath claim, because it is an authorization grant
  • A space credential is presented as Authorization: DPoP <credential> with a proof that does carry ath

Addressing

A space is (authority, type, skey):

at://{authority}/space/{spaceType}/{skey}

A record inside one is addressed by the author as well, because record keys are unique per repo and a space aggregates many repos:

at://{authority}/space/{spaceType}/{skey}/{author}/{collection}/{rkey}

spaceRef, parseSpaceRef, spaceRecordUri and parseSpaceRecordUri build and read both forms and validate their parts.

What is in here

| Module | | | -------------- | ------------------------------------------------------------------------- | | space-ref | building and parsing space and record references | | dpop | DPoP keys and proofs, exportable so a credential survives a restart | | credentials | the delegation-to-credential exchange, cached and deduplicated | | host | resolving #atproto_space_host, falling back to #atproto_pds | | space-client | the com.atproto.space.* read and sync surface | | pds | sessions, space writes, space policy management, and the admin calls | | repo | commit verification, CAR reading and LtHash helpers over @atproto/space | | http | a small XRPC client with the four authentication schemes these need |

Seeing it in context

Colibri's own write-up of the credential flow is in the docs.