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

@starkscan/cli

v0.3.0

Published

Command-line launcher for Starkscan API, export, and agent workflows.

Downloads

1,145

Readme

@starkscan/cli

Command-line Starkscan client for status checks, explorer reads, local exports, and agent setup.

Release target: 0.3.0. This release carries the address-activity truth contract and its typed nullable output through the native CLI. Use the untagged install only after the live latest verifier passes; pin 0.3.0 for reproducible installs after that promotion.

Install

npm install -g @starkscan/cli
starkscan doctor

One-off agent setup without a global install:

npx -y @starkscan/cli init --agent --output-format json

Exact pin for unattended services:

npx -y @starkscan/[email protected] init --agent --output-format json

Prerelease tags such as @beta are maintainer-directed test channels only. Normal users and agents should use the default package or the exact 0.3.0 pin above.

First commands

export STARKSCAN_API_KEY="<store this in your shell or agent secret store>"
export STARKSCAN_CHAIN="SN_MAIN"
# Optional: only set this for preview or self-hosted hosts.
# export STARKSCAN_BASE_URL="https://preview.example.com/api"

starkscan status
starkscan block 8279910
starkscan tx 0x1234abcd
starkscan search 0x1234abcd
starkscan wallet-asset-discovery 0xWALLET --limit 25
starkscan wallet-state 0xWALLET --mode require_complete --limit 25

The CLI defaults to https://api.starkscan.co, sends X-Starkscan-Api-Key, and uses the same REST API contract as the SDK. MCP uses a separate transport: POST https://api.starkscan.co/mcp on the API domain, or POST {appBaseUrl}/api/mcp on app-origin deployments.

Why use it

  • No Rust toolchain or private repository access required.
  • Prebuilt native starkscan binaries are bundled in the npm package.
  • Bundled or downloaded native archives are verified against manifest checksums before execution.
  • --output-format json keeps stdout parseable for agents and CI.
  • Stable exit classes make automation predictable: success, usage, auth, rate-limit, timeout, and not-found errors are distinct.
  • MCP helpers print ready-to-paste Codex, Claude Code, Cursor, Claude Desktop, and Cline configs with environment placeholders, not secret values.

Agent setup

npx -y @starkscan/[email protected] init --agent --output-format json
npx -y @starkscan/[email protected] mcp print-config --transport remote
npx -y @starkscan/[email protected] mcp start --transport remote

print-config emits machine-readable snippets. Keep STARKSCAN_API_KEY in the host shell, CI secret store, or MCP client secret store.

Launcher inspection

Agents can inspect the launcher decision without executing the native binary:

npx -y @starkscan/[email protected] --launcher-json

The JSON includes the package version, resolved binary path, release tag, source (bundled, download, bin-path, or unknown for legacy caches), cache-hit status, and verification status.

Trust and safety

Socket is an external package-risk signal, not a Starkscan security certificate. The public trust source is Starkscan docs because the canonical engineering repository is private. Package promotion also requires checked release scripts, native artifact checksum verification, npm Trusted Publishing/OIDC for CI publishes, and live smoke proof against the hosted API.

The CLI forwards public API keys only to Starkscan HTTPS hosts or localhost/loopback fixtures. When intentionally testing a private API host, pass --allow-untrusted-base-url explicitly so keys are not replayed to an unexpected endpoint by default.

Release binding

The package resolves bundled artifacts under artifacts/v<package-version> when published with native binaries included. Maintainer overrides such as STARKSCAN_CLI_RELEASE_TAG, STARKSCAN_CLI_RELEASE_BASE_URL, STARKSCAN_CLI_BUNDLED_ARTIFACT_DIR, and STARKSCAN_CLI_BIN_PATH exist for tests and emergency rollback; public clients should not need them.