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

@xcript-dev/sdk

v0.1.4

Published

License validation SDK for Xcript — validate license keys with Ed25519 signature verification and offline caching

Readme

@xcript-dev/sdk

Stop building license systems. Start shipping.

Validate licenses, control activations, gate features — in 5 lines of code.

npm bundle size


Why?

You built software. You sell it. But:

  • ❌ Someone buys one license, shares it with 10 people
  • ❌ A client stops paying and keeps using your app
  • ❌ You can't disable access remotely
  • ❌ Building auth + licensing from scratch = weeks of work

With Xcript: install, configure, done. Licensing solved forever.


Quick Start — 60 Seconds

npm install @xcript-dev/sdk
import { XcriptClient } from '@xcript-dev/sdk'

const xcript = new XcriptClient({
  apiKey: 'xk_your_api_key',
  licenseKey: 'XCR-XXXX-XXXX-XXXX',
})

const license = await xcript.validate()

if (license.valid) {
  const maxUsers = license.config['max_users']
  // Your app runs ✅
} else {
  // License expired, revoked, or invalid ❌
  console.log('Status:', license.status)
}

That's it. Your app now validates licenses automatically.


What You Get

| Feature | What it does | |---------|-------------| | License validation | One call to know if the user paid | | Machine tracking | SHA-256 fingerprint — control how many devices per license | | Feature flags | config['max_users'] — change limits from your dashboard, no redeploy | | Kill switch | Revoke any license instantly from the dashboard | | Offline mode | Works without internet for 72 hours (cached) | | Anti-tampering | Ed25519 signed responses — impossible to fake | | Tiny footprint | 5 KB gzipped, 1 dependency |


Real-World Example: Protecting a CLI Tool

#!/usr/bin/env node
import { XcriptClient } from '@xcript-dev/sdk'

const xcript = new XcriptClient({
  apiKey: process.env.XCRIPT_API_KEY!,
  licenseKey: process.env.LICENSE_KEY!,
  publicKey: process.env.XCRIPT_PUBLIC_KEY,  // Optional: verify signatures
})

// ── Validate on startup ────────────────────────
const license = await xcript.validate()

if (!license.valid) {
  console.error(`❌ License ${license.status}. Purchase at https://yourapp.com/pricing`)
  process.exit(1)
}

console.log(`✅ Licensed — ${license.config['plan_name']} plan`)
console.log(`   Machine: ${xcript.machineId.slice(0, 8)}...`)

// ── Use dynamic config from dashboard ──────────
const maxProjects = parseInt(license.config['max_projects'] || '3')
const features = (license.config['features'] || '').split(',')

if (features.includes('export')) {
  // Premium feature unlocked
}

// ── Deactivate on uninstall ────────────────────
process.on('SIGINT', async () => {
  await xcript.deactivate()  // Frees the activation slot
  process.exit(0)
})

API Reference

new XcriptClient(config)

| Option | Type | Required | Default | Description | |--------|------|----------|---------|-------------| | apiKey | string | ✅ | — | Your API key (xk_...) | | licenseKey | string | ✅ | — | License key (XCR-XXXX-XXXX-XXXX) | | publicKey | string | — | — | Ed25519 public key for signature verification | | baseUrl | string | — | https://api.xcript.dev | API base URL | | gracePeriod | number | — | 259200 (72h) | Offline cache TTL in seconds | | cachePath | string | — | ~/.cache/xcript/ | Custom cache file path |

Methods

| Method | Returns | Description | |--------|---------|-------------| | validate() | Promise<ValidationResponse> | Validate license (with offline fallback) | | deactivate() | Promise<void> | Deactivate this machine | | isValid() | boolean | Last known state (sync, no network) | | machineId | string | SHA-256 fingerprint of this machine |

ValidationResponse

{
  valid: boolean
  licenseId: string | null
  productId: string | null
  status: 'active' | 'expired' | 'revoked' | 'killed' | 'not_found'
  config: Record<string, string>   // Dynamic config from dashboard
  signature: string                 // Ed25519 signature
  validatedAt: string               // ISO 8601
}

Works With

Node.js ≥18 · Bun · Deno · Express · Fastify · NestJS · Electron · Tauri · Any JS/TS runtime

Using Next.js?

@xcript-dev/next — middleware + hooks + server utilities. Zero boilerplate.

Links


MIT © Xcript