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

terminal-invaders

v1.0.3

Published

A retro-style Space Invaders game for the terminal using Braille graphics.

Readme

Terminal Invaders

Installation

Install from package

npm i terminal-invaders
npx terminal-invaders

or

npm install -g terminal-invaders

Install from source (bash)

git clone "https://github.com/Dru-429/Terminal-invaders"
cd Terminal-invaders
npm install terminal-kit drawille-canvas figlet

Controls

| Key | Action | |---|---| | Left Arrow | Move ship left | | Right Arrow | Move ship right | | Spacebar | Shoot bullet | | R | Restart game after game over | | CTRL+C | Quit application |

Overview

Terminal Invaders is a retro-style shooter built 100% for the command line. It uses Braille-character rendering to achieve higher visual fidelity within a text console, delivering smooth pixel-like animation in a terminal window.

Aliens, bullets, and the player ship are drawn on layered drawille canvases and composited together with colorful terminal-kit output. This is a nostalgic Space Invaders clone with modern Node.js tooling for an immediate plug-and-play CLI experience.

Features

  • High-fidelity sprite designs: a custom X-Wing player ship and classic Space Invader monster variants rendered in Braille dots.
  • Multi-layered color rendering:
    • Green ship
    • Red aliens
    • Yellow bullets using terminal-kit for rich terminal colors.
  • Smooth 20 FPS gameplay loop with:
    • collision detection
    • bullet life management
    • score tracking
  • Responsive controls and strict challenge mode with a 3-bullet active limit for authentic arcade pacing.
  • Progressive alien wave system (2x5 start, 3x5, up to 5x5 rows)

Tech Stack

  • Node.js (runtime)
  • drawille-canvas (Braille-based canvas rendering)
  • terminal-kit (terminal control, color output, input handling)
  • figlet (ASCII art Headers and GAME OVER text)

Technical Highlights

  • Layering strategy avoids color bleed by rendering ship, aliens and bullets on separate layers before compositing.
  • Custom center alignment logic draws the figlet GAME OVER screen with floating overlay text.
  • 40ms frame loop supports smooth gameplay and responsive control.

Contribution Guide

Thank you for considering enhancement of TERMINAL INVADERS!

  1. Fork the repository.
  2. Create a feature branch: git checkout -b feature/your-feature.
  3. Install dependencies and run the game to verify behavior.
  4. Make your code changes and keep them focused (gameplay, UI, docs, bug fixes).
  5. Add or update tests/docs as needed.
  6. Commit with a clear message and push to your fork.
  7. Open a pull request with a summary and testing notes.

We appreciate clean code, minimal side effects, and user-friendly controls.

Running

node index.js

Tip: Use R to restart and keep chasing higher score multipliers as the alien grid grows.