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

@lazyclis/typing-trainer

v0.1.0

Published

Terminal typing trainer inspired by Typing.com and Monkeytype

Readme

Typing Trainer (CLI)

Terminal typing practice with a Typing.com + Monkeytype feel.

Features

  • Minimal terminal UI with live correctness highlighting
  • Modes: words, punctuation, dev
  • Session styles:
    • Timed test (--time, default 30 seconds)
    • Text completion (finish text before timer)
  • Stats: net WPM, gross WPM, accuracy, errors, elapsed/remaining time, progress
  • Built-in text sources + pluggable source interface
  • Result history in JSON by default (~/.typing-trainer/history.json)

Install / Run

Install globally from npm:

npm install -g @lazyclis/typing-trainer
typing-trainer

Run locally from source:

npm install
npm start

Or run as a CLI bin:

npm link
typing-trainer

Usage

typing-trainer \
  --mode words|punctuation|dev \
  --time 15|30|60|120|<seconds> \
  --source <sourceId> \
  --set <setId> \
  --strict \
  --session timed|completion \
  --seed <number>

Other commands:

typing-trainer --list-sources
typing-trainer --list-sets book-of-mormon
typing-trainer --list-sets quotes
typing-trainer --history
typing-trainer --help

Controls

  • Esc: pause menu (resume/restart/cycle mode/quit)
  • Tab: quick restart
  • Ctrl+R: restart
  • Ctrl+N: next text
  • F1 or ?: help overlay
  • Ctrl+C: quit

Config

Config file: ~/.typing-trainer/config.json

Example:

{
  "defaultMode": "words",
  "defaultSource": "quotes",
  "defaultSession": "timed",
  "defaultTimeSeconds": 30,
  "enabledSources": ["quotes", "wordlist", "js-snippets"],
  "seed": 123
}

Plugin directory: ~/.typing-trainer/plugins

History storage:

  • Default: ~/.typing-trainer/history.json
  • Optional SQLite: set TYPING_TRAINER_USE_SQLITE=1 to use ~/.typing-trainer/history.db

Text Source Plugin Contract

A plugin exports an object with:

  • id: string
  • name: string
  • supportedModes: ("words"|"punctuation"|"dev")[]
  • listSets?: () => Promise<Array<{id: string, name: string}>>
  • getText: (params) => Promise<{text: string, meta?: any}>
  • warmup?: () => Promise<void>

params includes: mode, setId, strict, rng.

Optional config keys: defaultMode, defaultSource, defaultSession, defaultTimeSeconds, seed, enabledSources.

Built-in source: book-of-mormon

  • Data file path: assets/data/book-of-mormon.json
  • Sets: all and one per book title

Example Plugin

See: src/plugins/example-local-txt-plugin.js

To use it as a user plugin:

  1. Copy it to ~/.typing-trainer/plugins/local-txt.mjs
  2. Add .txt files under assets/texts (or set TYPING_TRAINER_TEXT_DIR)
  3. Run typing-trainer --source local-txt

Project Structure

  • src/core: session/stats/normalization/rendering/history/config
  • src/sources: built-in text source library
  • src/plugins: plugin loading + example plugin
  • src/cli: CLI parsing and interactive runtime
  • tests: unit tests for stats, normalization, and loader

Testing

npm test