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

@magnet-ai/cli

v0.1.5

Published

Magnet CLI — issues, pages, and search. Download the native binary from GitHub Releases.

Readme

Magnet CLI

A self-sufficient CLI for Magnet: list, get, and create issues and pages, and search. Single native binary — no Node.js or other runtime required.

Requirements

  • API key: Create an API key in your Magnet organization settings, then set it:

    export MAGNET_API_KEY="your-uuid-api-key"
  • Base URL (optional): Default is https://www.magnet.run. Override with:

    export MAGNET_API_URL="https://www.magnet.run"

Installation

Choose one of the following. No Node.js is required unless you use the npm installer.

1. GitHub Releases (recommended)

Download the binary for your platform from Releases. Extract and put magnet (or magnet.exe on Windows) in your PATH.

Example (Linux/macOS):

VERSION="v0.1.0"
PLATFORM="darwin-arm64"   # or linux-amd64, windows-amd64
curl -sSL "https://github.com/toolkit-ai/magnet-cli/releases/download/${VERSION}/magnet-cli-${PLATFORM}.tar.gz" | tar xz
sudo mv magnet /usr/local/bin/

Windows (PowerShell):

$VERSION = "v0.1.0"
Invoke-WebRequest -Uri "https://github.com/toolkit-ai/magnet-cli/releases/download/$VERSION/magnet-cli-windows-amd64.tar.gz" -OutFile magnet-cli.tar.gz
tar -xzf magnet-cli.tar.gz
# Move magnet.exe to a folder in PATH

2. npm (wrapper that downloads the binary)

If you have Node.js and npm:

npm install -g @magnet-ai/cli

Install finishes quickly; the first time you run magnet, it downloads the binary. You do not need Node to run the CLI afterward.

3. Homebrew (macOS/Linux)

(Coming soon. Add when the tap is set up.)

4. Build from source

Requires Bun.

git clone https://github.com/toolkit-ai/magnet-cli.git
cd magnet-cli
bun install
bun run build
./magnet --help

For development, testing, and release workflow, see CONTRIBUTING.md.

Commands

Issues

  • List: magnet issues list [--search q] [--limit n] [--cursor c]
    Pagination: use --limit and --cursor (from pagination.nextCursor) for the next page.

  • Get: magnet issues get <id> [--preview-only]
    Uses the markdown API; returns issue with docContent (full markdown). Use --preview-only for truncated markdownPreview.

  • Create: magnet issues create --description "..." [--title "..."] [--base-branch main]

  • Update: magnet issues update <id> --markdown "..." [--title "..."] [--status todo|in_progress|done|blocked] [--assignee-clerk-id id] [--skip-yjs-sync]

Pages

  • List: magnet pages list [--search q] [--limit n] [--cursor c]

  • Get: magnet pages get <id> [--preview-only]
    Uses the markdown API; returns page with docContent (full markdown). Use --preview-only for truncated markdownPreview.

  • Create: magnet pages create --title "..." [--markdown "..."]

  • Update: magnet pages update <id> --markdown "..." [--title "..."] [--skip-yjs-sync]

Search

  • Search: magnet search <query> [--types issue,page]

Output

All commands print JSON to stdout. Errors go to stderr and the process exits with a non-zero code.

Pagination (issues list / pages list): The response includes pagination: { total, hasMore, nextCursor }. To fetch the next page, set --cursor to pagination.nextCursor. You can omit --limit when using --cursor (default page size 50 is sent).

magnet issues list --limit 20                    # first page
magnet issues list --limit 20 --cursor "abc123"  # next page
magnet issues list --cursor "abc123"              # next page (default limit 50)

License

MIT — see LICENSE.