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

parqet-cli

v1.0.2

Published

CLI for the Parqet portfolio tracker — fetch holdings, performance, and activities

Readme


Features

  • Fetch holdings, performance, and activities for any portfolio
  • Multiple output formats: table, json, markdown
  • CI-friendly: exit codes, env var overrides, non-interactive mode
  • Bundled Claude Code skill — lets AI agents query your portfolio directly

Installation

npm install -g parqet-cli

Authenticate once after install:

parqet auth login   # opens browser for OAuth

Commands

# Portfolios
parqet portfolio list
parqet portfolio show <id>
parqet portfolio show <id> --timeframe 1y

# Holdings
parqet portfolio holdings <id>

# Activities (transactions)
parqet portfolio activities <id>
parqet portfolio activities <id> --limit 50

# Auth
parqet auth login                # authorize via browser
parqet auth login --no-browser   # headless flow: print URL, paste redirect back
parqet auth status               # check token status
parqet auth logout               # remove stored credentials

Headless / remote servers

On machines without a browser (headless Linux, SSH-only boxes), use:

parqet auth login --no-browser

It prints an authorization URL, you open it on any device, and paste the redirect URL (copied from your browser's address bar — the localhost page does not need to load) back into the prompt.

Timeframes

1d 1w mtd 1m 3m 6m 1y ytd 3y 5y 10y max

Output formats

Every command accepts --output table|json|markdown (default: table):

parqet portfolio list --output json
parqet portfolio holdings <id> --output markdown >> holdings.md

In CI environments (CI=true), JSON is the default.

Scripting & agent use

Exit codes

| Code | Meaning | |------|---------| | 0 | Success | | 1 | Error | | 2 | Not authenticated — run parqet auth login |

Environment variables

| Variable | Description | |----------|-------------| | PARQET_TOKEN | Override stored access token (useful in CI) | | PARQET_QUIET=1 | Suppress info messages | | NO_COLOR=1 | Disable ANSI colors | | CI=true | Non-interactive mode, defaults to JSON output |

Tokens are stored at ~/.config/parqet-cli/tokens.json (mode 600). If a command exits with code 2, the token is missing or expired.

jq examples

# Current portfolio value
parqet portfolio show <id> --output json | jq '.performance.valuation.atIntervalEnd'

# YTD return in percent
parqet portfolio show <id> --output json | jq '.performance.unrealizedGains.inInterval.returnGross'

# Holdings sorted by current value
parqet portfolio holdings <id> --output json | jq '[.[] | {name: .asset.name, value: .position.currentValue}] | sort_by(-.value)'

Claude Code skill

A Claude Code skill is bundled and auto-installs to ~/.claude/skills/parqet/ on npm install -g. No extra setup needed. Use /parqet in any Claude Code session to let Claude query your portfolio directly.

Development

bun install
bun run generate    # regenerate types from OpenAPI spec
bun run typecheck
bun test
bun run build

License

MIT