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

@systemix/password

v0.4.0

Published

A cryptographically secure password generator with customizable complexity. Part of the Systemix toolkit.

Readme

@systemix/password

npm

@systemix/password is a customizable, lightweight, and cryptographically secure password generator for JavaScript and TypeScript. Built for maximum security, it relies entirely on Node.js built-in crypto modules, ensuring zero external dependencies and a low supply-chain risk profile.

Features

  • Secure: Uses crypto.getRandomValues() with bias-free distribution for maximum security.
  • Character Guarantees: Ensure a minimum number of uppercase, lowercase, numbers, or symbols.
  • Custom Charsets: Pass your own character sets for generation.
  • Entropy Calculation: Built-in utility to calculate technical password entropy.
  • Zero Dependencies: Purely built with Node.js built-ins.
  • TypeScript Ready: Full type definitions included.

Installation

pnpm add @systemix/password

or

npm install @systemix/password

From GitHub Packages (add to .npmrc: @shahadathhs:registry=https://npm.pkg.github.com):

pnpm add @shahadathhs/password

Use @shahadathhs/password in imports.

Usage

Simple Example

import { generatePassword } from '@systemix/password';

const password = generatePassword({
  length: 16,
  useNumbers: true,
  useSymbols: true,
});

console.log(password); // Example: "Z#kM@4p*J!h2X&b7"

Guarantees and Character Sets

const securePass = generatePassword({
  length: 12,
  minNumbers: 2,
  minSymbols: 2,
  useUppercase: true,
  customSymbols: '!@#$%^&*', // Use specific symbols only
});

Entropy Calculation

import { calculatePasswordEntropy } from '@systemix/password';

const entropy = calculatePasswordEntropy(12, 62); // length, charset size
console.log(`Entropy: ${entropy} bits`);

API Reference

generatePassword(props?: PasswordProps): string | string[]

| Property | Type | Default | Description | | :------------------------- | :-------- | :-------- | :------------------------------------ | | length | number | 12 | Password length (1 to 100). | | useNumbers | boolean | true | Include 0-9. | | useUppercase | boolean | true | Include A-Z. | | useLowercase | boolean | true | Include a-z. | | useSymbols | boolean | false | Include special characters. | | minNumbers | number | 0 | Minimum numbers to include. | | minUppercase | number | 0 | Minimum uppercase letters to include. | | minLowercase | number | 0 | Minimum lowercase letters to include. | | minSymbols | number | 0 | Minimum symbols to include. | | customNumbers | string | 0-9 | Custom number set. | | customUppercase | string | A-Z | Custom uppercase set. | | customLowercase | string | a-z | Custom lowercase set. | | customSymbols | string | Special | Custom symbol set. | | excludeSimilarCharacters | boolean | false | Exclude visually similar characters. | | exclude | string | "" | Specific characters to exclude. | | count | number | 1 | Number of passwords to generate. |

calculatePasswordEntropy(length: number, charsetSize: number): number

Calculates the theoretical entropy of a password (H = L * log2(N)).

License

MIT © shahadathhs