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

bip39-validator

v3.1.0

Published

A blazing-fast, multi-language BIP-39 validator with CLI, suggestions, TypeScript types, and full mnemonic checksum validation.

Readme


✨ Features

  • 🔍 Validate single BIP-39 words
  • 🔠 Validate entire mnemonics
  • 🌍 Supports 8 official BIP-39 languages
  • 🔧 CLI included: bip39check
  • 🧠 Smart spelling suggestions
  • ⚡ Zero external dependencies besides bip39
  • 📘 Full TypeScript definitions
  • 🏁 Short language flags (--en, --es, --jp)
  • 🔥 Tiny, fast, production-ready

🌍 Supported Languages


🚀 Installation

Global CLI:


🧠 API Usage


🧩 Validate Mnemonics

English Example

Japanese Example


🛠️ CLI Usage

After global install:

🌍 Language Flags (Short & Full)

English:

Spanish:

Japanese:

Chinese Simplified:


🧩 Validate Full Mnemonic


📘 Help


🧪 Run Tests


🔐 Security

This library is designed with security in mind:

  • ✅ No logging of mnemonics or words
  • ✅ No network calls – everything runs locally
  • ✅ Uses the official bip39 wordlists & checksum logic
  • ✅ Validates both word membership and BIP-39 checksum
  • ✅ Works in Node.js and can be bundled for browser/extension use

Important: this package does not generate keys, addresses, or wallets.
It only validates BIP-39 phrases; you remain in full control of how you handle secrets.


🆚 Why use this instead of bip39 directly?

bip39 is a great low-level library, but bip39-validator gives you a focused, higher-level API:


🧪 Playground

A small interactive playground:

https://bip39-validator-app.vercel.app/ (live)

You’ll be able to:

  • Paste a mnemonic
  • See if it’s valid
  • See why it fails (checksum, length, unknown words)
  • Get suggestions for mistyped words

🛠 Migration Guide: v1.x → v2.0 → 3.0


🤝 Contributing

Pull requests welcome!

https://github.com/ARichie1/bip39-validator