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

@tronscanteam/cli

v1.0.4

Published

TronScan API CLI tool - 80+ commands for TRON blockchain data

Readme

TronScan CLI

中文文档

A CLI tool built on TronScan API, providing 80+ subcommands covering tokens, search, blocks, accounts, governance, transactions, statistics, contracts, security, deep analysis, stablecoins, and more.

Two ways to use: ts in the terminal (after global install) and natural language in AI IDEs (Claude Code, Cursor, VS Code Copilot, etc.).

Install

1. Install from npm

npm install -g @tronscanteam/cli

This registers the global command ts for use in any directory. Run ts setup to configure your API Key, and ts help to see all commands.

API Key:

Get your API Key: https://docs.tronscan.org/zh/api/api-keys

ts setup YOUR_API_KEY    # replace with your actual API Key

2. Install from source (clone)

git clone https://github.com/sshnii/tronscan-cli.git
cd tronscan-cli
npm install
npm link
ts setup YOUR_API_KEY    # replace with your actual API Key

Usage

1. In the terminal

After installing ts globally, run commands directly:

ts help                         # list all subcommands
ts token usdt                   # token info
ts search usdt                  # search
ts block                        # latest block
ts tps                          # current TPS
ts account TXxx...              # account details
ts tx af949...                  # transaction by hash
ts transfer-trc20 TXxx...       # TRC20 transfers
ts security-account TXxx...     # account risk check

2. In AI IDEs

To use with AI IDEs, we recommend installing from source (clone). Cloning downloads the full set of rule files (CLAUDE.md, .cursorrules, .github/copilot-instructions.md), which improve AI response accuracy. Run ts setup on first use to quickly configure your API Key.

Built-in rule files:

| AI IDE | Rule File | |--------|-----------| | Claude Code | CLAUDE.md | | Cursor | .cursorrules | | VS Code Copilot | .github/copilot-instructions.md |

Example using Claude Code:

You: Look up USDT token info
AI:  Runs ts token usdt and summarizes key fields (price, supply, holders, etc.)

You: Show account details for TXxx...
AI:  Runs ts account TXxx... and interprets balance, resources, and related fields

You: What's the TRON network overview?
AI:  Runs ts overview and summarizes the bundled network stats

You: What's the latest block?
AI:  Runs ts block and summarizes the latest block (or height and key fields)

You: What's the current TPS?
AI:  Runs ts tps and returns the result

No need to memorize commands or API paths — the AI matches the best endpoint from 80+ APIs in api-reference.md.

Dependencies

Command Categories

| Category | Count | Description | |----------|-------|-------------| | Token | 7 | Token details, holders, price, list, distribution | | Search | 2 | Search, trending tokens | | Overview | 3 | TPS, TRON network overview, nodes | | Block | 1 | Latest or specific block | | Account | 11 | Balance, holdings, resources, approvals, votes, analysis | | Super Representative | 4 | SR list, votes, chain parameters, proposals | | Transaction | 10 | Transaction details, transfers (TRX/TRC20/TRC721/TRC1155) | | Statistics | 17 | TRX supply, transaction trends, active accounts, energy, DeFi TVL | | Contract | 9 | Contract details, callers, energy consumption, daily analysis | | Security | 6 | Account/token/URL/transaction risk detection, authorization check | | Deep Analysis | 4 | Related accounts, fund flow, large transactions | | Stablecoin | 11 | Holder distribution, top holders, mint/burn, liquidity pools |

API Reference

See api-reference.md for the complete API endpoint list.

License

MIT