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

@pmcollab/coworkstream-license

v0.2.0

Published

License-key verification for @pmcollab/coworkstream-* commercial packages. Ed25519-signed tokens, offline verification, no phone-home.

Readme

@pmcollab/coworkstream-license

License-key verification for @pmcollab/coworkstream-* commercial packages. Ed25519-signed tokens, offline verification, no phone-home.

Consumer usage

Register the key once at app startup, before rendering any @pmcollab/coworkstream-* component:

import { setLicenseKey } from '@pmcollab/coworkstream-license'

setLicenseKey(import.meta.env.VITE_MISSIONCONTROL_LICENSE)

In development builds the components render normally regardless — design partners and trial users can evaluate without a key. In production builds (NODE_ENV === 'production'), gated components refuse to render until a valid key is registered.

Manual gating

import { LicenseGate } from '@pmcollab/coworkstream-license/react'

;<LicenseGate>
  <PaidFeature />
</LicenseGate>

Reading status

import { getLicenseStatus } from '@pmcollab/coworkstream-license'

const s = getLicenseStatus()
// { valid: true, payload: { c, p, iat, exp, f? } }
// or
// { valid: false, reason: 'missing' | 'invalid_format' | 'bad_signature' | 'expired' | 'no_public_key' }

Issuing keys (vendor-side)

One-time setup

Generate the signing keypair and embed the public key in the package:

node scripts/sign-license.js init

This writes packages/license/src/public-key.js and prints the private key to stdout. Save it in a secret store (1Password, AWS Secrets Manager, etc.) — it must never be committed. Replacing the keypair invalidates every previously-issued license, so do it deliberately.

Sign a customer license

$env:MISSIONCONTROL_LICENSE_PRIVATE_KEY="<hex>"
node scripts/sign-license.js sign --customer=acme-corp --plan=pro --expires=2027-01-01

Optional --features=foo,bar adds a feature-flag list (payload.f) you can read from getLicenseStatus() to gate individual features.

Token format

Compact, two-part: <base64url(payload_json)>.<base64url(signature)> where signature = Ed25519.sign(payload_json, privateKey).

Conventional payload fields:

| Field | Meaning | | ----- | -------------------------------- | | c | Customer id | | p | Plan tier (trial, pro, …) | | iat | Issued-at (Unix seconds) | | exp | Expiry (Unix seconds) | | f | Optional feature flags (string[]) |