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

magicpath-ai

v1.4.0

Published

Node CLI for MagicPath

Readme

MagicPath CLI

A component platform for AI agents. Search and add UI components from MagicPath directly into your projects — works with Claude Code, Cursor, and GitHub Copilot.

Quick Start

npm install -g magicpath-ai
magicpath-ai login
magicpath-ai setup-skills  # run in your project directory

After setup-skills, Claude Code, Cursor, and GitHub Copilot automatically pick up MagicPath skills — just mention MagicPath in conversation and your agent knows what to do.

Commands

Auth

login

Log in to your MagicPath account. Opens your browser for one-click authentication.

magicpath-ai login
magicpath-ai login --code <code>   # headless fallback

logout

magicpath-ai logout

whoami

Show the currently authenticated user.

magicpath-ai whoami

Discovery

search

Search component names across all your projects.

magicpath-ai search "button"
magicpath-ai search "nav" --limit 5

| Option | Description | |--------|-------------| | --limit <n> | Max results (default: 20) |

list-projects

List all projects for the current user.

magicpath-ai list-projects
magicpath-ai list-projects --limit 10 --offset 0

| Option | Description | |--------|-------------| | --limit <n> | Max results | | --offset <n> | Skip first N results (default: 0) |

list-components

List components in a project. Supports cursor-based pagination.

magicpath-ai list-components <projectId>
magicpath-ai list-components <projectId> --limit 20
magicpath-ai list-components <projectId> --after <lastId>

| Option | Description | |--------|-------------| | --limit <n> | Max results per page (default: 100) | | --after <id> | Fetch components after this ID | | --sort-by <field> | Sort by name or createdAt (default: name) | | --order <dir> | Sort direction: asc or desc (default: asc) |

view

Open a component preview in the browser.

magicpath-ai view <generatedName>

Components

inspect

View a component's source code, dependencies, and import info without installing anything. Read-only — no files are written, no package.json is required.

Works in any project type. For non-React projects (Swift, Python, etc.), use inspect to read MagicPath component source code as a reference for recreating the component in your target language.

magicpath-ai inspect <generatedName>
magicpath-ai inspect wispy-river-5234 -o json

| Option | Description | |--------|-------------| | -d, --debug | Enable debug logging |

add

Add a MagicPath component to your project. Fetches the component files, writes them to src/components/magicpath/, and installs any required npm dependencies.

Note: add is for React/TypeScript projects only — it writes .tsx files and installs npm packages. For non-JS projects, use inspect to read the source code and translate it into your target language.

magicpath-ai add <generatedName>
magicpath-ai add wispy-river-5234 --path src/components/ui
magicpath-ai add wispy-river-5234 --dry-run    # preview file list only

| Option | Description | |--------|-------------| | -p, --path <path> | Custom component path (default: src/components/magicpath) | | --dry-run | Preview file list without writing | | -y, --yes | Skip confirmation prompts | | --overwrite | Overwrite existing files | | -d, --debug | Enable debug logging |

AI Agent Setup

setup-skills

Set up MagicPath skills for AI agents. Creates rule/skill files for Claude Code, Cursor, and GitHub Copilot in your project.

magicpath-ai setup-skills

info

Show project and auth context. Useful for agent context injection.

magicpath-ai info

schema

Show JSON Schema for a command's input/output.

magicpath-ai schema add
magicpath-ai schema --all

clone

Download and unpack a full MagicPath project using a one-time access key.

magicpath-ai clone -k <accessKey>

| Option | Description | |--------|-------------| | -k, --key <accessKey> | Access key (required) | | -i, --ide <ide> | Open in IDE (cursor, antigravity, vscode, webstorm) | | --dir <directory> | Target directory (non-interactive) | | --name <projectName> | Project name (non-interactive) |

Global Options

| Option | Description | |--------|-------------| | -o json | Structured JSON output (also skips interactive prompts) |

The -d, --debug flag is available on add, clone, and integrate for verbose logging.

Environment Variables

| Variable | Description | |----------|-------------| | MAGICPATH_TOKEN | Auth token (bypasses login flow) |

AI Agent Integration

Running magicpath-ai setup-skills in your project creates skill files that teach AI agents how to use MagicPath:

  • Claude Code.claude/skills/magicpath/SKILL.md
  • Cursor.cursor/rules/magicpath.mdc
  • GitHub Copilot.github/instructions/magicpath.instructions.md

Once set up, agents automatically know how to search for components and add them to your project.

Requirements

  • Node.js >= 16.0.0
  • npm or yarn

Support

License

MIT - Jack Beoris


Made with love by the MagicPath team