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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@solverhood/headless

v1.0.4

Published

The complete CLI toolkit for headless Shopify storefronts

Readme

@solverhood/headless

Solverhood Headless CLI toolkit for building headless Shopify storefronts with Next.js. Scaffold UI components and Shopify integration directly into your project.

Quick Start

# Create a new project
pnpm dlx @solverhood/headless init --name my-store

# Or initialize in existing Next.js project
pnpm dlx @solverhood/headless init

Commands

init

Initialize a new project or setup an existing one. Sets up both UI components and Shopify integration.

pnpm dlx @solverhood/headless init              # Setup existing project
pnpm dlx @solverhood/headless init --name store # Create new Next.js project

list

List all available components and templates.

pnpm dlx @solverhood/headless list

doctor

Check project health and diagnose issues.

pnpm dlx @solverhood/headless doctor

ui add

Add UI components to your project. Dependencies are resolved automatically.

pnpm dlx @solverhood/headless ui add button badge input
pnpm dlx @solverhood/headless ui add header      # Auto-resolves dependencies
pnpm dlx @solverhood/headless ui add --all       # Add all components

ui list

List available UI components.

pnpm dlx @solverhood/headless ui list

shopify add

Add Shopify templates to your project.

pnpm dlx @solverhood/headless shopify add query:product query:collection
pnpm dlx @solverhood/headless shopify add mutation:cart-create
pnpm dlx @solverhood/headless shopify add hook:use-cart
pnpm dlx @solverhood/headless shopify add utility:money

shopify list

List available Shopify templates.

pnpm dlx @solverhood/headless shopify list

What's Included

UI Components (68 total)

  • Primitives (31): Button, Input, Dialog, Drawer, Select, Tabs, Toast, Accordion, Badge, etc.
  • Commerce (37): Header, Footer, Hero, ProductCard, CartLineItem, VariantSelector, ProductGallery, etc.

Shopify Templates (47 total)

  • Queries: product, collection, collections, cart, customer, menu, search, article, page
  • Mutations: cart-create, cart-lines-add, cart-lines-update, cart-lines-remove, customer-create, etc.
  • Hooks: use-cart, use-customer, use-search
  • Utilities: money, variant, connection, pagination, image, validation, cart, gid, etc.
  • Fragments: product-card, product-details, collection, cart, customer, image, menu, etc.

Options

| Flag | Description | |------|-------------| | -y, --yes | Skip confirmation prompts | | -f, --force | Overwrite existing files | | -o, --overwrite | Overwrite existing files (ui add) | | -c, --cwd <path> | Working directory | | -n, --name <name> | Project name (init) | | --json | Output as JSON (list commands) | | -a, --all | Add all components (ui add) | | -d, --dry-run | Preview without writing (ui add) |

Config File

After initialization, a solverhood.json config file is created with paths and aliases for both UI components and Shopify templates.

License

MIT