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

tradescape-cli

v0.1.1

Published

CLI for Tradescape trading platform

Readme

Tradescape CLI

Command-line interface for the Tradescape trading platform.

Installation

cd tradescape-cli
bun install
bun run build
npm link  # or: bun link

Setup

  1. Log into Tradescape
  2. Get your JWT token (from browser devtools or Chrome extension)
  3. Configure the CLI:
ts config set-token <your-jwt-token>

Usage

Check Status

ts status

Setups

# List all setups
ts setups list

# List active setups
ts setups list --status active

# Get a specific setup
ts setups get 123

# Create a setup
ts setups create -p BTC/USDT -d long -e 42000 -t 45000 -s 40000

Alerts

# List all alerts
ts alerts list

# List pending alerts for a pair
ts alerts list --status pending --pair BTC/USDT

# Create an alert
ts alerts create -p BTC/USDT -t 50000 -d above

# Delete an alert
ts alerts delete <alert-id>

Trades

# List recent trades
ts trades list

# Sync trades from exchange
ts trades sync -e binance

# View open positions
ts trades positions

Daily Reports

# Today's summary
ts daily summary

# P&L for date range
ts daily pnl --from 2024-01-01 --to 2024-01-31

Configuration

# Show current config
ts config show

# Set API URL (for local dev)
ts config set-url http://localhost:3000

JSON Output

All list commands support --json flag for machine-readable output:

ts setups list --json | jq '.[] | .pair.symbol'

Development

# Watch mode
bun run dev

# Type check
bun run typecheck

Authentication

The CLI uses JWT tokens for authentication. Tokens are stored in ~/.tradescape/config.json.

To get a token:

  1. Log into the web app with Discord
  2. Open browser devtools → Application → Local Storage
  3. Copy the JWT value from the extension's stored auth

Or if using the Chrome extension, the token is exchanged automatically from your session cookie.