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

@cnr-mtsn/shopify

v3.0.1

Published

Shopify developer CLI suite — interactive Ink launcher for theme dev setup, Node/Express app scaffolding, and Admin GraphQL queries

Readme

@cnr-mtsn/shopify

Shopify developer CLI suite with an interactive Ink launcher. One bin, three tools: theme dev setup, Node/Express app scaffolding, and ad-hoc Admin GraphQL queries.

Install

npm i -g @cnr-mtsn/shopify
# or run without installing
npx @cnr-mtsn/shopify

Requires Node 22+. The graphql tool additionally requires the Shopify CLI (npm i -g @shopify/cli).

Usage

shopify-tools                  # open the interactive launcher
shopify-tools init             # jump straight to a tool
shopify-tools create-node-app
shopify-tools graphql
shopify-tools --help

Running bare opens a menu — ↑/↓ to navigate, ⏎ to run, q to quit:

╭──────────────────────────────────────────────────╮
│  @cnr-mtsn/shopify                               │
│                                                  │
│  ❯ init              Theme dev setup             │
│    create-node-app   Node/Express app scaffold   │
│    graphql           Admin GraphQL runner        │
│                                                  │
│  ↑/↓ navigate · ⏎ run · q quit                   │
╰──────────────────────────────────────────────────╯

Tools

init — theme dev setup

Run from the root of a Shopify theme (all 7 standard directories must exist). Prompts for a store, then writes a package.json with a dev script (shopify theme dev --store=<store> --host=localhost --port=3000), a .gitignore, and a .shopifyignore, and offers to start the dev server.

cd my-theme
shopify-tools init

create-node-app — Node/Express scaffold

Scaffolds a Shopify Node/Express app into the current directory — Admin GraphQL client (Client Credentials Grant), pino logging, webhook HMAC verification, Bearer auth, and a working /health route. Refuses to overwrite existing files.

mkdir my-app && cd my-app
shopify-tools create-node-app
npm install
npm run dev   # GET /health

graphql — Admin GraphQL runner

Run ad-hoc Admin GraphQL against any store you can log into, using the Shopify CLI's user-scoped auth (shopify store auth / store execute) — no app, client id, or access token needed. Prompts for the store and scopes (leave scopes empty to reuse a cached auth), then runs ./query.graphql or ./mutation.graphql from the current directory, or opens GraphiQL.

cd any-project        # with a query.graphql / mutation.graphql if running files
shopify-tools graphql

The browser auth screen opens on first use per store; the token is cached by the Shopify CLI and acts as you, limited by your staff/collaborator permissions.

Development

npm install
npm test          # node --test over src/lib
npm run build     # esbuild → dist/cli.js
node dist/cli.js  # run the built CLI

Pure logic lives in src/lib/ (tested); Ink screens live in src/ and src/tools/. prepublishOnly rebuilds dist/ automatically.