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

envio-hs

v0.2.1

Published

CLI for Envio's Hosted Service — manage and monitor blockchain indexers powered by HyperIndex

Readme

envio-hs

CLI for Envio's Hosted Service — deploy, manage, and monitor blockchain indexers powered by HyperIndex.

Install

npm install -g envio-hs

Or run directly with npx:

npx envio-hs deployment metrics hyperindex b3ead3a mjyoung114

Quick Start

# Authenticate with GitHub (opens browser)
envio-hs login

# List public indexers
envio-hs indexer list

# View deployment metrics (no auth required)
envio-hs deployment metrics hyperindex b3ead3a mjyoung114

Authentication

Browser Login (default)

envio-hs login

Opens your browser to sign in via envio.dev. No local server or OAuth credentials required. Session lasts 30 days.

Token Login (CI/CD)

# Via flag
envio-hs login --token ghp_YOUR_TOKEN

# Via environment variable
export ENVIO_GITHUB_TOKEN=ghp_YOUR_TOKEN
envio-hs login

Required token scopes: read:org, read:user, user:email.

Session Management

envio-hs token    # Check current session status
envio-hs logout   # Remove stored credentials

Commands

Indexer Commands

envio-hs indexer list

List all public indexers on the platform.

envio-hs indexer list
envio-hs indexer list --org myorg
envio-hs indexer list --limit 10
envio-hs indexer list -o json

| Flag | Description | |------|-------------| | --org | Filter by organisation ID | | --limit | Max number of results (default: 1000) | | -o, --output | Output format: json |

envio-hs indexer get <name> <organisation>

View details and deployments for a specific indexer.

envio-hs indexer get hyperindex mjyoung114
envio-hs indexer get hyperindex mjyoung114 -o json

envio-hs indexer add (requires auth)

Add a new indexer to the platform.

envio-hs indexer add --name my-indexer --repo my-repo
envio-hs indexer add --name my-indexer --repo my-repo --branch main --tier development
envio-hs indexer add --name my-indexer --repo my-repo --dry-run

| Flag | Description | Default | |------|-------------|---------| | -n, --name | Indexer name (required) | | | -r, --repo | GitHub repository (required) | | | -b, --branch | Git branch | envio | | -d, --root-dir | Root directory | ./ | | -c, --config-file | Config file path | config.yaml | | -t, --tier | Service tier | development | | -a, --access-type | Access type | public | | -e, --env-file | Path to .env file | | | --auto-deploy | Auto-deploy on push | true | | --dry-run | Preview without creating | | | -y, --yes | Skip confirmation | |

Deployment Commands

envio-hs deployment metrics <indexer> <commit> <organisation>

Real-time indexing metrics per chain. No auth required.

envio-hs deployment metrics hyperindex b3ead3a mjyoung114
envio-hs deployment metrics hyperindex b3ead3a mjyoung114 -o json
envio-hs deployment metrics hyperindex b3ead3a mjyoung114 --watch

Example output:

Deployment Metrics: mjyoung114/hyperindex (commit: b3ead3a)

CHAIN   PROGRESS   BLOCK HEIGHT   PROCESSED    EVENTS    HYPERSYNC   SYNCED AT
143     100.00%    62456629       62456630     577336    yes         2026-03-18 16:52
999     100.00%    30166822       30166822     1161921   yes         2026-03-18 16:52

Total chains: 2 | Total events: 1739257 | Status: fully synced

| Flag | Description | |------|-------------| | --watch | Auto-refresh every 10 seconds | | -o, --output | Output format: json |

envio-hs deployment status <indexer> <commit> <organisation>

Sync progress and completion percentage. No auth required.

envio-hs deployment status hyperindex b3ead3a mjyoung114
envio-hs deployment status hyperindex b3ead3a mjyoung114 --watch-till-synced
envio-hs deployment status hyperindex b3ead3a mjyoung114 -o json

envio-hs deployment info <indexer> <commit> <organisation>

Aggregator configuration (cache, DB exposure). No auth required.

envio-hs deployment info hyperindex b3ead3a mjyoung114
envio-hs deployment info hyperindex b3ead3a mjyoung114 -o json

envio-hs deployment promote <indexer> <commit> <organisation> (requires auth)

Promote a deployment to production.

envio-hs deployment promote myindexer abc1234 myorg

Repository Commands

envio-hs repos (requires auth)

List GitHub repositories linked to your organisation.

envio-hs repos
envio-hs repos -o json

JSON Output

All commands support -o json for machine-readable output with a consistent envelope:

{
  "ok": true,
  "data": [ ... ]
}

On error:

{
  "ok": false,
  "error": "error message"
}

Piping Examples

# Get event count with jq
envio-hs deployment metrics hyperindex b3ead3a mjyoung114 -o json \
  | jq '.data[].num_events_processed'

# List indexer names for an org
envio-hs indexer list --org enviodev -o json \
  | jq -r '.data[].indexer_id'

# Check if fully synced
envio-hs deployment metrics hyperindex b3ead3a mjyoung114 -o json \
  | jq '.data | all(.latest_processed_block >= .block_height)'

Global Flags

| Flag | Description | |------|-------------| | -q, --quiet | Suppress informational messages, output data only | | -o, --output | Output format: json (on supported commands) | | --config | Config file path (default: ~/.envio-hs.yaml) | | -h, --help | Help for any command | | -v, --version | Print version |

Exit Codes

| Code | Meaning | |------|---------| | 0 | Success (including empty results) | | 1 | User error (bad arguments, not logged in) | | 2 | API or server error |

Alternative Installation

Go

go install github.com/enviodev/hosted-service-cli@latest

From Source

git clone https://github.com/enviodev/hosted-service-cli.git
cd hosted-service-cli
go build -o envio-hs .

GitHub Releases

Download prebuilt binaries from GitHub Releases.

Links