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

gridlords

v1.0.7

Published

Gridlords — a brutal minimalist turn-based strategy war game for the terminal, featuring PvP and AI (Gemini) modes.

Readme

GRIDLORDS

The board is small. The war is infinite.


About the Game

Gridlords is a brutally minimalistic strategy game, forged for solitary warriors who seek total domination, one cell at a time.
A battle of minds, a conquest of territories, played purely through sharp strategic thinking — and now, also against a real AI.

Built in pure TypeScript, running on bare Node.js, with 0 external gameplay dependencies.
Made from scratch. Forged in war.


Features

  • 5x5 Battle Grid — Every move is life or death.
  • Player vs Player (PvP) — Classic duel between two human minds.
  • Player vs AI (PvE) — Challenge a real AI powered by Google Gemini.
  • Victory Conditions — Control 13 cells or eliminate your opponent.
  • Combat System — Dice rolls decide fierce battles, shields grant defensive boosts.
  • Special Cells — Power ⚡, Magic ✶, and Shield ⛨ — each changing your tactics.
  • Terminal UI (TUI) — Raw, underground, hacker aesthetic gameplay.
  • Error-proof Experience — Robust validations and graceful exits (even on Ctrl+C).
  • Code Quality — Fully modular, scalable, and professional-grade TypeScript structure.

Requirements

  • Node.js v18+ installed.
  • (Optional) To play against the AI, you must configure your Gemini API Key.

How to Play

▶️ The Quickest Way (Recommended)

Play directly using npx (no install required):

npx gridlords

Note: To enable AI mode (PvE), you must set your Gemini API key first:

export GEMINI_API_KEY=your-gemini-api-key-here

⚙️ Installing Globally (Optional)

If you prefer to have gridlords always available on your terminal:

npm install -g gridlords
gridlords

🛠️ Manual Dev Mode (for contributors)

Clone the repository and run:

npm install
npm run dev

Or build and run manually:

npm run build
npm start

Game Modes

  • Player vs Player (PvP): Classic 1v1 battle.
  • Player vs AI (PvE): Face the cunning strategies of a Gemini-powered AI.
    • The AI analyzes the board state, your positions, special cells, and chooses optimal moves.
    • If the AI fails to respond properly, it smartly falls back to a valid random move.

Core Rules

  • Goal: Control 13 cells to win.
  • Each Turn, choose one action:
    • Conquer — Expand into an empty adjacent cell.
    • Fortify — Place a ⛨ on one of your controlled cells for defense.
    • Attack — Battle for an enemy cell adjacent to your territory.
  • Combat:
    • Roll a 6-sided die (1d6) for attack and defense.
    • If the cell has a ⛨, the defender gains +1 to defense roll.
    • Higher roll wins the fight.
  • Special Cells:
    • ⚡ Power Source — (future expansion).
    • ✶ Magic Well — (future expansion).
    • ⛨ Shield — Grants immediate defensive bonus.

Screenshots

(Coming soon: retro cyberpunk terminal art)


Philosophy

Gridlords is not a casual game. It's a ritual.
It's you, your mind, and the cold battlefield.
No graphics. No lootboxes.
Just strategy, cunning, and survival.

Built for true Lords of the Grid —
those who command not by chance, but by pure mental dominance.


Credits

Created by:

  • Byomess (Human Player and Game Designer)
  • ChatGPT (Code Copilot and Silent Soldier)

Special thanks to:

  • Google Gemini AI — for enabling the PvE mode.

License

Open Source.
Use it, modify it, dominate it — but always respect the spirit of the Lords of the Grid.


LONG LIVE THE GRIDLORDS.

DOMINATE OR BE DOMINATED.