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

commit-invaders

v1.2.1

Published

Generate an animated Space Invaders SVG from your GitHub contribution graph

Downloads

949

Readme

Commit Invaders 👾

GitHub Workflow Status GitHub release GitHub marketplace type definitions code style

Generate an animated Space Invaders game from your GitHub contribution graph. Your contribution cells are plucked from the grid, travel to formation positions, hatch into invaders, and a ship fires lasers to destroy them wave by wave — all in a seamlessly looping CSS animation.

Features

  • Space Invaders gameplay from your actual contribution data
  • Pure CSS animation — no JavaScript in the SVG, GitHub README-safe
  • Light / Dark / Classic themes via color palette system
  • Interactive demo with animation scrubber and debug parameter tuning

Usage

GitHub Action

Add to your profile repository (.github/workflows/commit-invaders.yml):

name: Generate Commit Invaders

on:
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:

jobs:
  generate:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
      - uses: Goblinlordx/commit-invaders@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          github_user_name: ${{ github.repository_owner }}

Then add to your README.md:

![Commit Invaders](https://raw.githubusercontent.com/YOUR_USERNAME/YOUR_REPO/output/commit-invaders.svg)

npx (local)

GITHUB_TOKEN=ghp_... npx commit-invaders <username> [output.svg]

Options:

  • --no-scoreboard — disable high score board (faster animation)
  • --help — show usage

Interactive Demo

goblinlordx.github.io/commit-invaders — try it with any GitHub username, tune parameters, download SVG.

Action Inputs

| Input | Required | Default | Description | |-------|----------|---------|-------------| | github_token | Yes | — | GitHub token with read:user scope | | github_user_name | Yes | — | GitHub username | | output_branch | No | output | Branch to commit SVG to | | output_file | No | commit-invaders.svg | Output filename | | no_scoreboard | No | false | Disable high score board |

Action Outputs

| Output | Description | |--------|-------------| | svg_file | Path to the generated SVG | | svg_size | SVG file size in bytes | | total_commits | Total contributions in the graph | | animation_duration | Animation length in seconds |

Live Example

See it in action on Goblinlordx's GitHub profile — the animation updates daily via the GitHub Action.

How It Works

  1. Fetch — Pull contribution graph from GitHub GraphQL API
  2. Simulate — Deterministic physics engine with outcome-first solver (PRNG predetermines hit/miss, ballistics solver computes exact fire positions)
  3. Render — Map simulation events to CSS @keyframes percentages with SVG sprite symbols
  4. Output — Single self-contained SVG with inline styles, no external dependencies

The simulation uses time-based physics (dt = 1/fps), swept collision detection, target-locked firing, and formation path prediction for accurate laser targeting.

See How the High Score Board Works for details on the sliding-window scoring algorithm and SVG rendering.

Development

pnpm install
pnpm dev:demo     # interactive demo page
pnpm dev:sim      # canvas simulation viewer
pnpm test         # run tests
pnpm build        # bundle for GitHub Action

Acknowledgments

This project was heavily inspired by Platane/snk — the original snake contribution graph animation that started it all. Built with Kiloforge (skills only) for track-based development workflow.

License

MIT