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

hybrid-id-generator

v3.2.0

Published

Configurable bigint identifiers with timestamps, machine IDs, random fields, sequence numbers, and Base32/Base62/Base64 integer encodings.

Readme

Hybrid ID Generator

npm version MIT license

Configurable bigint identifiers with a timestamp, machine ID, random fields, and sequence number. Supports Node.js and bundled browser builds, integer encodings, events, and ID age checks.

Documentation · API reference · Migration notes

npm install hybrid-id-generator
import { HID, HybridID } from 'hybrid-id-generator';

const generator = new HID({ machineId: 1, useCrypto: true });
const id: HybridID = generator.nextId();

console.log(id.toBase62());
console.log(generator.info(id));
console.log(generator.isIdExpired(id, 60_000));

CommonJS uses const { HID } = require('hybrid-id-generator'). The package root has named exports. IDs are HybridID objects, not JavaScript numbers; use bigint or strings to retain precision.

The default format is 81 bits: timestamp 42 + machine 12 + entropy 5 + random 10 + sequence 12. Assign distinct machine IDs to concurrent generators. Sequence state prevents timestamp/sequence reuse within an unmasked instance; restarts, duplicate machine assignments, and timestamp masking need application-level collision handling. See uniqueness and clocks.

Base32/Base64 use positional integer alphabets without byte padding. Use the package decoders. IDs are identifiers; application authorization controls access to records.

Development

npm ci
npx playwright install chromium
npm run verify

npm run docs:serve previews the VitePress source. npm run docs generates the committed docs/ directory used by GitHub Pages on development.

npm publishing runs on main using a configured npm trusted publisher, with a version gate and post-publish registry verification. See releasing and deployment.

MIT License · Milad Fahmy