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

@crazydevelopment/lizenz

v1.0.0

Published

Lizenzprüfung für Plugins und Programme, die über den CrazyDevelopment Hub verkauft werden.

Readme

@crazydevelopment/lizenz

Lizenzprüfung für alles, was über den CrazyDevelopment Hub verkauft wird. Ohne Abhängigkeiten — nur fetch und crypto aus Node selbst.

npm install @crazydevelopment/lizenz

Oder ohne npm, direkt vom Hub — dafür braucht es kein Konto bei npmjs:

npm install https://hub.crazyde.de/pakete/crazydevelopment-lizenz-1.0.0.tgz
const { Lizenz } = require('@crazydevelopment/lizenz');

const lizenz = new Lizenz({
  plugin: 'mein-plugin',                    // dein Slug im Hub
  geheimnis: process.env.LIZENZ_GEHEIMNIS,  // steht unter /lizenzen
  server: 'mc-01'                           // belegt einen Platz der Lizenz
});

const e = await lizenz.darfLaufen(schluessel);
if (!e.valid) {
  console.error(e.message);
  process.exit(1);
}

Was die Bibliothek abnimmt

Drei Dinge, die man von Hand gern falsch macht:

Die Unterschrift prüfen. Der Hub unterschreibt jede Antwort mit deinem Geheimnis. Ohne diese Prüfung genügt ein Eintrag in der hosts-Datei, um einen eigenen „Hub" unterzuschieben, der immer ja sagt.

Den Zufallswert zurückvergleichen. Sonst lässt sich eine einmal mitgeschnittene Ja-Antwort beliebig oft einspielen.

Eine Schonfrist einräumen. Ist der Hub nicht erreichbar, läuft dein Programm weiter — sieben Tage ab der letzten gültigen Antwort. Ein Netzproblem auf unserer Seite darf nicht den Server deiner Kundschaft lahmlegen. Ein klares Nein wirkt dagegen sofort.

Zwei Wege

| | | |---|---| | darfLaufen(key) | wirft nie; bei nicht erreichbarem Hub entscheidet die Schonfrist | | pruefen(key) | wirft HubNichtErreichbar, wenn der Hub nicht antwortet |

Was zurückkommt

{
  valid: true,
  reason: 'ok',            // blocked, expired, mismatch, offline, signature …
  message: 'License is valid.',
  owner: 'Steve',
  type: 'plugin',          // oder 'master'
  expires: null,
  geprueft: true           // wurde die Unterschrift wirklich geprüft?
}

Auf geprueft achten. Ist es false, wurde kein Geheimnis hinterlegt — die Antwort mag stimmen, nachgewiesen ist sie nicht.

Weiteres

lizenz.freigeben(key, 'mc-01');   // Serverplatz beim Umzug freigeben
lizenz.vergessen();               // Zwischenspeicher leeren
await lizenz.pruefen(key, { frisch: true });

Voreinstellungen: 8 s Zeitlimit, 6 h Zwischenspeicher, 7 Tage Schonfrist — alle im Konstruktor änderbar.

Die rohe Schnittstelle ist unter https://hub.crazyde.de/lizenz-api beschrieben; sie lässt sich in jeder Sprache in zwanzig Zeilen ansprechen. Diese Bibliothek ist Bequemlichkeit, keine Voraussetzung.