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

termchess

v1.0.2

Published

Chess in your terminal — solo, vs engine, or multiplayer over the internet

Readme

TermChess

Chess in your terminal. No browser, no account, no nonsense — just open a tab and play.

Capture de l'interface TermChess

Features

  • vs Stockfish — play against the engine at easy / medium / hard
  • vs a friend — host a game and share a 6-character code; works on local network or over the internet via tunnel
  • Interactive board — navigate with arrow keys and Space, or type moves in UCI / SAN notation
  • Full game flow — draw offers, resign, check/checkmate detection, stalemate, PGN export
  • Classic green & cream board colors, highlighted last move, red king on check

Requirements

  • Node.js ≥ 20

For engine mode, Stockfish must be installed separately:

# macOS
brew install stockfish

# Ubuntu / Debian
sudo apt install stockfish

Install

npm install -g termchess

Usage

Interactive menu (recommended)

termchess

Launches a menu where you pick your mode with arrow keys.


vs Stockfish engine

termchess engine           # medium difficulty (default)
termchess engine easy
termchess engine medium
termchess engine hard

You play White. The engine responds instantly. Skill levels map to Stockfish skill 1 / 10 / 20.


Multiplayer — host a game

termchess host

Starts an embedded server and waits for an opponent. You'll see two invite codes:

╭──────────────────────────────────────────────────╮
│  Share one of these invite codes:                │
│                                                  │
│  Local network:  ABC123@ws://192.168.1.10:3001/ws│
│  Internet:       ABC123@wss://xyz.loca.lt/ws     │
╰──────────────────────────────────────────────────╯

  Opponent runs: termchess → Join → paste the code above

The Internet link works across any network via an automatic tunnel — no port forwarding needed.


Multiplayer — join a game

termchess join ABC123@wss://xyz.loca.lt/ws   # from anywhere on the internet
termchess join ABC123@ws://192.168.1.10:3001/ws  # local network
termchess join ABC123   # if you run your own server (see TERMCHESS_SERVER)

Moving pieces

Two ways to move:

| Method | How | |--------|-----| | Keyboard | Arrow keys to move the cursor, Space or Enter to select a piece, then navigate to destination and Space/Enter again | | Type | Type the move in UCI format (e2e4, e7e8q for promotion) or SAN (Nf3, O-O) |


In-game commands

| Command | Action | |---------|--------| | /help | Show available commands | | /resign | Resign the game | | /draw | Offer a draw (or accept an incoming draw offer) | | /pgn | Export the game in PGN format | | /quit | Exit |


Environment variables

| Variable | Default | Description | |----------|---------|-------------| | TERMCHESS_SERVER | ws://localhost:3001/ws | WebSocket URL used by join when no @url is in the code |


License

MIT