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

create-my-design-system

v1.2.0

Published

Scaffold a production-ready design system monorepo with Turborepo, React, and Storybook

Readme

create-my-design-system

npm version npm downloads License: MIT

Scaffold a production-ready design system monorepo in seconds.

Quick Start

npx create-my-design-system my-design-system

This will create a directory called my-design-system with a complete design system setup including:

  • 🎨 Design Tokens - Style Dictionary powered token system with light/dark themes
  • 🧩 Component Library - 5 production-ready React components
  • 🖼️ Icon System - Automated SVG → React pipeline with 12 icons
  • 📖 Storybook - Interactive component documentation
  • 🌐 Next.js App - Example app with Server Components and theme switching
  • 🧪 E2E Tests - Playwright tests across 5 browsers + mobile
  • Turborepo - Monorepo with caching for fast builds

Usage

Interactive Mode

npx create-my-design-system

You'll be prompted for:

  • Project name
  • Description
  • Author
  • Package manager (pnpm, npm, or yarn)

With Project Name

npx create-my-design-system my-awesome-design-system

Options

npx create-my-design-system my-project [options]

Options:

  • --no-install - Skip package installation
  • --no-git - Skip git initialization

What Gets Created

my-design-system/
├── apps/
│   ├── docs/              # Storybook
│   ├── web/               # Next.js app
│   └── e2e/               # Playwright tests
├── packages/
│   ├── design-tokens/     # Style Dictionary
│   ├── ui/                # React components
│   ├── icons/             # SVG icons
│   ├── eslint-config/     # Shared ESLint
│   └── typescript-config/ # Shared TypeScript
└── turbo.json             # Turborepo config

After Installation

cd my-design-system

# If you used --no-install, install dependencies:
pnpm install   # or npm install / yarn install

# Start development
pnpm dev       # Starts Storybook + Next.js app

# Or run specific commands
pnpm build     # Build all packages and apps
pnpm test      # Run E2E tests
pnpm lint      # Lint all packages

Development URLs:

  • Storybook → http://localhost:6006
  • Next.js App → http://localhost:3000
  • Token Verification → http://localhost:3000/tokens-verify

Available Commands

pnpm dev                  # Start all apps in dev mode
pnpm build                # Build all apps and packages
pnpm storybook            # Start Storybook only
pnpm preview-storybook    # Preview Storybook build
pnpm test                 # Run Playwright E2E tests
pnpm lint                 # Lint all packages
pnpm clean                # Clean all build artifacts

Package-specific commands:

# Design tokens
pnpm --filter @your-project/design-tokens build

# UI components
pnpm --filter @your-project/ui dev

# Icons
pnpm --filter @your-project/icons build

Features

Design Tokens

  • Generates 124 Tailwind utilities from tokens
  • Light/dark theme support
  • Multi-platform output (CSS, Tailwind, TypeScript)

Components

  • Button (primary, outline variants)
  • Text (polymorphic with 5 variants)
  • Input (with icon support)
  • Card (container component)
  • Modal (accessible dialogs)

Icon System

  • Drop SVG → Get React component
  • Auto-generated TypeScript types
  • Customizable size and color props

Testing

  • Playwright E2E tests
  • Cross-browser (Chrome, Firefox, Safari)
  • Mobile device testing (Pixel 5, iPhone 12)

Requirements

  • Node.js 18 or higher
  • pnpm, npm, or yarn

Troubleshooting

Port already in use

If port 3000 or 6006 is already in use:

# Kill the process using the port (macOS/Linux)
lsof -ti:3000 | xargs kill -9
lsof -ti:6006 | xargs kill -9

# Windows
netstat -ano | findstr :3000
taskkill /PID <PID> /F

Module resolution errors

If you see Cannot find module '@your-project/...' errors:

# Clean install
rm -rf node_modules
pnpm install

# Or from root directory
pnpm install --force

Build failures

# Clean all build artifacts and rebuild
pnpm clean
pnpm build

Storybook not starting

# Clear Storybook cache
rm -rf apps/docs/.storybook-cache
pnpm storybook

Learn More

License

MIT

Support