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 🙏

© 2025 – Pkg Stats / Ryan Hefner

stickman

v1.1.8

Published

STICKMAN - P2P Terminal Fighting Game. Play locally or globally with friends!

Readme

STICKMAN - P2P Terminal Fighting Game

Main Menu

Fight your friends in the terminal. No servers. No setup. Pure P2P magic!


Quick Start

# Install globally
npm install -g stickman

# Start fighting!
stickman

That's it! No configuration, no servers, no port forwarding. Just pure terminal combat.


Game Preview

Gameplay Demo

60 FPS real-time ASCII combat - Watch stick figures fight in your terminal!


Features

Features:

  • 60 FPS smooth ASCII animations
  • Real-time combat with hit stun & knockback
  • Power-up system for strategic plays
  • Healing mechanic with risk/reward
  • Clash mini-game when both attack
  • Colorful terminal graphics with ASCII art fighters

Game Modes

Local Mode (Same Computer)

Perfect for couch gaming! Two players, one keyboard.

1. Run: stickman
2. Select: LOCAL TEST MODE
3. Fight!

Controls:

  • Player 1 (RED): WASD + F/G/H/T + Space
  • Player 2 (BLUE): Arrows + J/K/L/M/Y

P2P Mode (Play With Friends Anywhere!)

Fight your friend anywhere in the world with zero setup:

How to Connect:

Step 1 - You (Host):

1. Run: stickman
2. Select: "Host Game"
3. You'll get an 8-character room code (e.g., "A5F2B91C")
4. Send this code to your friend (Discord, WhatsApp, etc.)
5. Wait for them to connect...

Step 2 - Your Friend (Join):

1. Run: stickman
2. Select: "Join Game"
3. Enter the 8-character code you received
4. Connection happens automatically!

Step 3 - Fight!

Once connected, the game starts immediately.
No lag, no servers - pure P2P connection!

How does it work? Hyperswarm uses DHT (like BitTorrent) to connect you directly to your friend. No servers, no IP addresses, just a simple code!

Combat System

Basic Controls

| Action | Player 1 (RED) | Player 2 (BLUE) | |--------|----------------|-----------------| | Move | WASD | Arrow Keys | | Punch | F | J | | Kick | G | K | | Block | Space | L |

Advanced Mechanics

| Move | Key (P1/P2) | Effect | |------|-------------|--------| | Power-Up | H / M | Costs 10 HP, charge 1sec, then 3sec window for 3x damage! | | Heal | T / Y | Channel 3sec for +25 HP (vulnerable & interruptible, 2 uses max) |

Combat Features

  • Hit Stun - Get hit? Brief stun prevents immediate counter (fighting game mechanics!)
  • Knockback - Attacks push opponents back strategically
  • Combos - Chain attacks within 20 frames for bonus damage
  • Clash System - Attack simultaneously? Button mash to win!
  • Resource Management - Only 2 heals per match. Use wisely!

How P2P Works

This game uses Hyperswarm - the same DHT technology that powers BitTorrent:

┌─────────┐                    ┌─────────┐
│ Player 1│◄──────────────────►│ Player 2│
│  (Host) │   Direct P2P!      │ (Client)│
└─────────┘                    └─────────┘
     │                              │
     └──────► DHT Bootstrap ◄───────┘
           (for peer discovery)

Features:

  • No Central Server - Players connect directly
  • NAT Traversal - Works through firewalls automatically
  • Global Discovery - Find opponents anywhere
  • Room Codes - Simple 8-char codes to share
  • Zero Config - No port forwarding needed!

Tech Stack

| Component | Technology | |-----------|------------| | P2P Networking | Hyperswarm (DHT) | | Terminal UI | Blessed | | Colors | Chalk | | Game Loop | 60 FPS | | Platform | Cross-platform (Node.js 14+) |

Why This is Awesome

  • No Servers - Never pay for hosting
  • Global Multiplayer - Play anyone, anywhere
  • Zero Latency - Direct P2P connection
  • Privacy - No data collected, no accounts
  • Terminal Native - Runs everywhere
  • Strategic - Timing & resource management matter!

License

MIT - Do whatever you want with it!