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

typing-genius-sdk

v1.2.0

Published

Open-source typing test content library - quotes, words in multiple languages for typing practice

Readme

Typing Genius Content 📝

npm version License: MIT

The standard, open-source typing content library for building typing tests, educational apps, and games. Provides curated quotes and words in multiple languages.

🌍 Global Support

We support a growing list of languages including English, Kyrgyz, Russian, Kazakh, and Uzbek. We welcome contributions for any language!

📦 Installation

# npm
npm install typing-genius-sdk

# yarn
yarn add typing-genius-sdk

# pnpm
pnpm add typing-genius-sdk

🚀 Usage

Everything is written in TypeScript and fully typed.

Basic Import

// Import the SDK core and a language pack
import { 
  getRandomQuote, 
  getWords, 
  getWordsByLength 
} from 'typing-genius-sdk';

import { English } from 'typing-genius-sdk/en';

1. Working with Quotes

Get a random quote:

const quote = getRandomQuote(English);
console.log(quote.text);   // "To be or not to be..."
console.log(quote.author); // "William Shakespeare"

Get multiple random quotes (with filters):

const quotes = getRandomQuotes(English, {
  count: 5,
  minLength: 50,
  maxLength: 100
});

Filter quotes by author:

import { getFilteredQuotes } from 'typing-genius-sdk';

const shakespeareQuotes = getFilteredQuotes(English, {
  author: 'Shakespeare'
});

2. Working with Words

By Difficulty: available difficulties: 'easy' | 'medium' | 'hard'

const easyWords = getWords(English, 'easy');
const hardWords = getWords(English, 'hard');

By Length:

// Get all 5-letter words
const fiveLetterWords = getWordsByLength(English, 5);

Random Words (Smart Shuffle):

import { getRandomWords } from 'typing-genius-sdk';

const words = getRandomWords(English, 'medium', {
  count: 20,
  exclude: ['badword'] // Optional exclusions
});

3. Statistics

Get insights into the available content for a language.

import { getContentStats } from 'typing-genius-sdk';

const stats = getContentStats(English);
console.log(stats);
/*
{
  quotes: 5021,
  words: {
    easy: 2672,
    medium: 8691,
    hard: 147026,
    total: 158389
  },
  byLength: [
    { length: 3, count: 576 },
    { length: 4, count: 2096 },
    ...
  ]
}
*/

4. Dynamic Import (Recommended for Web)

To keep bundle sizes low, import languages dynamically:

// Load language content on demand
async function loadContent(langCode: string) {
  // e.g. typing-genius-sdk/en, typing-genius-sdk/fr
  const module = await import(`typing-genius-sdk/${langCode}`);
  return module.default || module[Object.keys(module)[0]];
}

� Types

The SDK exports all necessary TS interfaces.

import type { Quote } from 'typing-genius-sdk';

interface Quote {
  text: string;
  author: string;
  source?: string;
  length: number;
}

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines on adding new languages or fixing content.

📜 License

MIT License - see LICENSE for details.