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

@jimbonlemu/word-hunts

v1.1.0

Published

Fast offline CLI tool for instant English word-prefix search

Readme

Word Hunts

██     ██ ▄████▄ █████▄  ████▄    ██  ██ ██  ██ ███  ██ ██████ ▄█████
██ ▄█▄ ██ ██  ██ ██▄▄██▄ ██  ██   ██████ ██  ██ ██ ▀▄██   ██   ▀▀▀▄▄▄
 ▀██▀██▀  ▀████▀ ██   ██ ████▀    ██  ██ ▀████▀ ██   ██   ██   █████▀

A fast and customizable command-line tool for searching English words by prefix. Built for games like Last Letter, word puzzles, linguistics tools, and general word lookup.

This CLI loads a local dictionary (400k+ words) and performs instant prefix searches using an optimized binary-search algorithm.


✨ Features

  • 🚀 Instant prefix search (optimized binary-search, extremely fast)
  • 📚 Works fully offline with local dictionary (400k+ words)
  • 🎯 Direct search mode or interactive mode
  • 🌍 Multilingual support with English and Indonesian UI
  • 🎛️ Customizable output
    • Table mode ON/OFF
    • Max result limit
    • Number of columns
    • Cell width (auto or manual)
  • 📖 Enhanced help system with clear examples and documentation
  • 🔧 Persistent settings via config.json
  • 📐 Automatic terminal-width adaptation
  • ✂️ Auto-adaptive cell width based on content
  • 🎮 Perfect for word-based games or productivity tools

📦 Installation

Via NPM (Recommended)

npm install -g @jimbonlemu/word-hunts

Via GitHub

git clone https://github.com/jimbonlemu/word-hunts
cd word-hunts
npm install
npm link

🚀 Usage

Direct Search Mode

Quick search and exit. Perfect for one-off lookups or scripting.

wh cat
word-hunts hello

Interactive Mode

Start interactive mode with UI. Great for multiple searches and exploring features.

wh
# or
word-hunts

After running, type any prefix:

Demo

Example output:

Demo

Help & Version & Language

wh --help          # Show help message
wh --version       # Show version
wh --lang en       # Switch language to English and exit
wh --lang id       # Switch language to Indonesian and exit

Language Switching

You can switch between supported languages in interactive mode:

/lang en    # Switch to English
/lang id    # Switch to Indonesian

🖥️ Commands

Direct Mode

| Command | Description | | --- | --- | | wh <prefix> | Search words starting with prefix | | wh --help or wh -h | Show help message | | wh --version or wh -v | Show version | | wh --lang <en,id> | Switch language (en/id) and exit |

Interactive Mode

| Command | Description | | --- | --- | | <prefix> | Search words starting with prefix | | /help, /h | Show this help message | | /tbon, /tboff, /tb | Toggle table mode (on/off) | | /lang, /language | Switch language (en/id) | | /sres | Set result limit | | /scol | Set number of columns | | /scw | Set cell width (auto or manual) | | /frn [on/off], /frnon, /frnoff | Toggle filtering of Roman numerals (I, V, X, L, C, D, M) | | /sml <number> | Set minimum word length from result | | /refs, /ui | Refresh/Show UI header | | /q, /quit, /exit | Quit the program | | /version, /v | Show version |


🧠 How It Works

The CLI performs the following steps:

  • Pre-sorts all words (case-insensitive)
  • Finds the lower-bound match using binary search
  • Collects all sequential matching prefixes
  • Renders the output in table mode or plain mode
  • Fits columns automatically to terminal width
  • Truncates long words for clean alignment

📚 Dictionary Source

This CLI uses the words_dictionary.json file from dwyl/english-words.

The dictionary contains 479k English words, originally sourced from Infochimps and expanded by the dwyl community.

License: Unlicense (Public Domain) All credit for the dictionary data belongs to the original authors.


📜 License

MIT © Mochamad Iqbal Maulana

See LICENSE file for details.


👤 Author

Mochamad Iqbal Maulana

Made because I needed it and for fun. Maybe you need it too.

A simple & fast CLI to dominate any word-based challenge.


🙏 Acknowledgements


🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.


⭐ Show Your Support

Give a ⭐️ if this project helped you!