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

pixeledge-cn

v0.1.3

Published

CLI to download utility files (utils, contexts, services) from the pixeledge source repo into your project — like shadcn/ui but for pixeledge utilities.

Readme

pixeledge-cn

A shadcn/ui-style CLI that lets you download individual utility files, React contexts, and service helpers from the pixeledge source repo directly into your own project — no extra package to maintain, just the files you need.


Quick start

# one-off, no install required
npx pixeledge-cn add utils/CancelablePromise

Or install globally:

npm install -g pixeledge-cn
pixeledge-cn add utils/BeeApi

Commands

init

Creates a pixeledge.config.json in your project root. This is optional but lets you configure the base output directory.

npx pixeledge-cn init

pixeledge.config.json (defaults):

{
  "baseDir": ".",
  "sourceRepo": {
    "owner": "sunergix",
    "name": "hsi",
    "branch": "develop"
  }
}

list

Lists every component available in the registry with a short description and its peer-dependency requirements.

npx pixeledge-cn list

add <component>

Downloads a component from the source repo and writes it to your project.

npx pixeledge-cn add utils/CancelablePromise
npx pixeledge-cn add utils/BeeApi
npx pixeledge-cn add utils/DeApi
npx pixeledge-cn add components/RedirectIfAuthenticated
npx pixeledge-cn add components/AuthRoutes

Options

| Flag | Description | |------|-------------| | -o, --output <dir> | Override the output directory (file name is preserved) | | -y, --yes | Skip confirmation prompts |

Examples

# Download to the default location (src/utils/BeeApi.js)
npx pixeledge-cn add utils/BeeApi

# Download to a custom directory
npx pixeledge-cn add utils/BeeApi --output lib/api

Available components

| Registry key | Description | Peer deps | |---|---|---| | utils/CancelablePromise | Wraps any promise to support cancellation. Useful for React unmount patterns. | — | | utils/BeeApi | Axios client with interceptors, response normalisation and cancelable request wrappers. | axios | | utils/DeApi | Variant of BeeApi targeting a different base URL. | axios | | components/RedirectIfAuthenticated | React Router guard that redirects authenticated users away from public pages. | react, react-router-dom | | components/AuthRoutes | Route guard that protects private routes with fallback to /login. | react, react-router-dom |


How it works

  1. The CLI looks up the requested key in its local registry (src/registry/index.js).
  2. It fetches the raw file from https://raw.githubusercontent.com/sunergix/hsi/develop/<sourcePath>.
  3. It writes the file to the correct location inside your project (respecting pixeledge.config.json if present).

Files are copied as-is — you own them once they're in your project and can edit them freely.


Development

git clone https://github.com/iamsatar/pixeledge-cn.git
cd pixeledge-cn
npm install
npm test

To add a new component to the registry, edit src/registry/index.js.