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.1.1

Published

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

Readme

retroterm

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.

Controls

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

Configuration

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

{
  "romsDir": "/home/user/roms",
  "savesDir": "/home/user/.config/retroterm/saves",
  "recentGames": [],
  "maxRecent": 10
}

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

| Mode | Quality | Bandwidth | Best For | |------|---------|-----------|----------| | half-block-256 | Chunky pixels | Lowest | Retro games (default) | | block-256 | Smooth shading | Medium | When detail matters | | ascii-256 | Textured | Medium | Aesthetic preference | | braille | Dot matrix | Tiny | Monochrome games |

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