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

@bitsagecli/cli

v0.1.0

Published

BitSage Network CLI - One-command deployment for workers, validators, and stakers

Readme

@bitsage/cli

Official CLI for the BitSage Network - One-command deployment for workers, validators, and stakers.

Installation

npm install -g @bitsage/cli

Or with yarn:

yarn global add @bitsage/cli

Quick Start

1. Initialize Your Node

# Interactive setup wizard
bitsage init

# Or specify mode directly
bitsage init worker      # GPU worker setup
bitsage init validator   # Validator setup
bitsage init staker      # Staker setup

2. Get Testnet Tokens

bitsage faucet claim

3. Stake Tokens

bitsage stake deposit 1000

4. Start Your Worker

bitsage worker start

Commands

Initialization

bitsage init [mode]           # Setup wizard
  --network <network>         # mainnet, sepolia, local (default: sepolia)
  --coordinator <url>         # Coordinator URL
  --force                     # Overwrite existing config

Wallet Management

bitsage wallet create         # Create new wallet
bitsage wallet import         # Import existing wallet
bitsage wallet balance        # Check balance
bitsage wallet export         # Export wallet info
bitsage wallet list           # List keystores

Faucet (Testnet)

bitsage faucet claim          # Claim testnet tokens
bitsage faucet status         # Check cooldown

Staking

bitsage stake deposit <amt>   # Stake SAGE tokens
bitsage stake withdraw <amt>  # Unstake tokens
bitsage stake status          # View stake info
bitsage claim                 # Claim rewards

Worker Operations

bitsage worker register       # Register as worker
bitsage worker start          # Start worker node
  --foreground                # Run in foreground
  --update                    # Update binary first
bitsage worker stop           # Stop worker
bitsage worker status         # Check status
bitsage worker logs           # View logs
  -f, --follow                # Follow log output
  -n, --lines <n>             # Number of lines

Monitoring

bitsage status                # Overall status
bitsage health                # Health check
bitsage earnings              # View earnings
bitsage jobs                  # List recent jobs
  --status <status>           # Filter by status
  --limit <n>                 # Number of jobs

Configuration

Configuration is stored in ~/.bitsage/:

~/.bitsage/
├── config.json           # Main configuration
├── keystores/            # Encrypted wallet files
├── bin/                  # Downloaded binaries
├── worker.pid            # Worker process ID
└── worker.log            # Worker logs

Environment Variables

  • RUST_LOG - Log level (trace, debug, info, warn, error)
  • DEBUG - Enable CLI debug output

User Flows

GPU Worker Flow

# Install and setup
npm install -g @bitsage/cli
bitsage init worker

# Get tokens and stake
bitsage faucet claim
bitsage stake deposit 1000

# Register and start
bitsage worker register
bitsage worker start

# Monitor
bitsage status
bitsage earnings

Staker Flow

# Install and setup
npm install -g @bitsage/cli
bitsage init staker

# Import wallet with SAGE
bitsage wallet import

# Stake tokens
bitsage stake deposit 5000

# Monitor rewards
bitsage stake status
bitsage claim

Development

# Clone the repository
git clone https://github.com/Bitsage-Network/bitsage-network
cd bitsage-network/sdk/cli

# Install dependencies
npm install

# Build
npm run build

# Link for local testing
npm link

# Test
bitsage --help

Requirements

  • Node.js 18.0.0 or higher
  • npm or yarn

License

MIT