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

@divquan/t-typer

v1.0.0

Published

A terminal-based TypeRacer game with multiplayer support

Readme

TTyper - Terminal TypeRacer

Version License: GPL v3 Build Status

A terminal-based TypeRacer game built with React, OpenTUI, and Convex.

TTyper Screenshot

Features

Features

  • 🎮 Solo Practice Mode - Race against the clock with different text categories
  • 📝 Multiple Text Categories - Quotes, Code snippets, and Random words
  • 🎨 Configurable Themes - Tokyo Night (default), Dark, and Light themes
  • Real-time WPM Calculation - Live stats as you type
  • 🏆 Detailed Results - WPM, accuracy, consistency, and error tracking
  • 🔔 Sound Effects - Terminal bell for errors and completion
  • 🖥️ Responsive Design - Works in terminals as small as 80x24

Installation

Via NPM (Recommended)

# Install globally
npm install -g ttyper

# Or run without installing
npx ttyper

Via Source

# Clone the repository
git clone https://github.com/divquan/ttyper.git
cd ttyper

# Install dependencies
bun install

# Run the game
bun run dev

Gameplay

  1. Splash Screen - Watch the animated logo and progress bar
  2. Main Menu - Navigate with arrow keys, Enter to select
  3. Solo Practice - Configure your race:
    • Text category (Quotes, Code, Random Words)
    • Duration (15s, 30s, 60s, Unlimited)
    • Difficulty (Easy, Medium, Hard)
  4. Race - Type the displayed text as fast and accurately as possible
    • Green = Correct
    • Red = Error
    • Yellow = Current position
  5. Results - View your performance stats
    • Press R to race again
    • Press M for main menu

Controls

  • Navigation: Arrow keys (↑↓), Enter to select
  • Typing: Any printable characters, Backspace to delete
  • Quit Race: ESC
  • Exit App: ESC from menu, or Ctrl+C

Convex Setup (Multiplayer Phase 2)

To enable multiplayer features:

  1. Run Convex initialization:

    npx convex dev
  2. Follow the prompts to create a new project

  3. The schema will be automatically deployed

  4. Multiplayer features will be available in Phase 2

Project Structure

src/
├── components/
│   ├── screens/        # Screen components (Splash, Menu, Race, etc.)
│   ├── ui/            # Reusable UI components
│   └── shared/        # Shared components (ThemeProvider, etc.)
├── hooks/             # Custom React hooks
├── types/             # TypeScript type definitions
├── utils/             # Utility functions
convex/
├── schema.ts          # Convex database schema
└── README.md          # Convex setup instructions

Customization

Adding New Text Categories

Edit src/utils/textGenerators.ts:

export const textCategories: TextCategory[] = [
  // ... existing categories
  {
    id: 'poetry',
    name: 'Poetry',
    icon: '📜',
    description: 'Classic poetry excerpts',
    difficulty: 'medium',
    generator: generatePoetry
  }
]

Adding New Themes

Edit src/utils/themes.ts:

export const myTheme: GameTheme = {
  background: '#000000',
  foreground: '#ffffff',
  // ... other colors
}

export const themes = {
  // ... existing themes
  myTheme: myTheme
}

Roadmap

Phase 1 (Current) ✅

  • Solo practice mode
  • Multiple text categories
  • Configurable themes
  • WPM/accuracy tracking
  • Sound effects

Phase 2 ✅ (Implemented)

  • ✅ Multiplayer races via Convex
  • ✅ Real-time lobby system
  • ✅ Quick play matchmaking
  • User statistics persistence (Coming Soon)
  • Chat system (Coming Soon)
  • Spectator mode (Coming Soon)

Phase 3 (Future)

  • Achievement system
  • Custom text upload
  • API integration for quotes
  • Advanced animations
  • Sound pack options

Built With

  • OpenTUI - Terminal UI framework
  • React - UI library
  • Convex - Backend and real-time sync
  • Bun - JavaScript runtime

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to get started.

Code of Conduct

This project adheres to a Code of Conduct. By participating, you are expected to uphold this code.

Changelog

See CHANGELOG.md for a history of changes.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.