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

@devcomdigital/license-sdk

v0.1.2

Published

Server-side client for verifying Devcom Digital subscriber license keys.

Readme

@devcomdigital/license-sdk

Server-side client for verifying a Devcom Digital subscriber's license key from any tool in the suite (SEO/keyword research, social scheduler, campaign analytics, ad creative generator, or anything added later).

Published on the public npm registry for ease of installation, but this is internal tooling for the Devcom Digital tool suite specifically — it's only useful if you're integrating a tool with devcomdigital.com's license system.

It talks to POST /api/license/verify on the main Devcom Digital app — see docs/license-sdk-plan.md in the repo root for the full design and rollout plan.

Never use this from the browser. The API key identifies your tool to Devcom's backend; keep it server-side (env var), and only call verify() from your own backend after receiving a license key from your user.

Ships as both CommonJS and ESM with bundled type declarations, so it works the same from a plain require() Node script, a "type": "module" / ESM project, or a TypeScript codebase (Next.js API routes, Express, Fastify, NestJS, etc.) — no separate build needed per consumer. Requires Node 18+ (uses the global fetch/AbortController).

Install

npm install @devcomdigital/license-sdk

Published publicly on npm — see @devcomdigital/license-sdk.

Get an API key

In the Devcom Digital admin: Tools -> (your tool) -> Edit -> License verification API key -> Generate new key. Copy it immediately — it's shown once and stored elsewhere only as a hash.

Usage

// ESM / TypeScript
import { DevcomLicense } from "@devcomdigital/license-sdk";

const license = new DevcomLicense({
  apiKey: process.env.DEVCOM_TOOL_API_KEY!,
  // baseUrl defaults to https://devcomdigital.com — override for local/staging.
});

const result = await license.verify(userSuppliedKey);

if (!result.valid) {
  // result.reason: "not_found" | "revoked" | "subscription_inactive"
  //              | "network_error" | "unauthorized"
  return res.status(403).json({ error: "Subscription required", reason: result.reason });
}

// result.userId is the Devcom user id the key belongs to.
// CommonJS — identical API, just require() instead of import
const { DevcomLicense } = require("@devcomdigital/license-sdk");

const license = new DevcomLicense({ apiKey: process.env.DEVCOM_TOOL_API_KEY });
const result = await license.verify(userSuppliedKey);

Options

| Option | Default | Notes | | ------------ | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | apiKey | required | Per-tool key from the admin. | | baseUrl | https://devcomdigital.com | Point at a local/staging deployment during development. | | cacheTtlMs | 600000 (10 min) | How long a result is cached in memory per key. 0 disables caching. | | onError | "closed" | On a network/server failure: "closed" = treat as invalid (safe default), "open" = treat as valid. Only use "open" if an outage on Devcom's side must never block your tool. | | timeoutMs | 5000 | Verify request timeout. |

Results are cached in-process, per key — fine for a single server; in a multi-instance deployment each instance keeps its own cache, so a revoked license can take up to cacheTtlMs to be reflected on every instance.

Express middleware

import { requireLicense } from "@devcomdigital/license-sdk/express";

app.use("/api/protected", requireLicense(license));
// reads the key from the `x-license-key` header by default; pass
// `getLicenseKey` to read it from somewhere else (query param, body, etc.)

Development

npm install
npm run build      # tsup: emits dist/*.cjs + dist/*.js (ESM) + .d.ts/.d.cts
npm run typecheck

License

UNLICENSED — proprietary, published for Devcom Digital's own tool suite. Not open source; not intended for use outside Devcom Digital tools.