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

@moonbase.sh/licensing

v1.0.17

Published

Package to add sotftware licensing using Moonbase.sh to your node.js apps

Readme

@moonbase.sh/licensing

Node.js licensing SDK for Moonbase products.

Use it to request activation, validate licenses locally and online, persist licenses, and revoke activations.

Learn more in our official documentation here: https://moonbase.sh/docs/licensing/sdks/node/

Install

pnpm add @moonbase.sh/licensing

Create a licensing client

import { FileLicenseStore, MoonbaseLicensing } from '@moonbase.sh/licensing'

const licensing = new MoonbaseLicensing({
  endpoint: 'https://demo.moonbase.sh',
  productId: 'demo-app',
  publicKey: process.env.MOONBASE_PUBLIC_KEY!,
  accountId: process.env.MOONBASE_ACCOUNT_ID,

  // Optionally adjust the license store with path
  // to where the license should be stored, or use
  // alternate storage mechanisms to persist the token.
  licenseStore: new FileLicenseStore(),
})
  • publicKey is the Moonbase public key used to verify signed license tokens.
  • FileLicenseStore persists the license locally (license.mb by default).

Activation flow

const request = await licensing.client.requestActivation()

console.log('Open this URL in a browser:', request.browser)

let license = null
while (!license) {
  await new Promise(resolve => setTimeout(resolve, 1000))
  license = await licensing.client.getRequestedActivation(request)
}

await licensing.store.storeLocalLicense(license)
console.log('License stored locally')

Validate on startup

const localLicense = await licensing.store.loadLocalLicense()

if (localLicense) {
  // Validate token signature + device binding locally
  const locallyValidated = await licensing.validator.validateLicense(localLicense.token)

  // Re-validate against Moonbase (recommended for online activations)
  const refreshed = await licensing.client.validateLicense(locallyValidated)
  await licensing.store.storeLocalLicense(refreshed)
}

Revoke a license activation

const localLicense = await licensing.store.loadLocalLicense()

if (localLicense) {
  await licensing.client.revokeLicense(localLicense)
  await licensing.store.deleteLocalLicense()
}

Offline helpers

Generate a device token to support offline activation workflows:

const deviceToken = await licensing.generateDeviceToken()

Read and validate raw license bytes (for example from a file):

const license = await licensing.readRawLicense(rawLicenseBuffer)

Custom stores and device resolvers

You can inject your own ILicenseStore and IDeviceIdResolver implementations.

Note: the current configuration property name for custom device resolver is deivceIdResolver.