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 🙏

© 2025 – Pkg Stats / Ryan Hefner

seampass-password-generator

v1.0.20

Published

Secure password generation and strength checking by swissjake - Generate random and memorable passwords with CLI support

Downloads

56

Readme

SeamPass Password Generator

npm version npm downloads license TypeScript Author

Created by sofiritari - A secure and flexible password generation library with CLI support for random and memorable passwords.

Features

  • 🔐 Random Password Generation - Generate cryptographically secure random passwords
  • 🧠 Memorable Password Generation - Create memorable passwords using word lists
  • 📦 Built-in Word List - Includes EFF word list for memorable passwords
  • 🌐 Universal Support - Works in browsers and Node.js environments
  • 📝 TypeScript Support - Full TypeScript definitions included
  • 🖥️ CLI Tool - Command-line interface for quick password generation

Installation

npm install seampass-password-generator

Quick Start

As a Library

import {
  generateRandomPassword,
  generateMemorablePassword,
  EFF_WORDLIST,
} from "seampass-password-generator";

// Generate a random password
const randomPassword = generateRandomPassword({
  useNumbers: true,
  useLetters: true,
  useCharacters: true,
  useCapitals: true,
  length: 16,
});

// Generate a memorable password
const memorablePassword = generateMemorablePassword(EFF_WORDLIST, {
  useNumbers: true,
  useCharacters: true,
  useUppercase: true,
  wordCount: 4,
});

As a CLI Tool

# Install globally for CLI access
npm install -g seampass-password-generator

# Generate random password
seampass random --length 20 --numbers --symbols

# Generate memorable password
seampass memorable --words 5 --numbers

# Copy to clipboard
seampass random --copy

# Show help
seampass --help

Note: The --copy flag requires clipboard support on your terminal system. On Linux, you may need xclip or xsel installed.

Tip: To use the CLI locally without global installation, run npx seampass-password-generator or add scripts to your package.json.

CLI Usage

Random Password Generation

seampass random [options]

Options:

  • --length <number> - Password length (default: 16)
  • --numbers - Include numbers
  • --letters - Include letters
  • --symbols - Include symbols
  • --capitals - Include capitals
  • --copy - Copy to clipboard

Examples:

# Generate 20-character password with numbers and symbols
seampass random --length 20 --numbers --symbols

# Generate password and copy to clipboard
seampass random --length 16 --numbers --symbols --copy

Memorable Password Generation

seampass memorable [options]

Options:

  • --words <number> - Number of words (default: 4)
  • --numbers - Add random numbers to words
  • --symbols - Add special characters to words
  • --capitals - Capitalize random letters in words
  • --copy - Copy to clipboard

Examples:

# Generate 5-word memorable password with numbers
seampass memorable --words 5 --numbers

# Generate memorable password with symbols and copy to clipboard
seampass memorable --words 4 --symbols --copy

API Reference

Random Password Generation

generateRandomPassword(options: RandomPasswordOptions): string

Options:

  • useNumbers (boolean): Include numbers (default: false)
  • useLetters (boolean): Include letters (default: false)
  • useCharacters (boolean): Include special characters (default: false)
  • useCapitals (boolean): Include capital letters (default: false)
  • length (number): Password length (required)

Example:

const password = generateRandomPassword({
  useNumbers: true,
  useLetters: true,
  useCharacters: true,
  useCapitals: true,
  length: 16,
});
// Output: "K8#mN9$pL2@vX7q"

Memorable Password Generation

generateMemorablePassword(wordList: string[], options: MemorablePasswordOptions): string

Options:

  • useNumbers (boolean): Add random numbers to words (default: false)
  • useCharacters (boolean): Add special characters to words (default: false)
  • useUppercase (boolean): Capitalize random letters in words (default: false)
  • wordCount (number): Number of words to use (required)

Example:

const memorablePassword = generateMemorablePassword(EFF_WORDLIST, {
  useNumbers: true,
  useCharacters: true,
  useUppercase: true,
  wordCount: 4,
});
// Output: "Correct-Horse-Battery-Staple-42"

Built-in Word List

import { EFF_WORDLIST } from "seampass-password-generator";

const memorablePassword = generateMemorablePassword(EFF_WORDLIST, {
  wordCount: 4,
  useNumbers: true,
});

Advanced Usage

Custom Word Lists

You can provide your own word list for memorable passwords:

const customWordList = ["apple", "banana", "cherry", "dragon", "eagle"];

const password = generateMemorablePassword(customWordList, {
  wordCount: 3,
  useUppercase: true,
});

Programmatic Usage

import {
  generateRandomPassword,
  generateMemorablePassword,
  EFF_WORDLIST,
} from "seampass-password-generator";

// Generate multiple passwords
const passwords = [];
for (let i = 0; i < 5; i++) {
  passwords.push(
    generateRandomPassword({
      useNumbers: true,
      useLetters: true,
      useCharacters: true,
      length: 12,
    })
  );
}

console.log("Generated passwords:", passwords);

Browser vs Node.js

This package works in both browser and Node.js environments:

  • Browser: Full functionality
  • Node.js: Full functionality including CLI

TypeScript

Full TypeScript support is included:

import type {
  RandomPasswordOptions,
  MemorablePasswordOptions,
} from "seampass-password-generator";

const options: RandomPasswordOptions = {
  useNumbers: true,
  useLetters: true,
  length: 16,
};

License

MIT

Contributing

This package is part of the SeamPass monorepo. For contributions, please refer to the main repository.