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

retroterm

v0.3.0

Published

Terminal-based retro game launcher with ROM browser and box art

Downloads

28

Readme

retroterm

NPM License: MIT

Terminal-based retro game launcher. A blessed TUI frontend for retroemu.

  • ROM browser — Scans your ROMs directory and organizes by system
  • Recent games — Quick access to recently played games
  • Keyboard navigation — vim-style controls
  • Preferences — Configurable ROMs and saves directories
retroterm

Installation

npm install -g retroterm

This will also install retroemu as a dependency.

Usage

Just run retroterm to launch the browser:

retroterm

On first run, press S to configure your ROMs directory.

Keyboard Controls

| Key | Action | |-----|--------| | Enter | Launch selected game | | / or j / k | Navigate list | | / | Switch system | | A | Show all ROMs (current system) | | R | Show recent games | | S | Settings | | F5 | Refresh ROM list | | Q | Quit |

Gamepad Controls

| Button | Action | |--------|--------| | D-pad / Left Stick | Navigate | | A (south) | Launch game | | B (east) | Back to system view | | X (west) | Recent games | | Y (north) | Settings | | LB / RB | Page up/down | | Start | Launch game |

Configuration

Settings are stored in ~/.config/retroterm/config.json:

{
  "romsDir": "/home/user/roms",
  "savesDir": "/home/user/.config/retroterm/saves",
  "recentGames": [],
  "maxRecent": 10,
  "symbols": "block",
  "colors": "256",
  "fgOnly": true,
  "dither": false,
  "contrast": 5
}

Graphics Settings

Press Y (gamepad) or S (keyboard) to open settings. Graphics are controlled by 3 independent options:

Symbols — Character set for rendering:

  • block — Full block characters (default)
  • half — Vertical half blocks
  • ascii — ASCII printable characters
  • solid — Space + background color only
  • stipple — Shading characters (░▒▓)
  • quad — 2x2 quadrant blocks
  • sextant — 2x3 sextant blocks (highest resolution)
  • octant — 2x4 octant blocks
  • braille — Braille dot patterns (great for B&W)

Colors — Color depth:

  • true — True color (16M colors)
  • 256 — 256 indexed colors (default)
  • 16 — 16 ANSI colors
  • 2 — Black & white

Checkboxes:

  • FG Only — Foreground color only, black background (default: on)
  • Dither — Floyd-Steinberg dithering (default: off)

Contrast — Slider from 1-10 (5 = normal)

Supported Systems

retroterm supports all systems that retroemu supports:

  • Nintendo — NES, SNES, Game Boy, Game Boy Color, Game Boy Advance
  • Sega — Genesis, Master System, Game Gear, SG-1000
  • Atari — 2600, 5200, 7800, 800/XL/XE, Lynx
  • NEC — TurboGrafx-16 / PC Engine
  • SNK — Neo Geo Pocket, Neo Geo Pocket Color
  • Bandai — WonderSwan, WonderSwan Color
  • Other — ColecoVision, Vectrex, ZX Spectrum, MSX

Streaming / Remote Play

retroterm can stream games over the network using a custom binary protocol optimized for terminal output.

Recommended Settings

| Terminal Size | Virtual Resolution | Bandwidth (30 FPS) | |---------------|-------------------|-------------------| | 60 rows | 160×120 | ~600 KB/s (4.8 Mbps) | | 120 rows | 320×240 (PS1 native) | ~2.3 MB/s (18 Mbps) |

Render Modes

Combine symbols + colors for different effects:

| Symbols | Colors | Bandwidth | Best For | |---------|--------|-----------|----------| | block | 256 | Lower | Default, good compatibility | | block | true | Medium | Modern terminals | | braille | 2 | Lowest | Monochrome games | | sextant | true | Higher | Maximum resolution | | ascii | 256 | Medium | Retro aesthetic |

Custom Binary Protocol

Instead of ANSI escape codes (~15 bytes/cell), use raw color indices:

[fg_index][bg_index][fg_index][bg_index]...  (2 bytes/cell)

Decode on client:

output += `\x1b[38;5;${data[i]};48;5;${data[i+1]}m▀`;

10x bandwidth reduction vs standard ANSI output.

Architecture Options

Option A: WebRTC P2P (current)

  • Best latency, works peer-to-peer
  • Requires signaling server for NAT traversal

Option B: Simple WebSocket relay

  • Easier to deploy (single server)
  • Works through all firewalls
  • node-datachannel for optional WebRTC upgrade

Dependencies

| Package | Purpose | |---------|---------| | retroemu | Terminal emulator engine with libretro WASM cores | | blessed | Terminal UI library | | chafa-wasm | Image-to-ANSI conversion (SIMD-optimized fork) |

License

MIT