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

@rahulmrx/game-ready-dictionary

v1.0.8

Published

Open-source, pre-compiled Trie-based dictionary for web-based word games.

Readme

📚 Game-Ready Dictionary

License: MIT License: Unlicense

A high-performance, multi-tiered dictionary and Trie-based validation engine designed specifically for modern web-based word games. This repository provides pre-compiled assets across three complexity tiers, optimized for instant integration into high-performance game loops.


⚖️ Dual-License Architecture

  1. Codebase (MIT License): All source code and the Trie implementation are licensed under the MIT License.
  2. Dictionary Data (Public Domain / UNLICENSE): The compiled word lists and Trie JSON files are dedicated to the Public Domain.

🚀 Complexity Tiers

We provide three distinct tiers to balance vocabulary depth with asset size:

| Tier | Size | Description | Best For | | :--- | :--- | :--- | :--- | | Small | ~7,000 words | Intersection of 12Dicts and Top 10k Google English list. | Casual mobile games, ultra-fast loading. | | Medium | ~60,000 words | The full 12Dicts (5desk) base list, cleaned and filtered. | Standard crosswords, word search, roguelites. | | Large | ~182,000 words | The ENABLE1 word list + 12Dicts (superset). | Professional-grade validation, deep-strategy games. | | Dialects | US / UK | SCOWL (American/British) specialized word lists. | Games requiring dialect-specific spelling (color vs colour). |


📦 Output Formats (Medium Tier)

The Medium tier is exported in three formats to suit different development needs:

  • data/medium_array.json / data/large_array.json: A standard alphabetical array of all valid words.
  • data/medium_by_length.json / data/large_by_length.json: An object keyed by word length.
  • data/medium_trie.json / data/large_trie.json: A nested JSON Trie structure optimized for $O(m)$ lookups.

⚡ High-Performance Usage

The dictionary is provided as a pre-compiled Trie, allowing for $O(m)$ lookup time.

Quick Start (Trie)

import { TrieEngine } from 'game-ready-dictionary';
import trieData from 'game-ready-dictionary/data/medium_trie.json';

const trie = new TrieEngine(trieData);

if (trie.validate('apple')) {
  console.log('Valid word!');
}

Dialect Support (US vs UK)

You can specifically import American or British English to handle spelling variations (e.g., color vs colour):

import { TrieEngine } from 'game-ready-dictionary';
import usData from 'game-ready-dictionary/us';
import ukData from 'game-ready-dictionary/uk';

const usTrie = new TrieEngine(usData);
const ukTrie = new TrieEngine(ukData);

console.log(usTrie.validate('color')); // true
console.log(ukTrie.validate('color')); // false

🛠️ Data Pipeline

You can regenerate the dictionary assets or use your own word lists via our Python pipeline:

pip install requests better_profanity
python3 pipeline.py

The pipeline automatically:

  • Converts to lowercase.
  • Drops words with hyphens, apostrophes, or digits.
  • Removes offensive terms via better_profanity.
  • Strips non-dictionary brand names from our TRADEMARK_BLOCKLIST.

⭐ Support the Project

If this dictionary saved you development hours or helped you ship your game, please consider starring the repository.

🌟 Star on GitHub


Built with ❤️ for the game dev community.