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

@hawkeeman/wsli

v0.2.7

Published

Wealthsimple CLI: GraphQL + Trade REST (accounts, portfolio, buy/sell)

Readme

wsli

wsli is a Node 20+ CLI for Wealthsimple account, portfolio, and trading workflows. It supports read-only GraphQL and Trade REST calls for accounts, positions, portfolio, funding, plus live buy and sell.

Install

npm install -g wsli

Then confirm the CLI is on your PATH:

wsli --help

If your shell cannot find wsli, ensure npm's global bin directory is on your PATH:

npm prefix -g

Quick start

Set up a session and confirm the default session path:

wsli setup
wsli session-path

The default session file is ~/.config/wsli/session.json.

To remove local credentials without signing out of Wealthsimple in the browser:

wsli disconnect

Use --dry-run to preview which files would be deleted.

Safety

  • Live buy and sell commands require explicit flags and should be treated as real brokerage actions.
  • buy, sell, transfer, and trade-smoke require --confirm unless using --dry-run where supported.

Commands

Use wsli --help and wsli <command> --help for details.

| Area | Commands | |------|----------| | Session | setup, import-session, disconnect, config-path, session-path, ping, keepalive | | Market data | lookup, security | | Account | accounts, positions, position-for-symbol, portfolio | | Orders | buy (supports --order market|limit|stop_limit|stop_market, with --stop-price for stop orders), sell (supports --order market|limit|stop_limit|stop_market, with --stop-price for stop orders, --sell-all, --confirm required), transfer (internal account transfer with --from/--to selectors, --confirm required), trade-smoke | | Aliases | account-alias list, account-alias set, account-alias remove, account-alias-path | | Diagnostics | logs, history |

For buy --order limit, buy --order stop_limit, and buy --order stop_market, use whole shares with --shares. Stop-limit requires both --stop-price and --limit-price; stop-market requires only --stop-price.

For sell --order stop_limit and sell --order stop_market, use whole shares with --shares (or --sell-all). Stop-limit requires both --stop-price and --limit-price; stop-market requires only --stop-price.

Flags and environment

CLI flags:

  • --token-file
  • --access-token
  • --refresh-token

Environment variables:

  • WEALTHSIMPLE_ACCESS_TOKEN
  • WEALTHSIMPLE_REFRESH_TOKEN
  • WEALTHSIMPLE_OAUTH_JSON
  • WEALTHSIMPLE_OAUTH_CLIENT_ID
  • WSLI_NO_REFRESH=1 or true to disable OAuth refresh

accounts outputs readable blocks by default. Use positions, position-for-symbol, logs --json, and history --json when you need JSON output.

From source

git clone https://github.com/Hawkeeeman/wsli.git
cd wsli
npm install
npm run build

Run from the repo with either:

./wsli --help
npm run wsli -- --help

The root wsli launcher rebuilds from src/ when dist/ is missing or stale, then runs the CLI.

Develop

npm run dev -- --help
npm run check