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

merchify-cli

v0.2.2

Published

CLI tool for setting up Merchify UI components

Readme

merchify-cli

CLI tool for automatic setup and configuration of Merchify UI components.

Features

  • Automatic @source path detection - Detects your project structure and configures correct paths
  • Zod dependency management - Installs zod if not already present
  • Smart project detection - Works with both src/app and app folder structures
  • Package manager detection - Supports npm, pnpm, yarn, and bun
  • Configuration verification - Validates setup after completion

Usage

Quick Setup

Run this command in your Next.js project root:

npx merchify-cli init

This will:

  1. Detect your project structure (src/app/ vs app/)
  2. Find your globals.css file
  3. Install zod if missing
  4. Add/update @source paths in globals.css
  5. Verify the configuration

What It Configures

The CLI automatically adds the correct @source directives to your globals.css:

For src/app/globals.css:

@import "tailwindcss";

/* Auto-configured by merchify-cli */
@source "../../src/app/**/*.{js,ts,jsx,tsx,mdx}";
@source "../../node_modules/merchify-ui/**/*.{js,ts,jsx,tsx}";

For app/globals.css:

@import "tailwindcss";

/* Auto-configured by merchify-cli */
@source "../app/**/*.{js,ts,jsx,tsx,mdx}";
@source "../node_modules/merchify-ui/**/*.{js,ts,jsx,tsx}";

Example Output

🎨 Merchify UI Setup Wizard

Detected configuration:
  Project structure: src/app/
  globals.css location: src/app/globals.css
  Package manager: pnpm
  Zod installed: ✗

? Continue with automatic setup? › (Y/n)

📦 Installing zod...
✓ Zod installed

⚙️  Configuring Tailwind @source paths...
✓ globals.css updated

🔍 Verifying configuration...
  ✓ Tailwind configuration verified

✅ Setup complete!

Next steps:
  1. Restart your dev server
  2. Import components from merchify-ui

  Example:
  import { Shop, Product, ProductImage } from 'merchify-ui';

  See docs: https://merchify-site-staging.driuqzy.workers.dev/docs

Requirements

  • Node.js 18+ or 20+
  • Next.js 13+ or 14+ or 15+
  • Tailwind CSS v4

Manual Setup

If you prefer manual configuration, see: https://merchify-site-staging.driuqzy.workers.dev/llm-kit/latest/theme-setup.md

Troubleshooting

"Could not find globals.css"

The CLI looks for globals.css in these locations:

  • src/app/globals.css
  • app/globals.css
  • src/styles/globals.css
  • styles/globals.css

Create one at app/globals.css or src/app/globals.css before running the CLI.

"@source directives already exist"

The CLI will ask if you want to overwrite existing @source directives. Choose "Yes" to let the CLI configure the correct paths automatically.

License

MIT