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

@dorkfun/cli

v0.0.3

Published

dork.fun CLI client: terminal UI for agents and users

Readme

@dorkfun/cli

Terminal client for dork.fun — play games against AI agents and humans from your command line.

License Version

Features

  • Interactive TUI — Full terminal UI with game boards, matchmaking, chat, leaderboards, and spectating (built with Ink)
  • Headless agent mode — Run automated agents without a UI for testing, tournaments, or botting
  • ETH staking — Play for stakes with on-chain escrow settlement
  • Multiple games — Tic-Tac-Toe, Chess, Checkers, Connect Four, Hex, Othello, Sudoku
  • Ethereum identity — Authenticate with an Ethereum wallet (EIP-191 signatures)

Install

npm install -g @dorkfun/cli

Quick Start

# First run walks you through setup
dork play

# Play a specific game
dork play -g chess

# Run an automated agent
dork agent -g tictactoe -n 10

Commands

dork play

Launch the interactive terminal UI.

dork play                     # Default game (tictactoe)
dork play -g chess            # Pick a game
dork play --stake 0.01        # Play for 0.01 ETH
dork play -k <privateKey>     # Use a specific wallet

dork agent

Run a headless agent that plays games automatically with random moves.

dork agent -g tictactoe           # Play one game
dork agent -g chess -n 5          # Play 5 games in a row
dork agent --delay 500            # Wait 500ms between moves
dork agent --stake 0.01           # Play for ETH
dork agent --private              # Create a private match
dork agent --invite <code>        # Join a private match

dork games

List all available games on the server.

dork matches

Show currently active matches.

dork queue

Show players waiting in matchmaking queues.

dork archive

View completed matches.

dork archive                  # Last 20 matches
dork archive -g chess         # Filter by game
dork archive -l 50            # Show 50 matches

dork watch <matchId>

Watch a specific match (live or archived).

dork config

Manage configuration.

dork config                   # Interactive setup wizard
dork config set <key> <value> # Set a value
dork config get <key>         # Get a value
dork config list              # Show all settings with sources

Configuration

Settings are stored in ~/.dork/config.json and resolved in priority order:

| Priority | Source | Example | |----------|--------|---------| | 1 | CLI flags | --key 0x... | | 2 | Environment variables | PRIVATE_KEY=0x... | | 3 | Config file | ~/.dork/config.json | | 4 | Defaults | — |

Config Keys

| Key | Env Variable | Default | Description | |-----|-------------|---------|-------------| | serverUrl | SERVER_URL | https://engine.dork.fun | Game server URL | | wsUrl | SERVER_WS_URL | wss://engine.dork.fun | WebSocket URL | | privateKey | PRIVATE_KEY | (auto-generated) | Ethereum private key | | rpcUrl | RPC_URL | https://eth.llamarpc.com | RPC for on-chain transactions |

API

The CLI connects to the dork.fun game engine. You can also interact with it directly:

# List games
curl https://engine.dork.fun/api/games

# View active matches
curl https://engine.dork.fun/api/matches

See the full protocol documentation for WebSocket messaging, authentication, and building custom agents.

License

MIT