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

design-protocol

v1.0.0

Published

Design Protocol - A complete design workflow system for Claude Code with state management, implementation generation, and goal-backward verification.

Readme

DP - Design Protocol

A complete design workflow system for Claude Code. Takes you from vague requirements to polished, reviewed implementations with state management, implementation generation, and goal-backward verification.

NPM Version Downloads GitHub Stars License

/dp:start → /dp:discovery → /dp:ux → /dp:execute → /dp:ui → /dp:execute → /dp:eng_review → /dp:verify
                               (wireframe)          (polished)

Installation

npx design-protocol

Options

npx design-protocol --global     # Install to ~/.claude/ (all projects)
npx design-protocol --local      # Install to ./.claude/ (current project)
npx design-protocol --uninstall  # Remove DP

Updating

npx design-protocol --check-update  # Check for updates
npx design-protocol --update        # Update to latest version
npx design-protocol@latest          # Or install latest directly

Quick Start

/dp:start              # Begin a new design workflow
/dp:progress           # Check where you are
/dp:execute            # Generate implementation
/dp:verify             # Verify completeness

Workflow

| # | Phase | Command | Output | |---|-------|---------|--------| | 1 | Discovery | /dp:discovery | DISCOVERY.md | | -- | PRD (optional) | /dp:prd | PRD.md | | -- | Journey Map (optional) | /dp:journey | JOURNEY-MAP.md | | -- | Roadmap (optional) | /dp:roadmap | ROADMAP.md | | 2 | UX | /dp:ux | UX-DECISIONS.md | | 2a | Execute | /dp:execute | Wireframe components | | -- | Color System (optional) | /dp:color | COLOR-SYSTEM.md | | 3 | UI | /dp:ui | UI-SPEC.md | | 3a | Execute | /dp:execute | Polished components | | 4 | Review | /dp:eng_review | REVIEW.md | | 5 | Verify | /dp:verify | Verification report |

Commands

| Command | Description | |---------|-------------| | /dp:start | Initialize a new design project | | /dp:progress | View workflow status with progress bar | | /dp:execute | Generate implementation (wireframe or polished) | | /dp:discuss | Capture decisions before a phase | | /dp:verify | Goal-backward verification | | /dp:skip | Skip current phase | | /dp:back | Return to previous phase | | /dp:journey | Run journey map as optional phase (cross-phase) | | /dp:roadmap | Run roadmap as optional phase (cross-phase) | | /dp:storytell | Generate audience-tuned presentation outline (cross-phase) |

Skills

| Skill | Purpose | |-------|---------| | /dp:discovery | Discovery agent — interrogates requirements with heavy challenge mode | | /dp:prd | PRD generation — interview-driven, stakeholder-ready or Claude Code-ready specs | | /dp:journey | Customer journey maps, service blueprints, omnichannel experience maps (NNGroup) | | /dp:roadmap | Theme-based UX roadmap with Now/Next/Future horizons (NNGroup) | | /dp:ux | UX principles — user flows, states, accessibility, cognitive foundations | | /dp:color | OKLCH palettes, shade ramps, contrast checking, color theory | | /dp:ui | Visual design — grids, tokens, aesthetic archetypes, B2B patterns, data viz | | /dp:eng_review | Code review — a11y, React patterns, spec alignment | | /dp:research | Research planning — interviews, usability tests, synthesis | | /dp:storytell | Audience-tuned presentation outlines for design work (cross-phase) |

Implementation Generation

DP generates working code at two checkpoints:

Wireframe Mode (After UX)

  • Validates flow before visual polish
  • Minimal styling (gray palette)
  • Full functionality
  • Output: Auto-detected component directory

Polished Mode (After UI)

  • Production-ready components
  • Full Tailwind + shadcn/ui
  • Design tokens applied
  • Output: Auto-detected component directory
UX Decisions → /dp:execute → Test Flow → UI Spec → /dp:execute → Final Component
                   ↓                                      ↓
              Wireframe                              Polished

State Management

DP creates a .design/ directory to track progress:

.design/
├── config.json              # Workflow settings
├── PROJECT.md               # Design vision & constraints
├── REQUIREMENTS.md          # Trackable requirements
├── STATE.md                 # Current state and context
└── phases/
    ├── DISCOVERY.md         # Phase 1 output
    ├── UX-DECISIONS.md      # Phase 2 output
    ├── UI-SPEC.md           # Phase 3 output
    └── REVIEW.md            # Phase 4 output

Verification

/dp:verify performs goal-backward verification:

  • Truths - What must be TRUE (problem defined, user understood, etc.)
  • Artifacts - What must EXIST (phase documents)
  • Wiring - What must CONNECT (requirements → UX → UI → Review)

Configuration

{
  "settings": {
    "depth": "standard",      // quick | standard | thorough
    "challenge_mode": "heavy" // light | heavy
  },
  "phases": {
    "ux": { "include_accessibility": true },
    "ui": { "include_b2b": true }
  }
}

Standalone vs Workflow

All skills detect .design/config.json:

  • Workflow mode - Full context, state updates, structured handoffs
  • Standalone mode - Independent operation, inline output

Troubleshooting

Skills not found after install

Restart Claude Code after installing. DP skills are loaded on startup.

# Verify files were installed
ls ~/.claude/skills/    # Should show: dp-discovery, dp-prd, dp-journey, dp-roadmap, dp-ux, dp-color, dp-ui, dp-eng_review, dp-research, dp-storytell
ls ~/.claude/commands/  # Should show: dp-*.md files

If files are missing, re-run the installer:

npx design-protocol@latest --global

.design/ already exists

If /dp:start finds an existing project, it will ask if you want to continue or start fresh. To manually archive:

mv .design .design-backup-$(date +%Y%m%d)

Permission errors during install

# Check ~/.claude/ ownership
ls -la ~/.claude/

# If owned by root, fix it
sudo chown -R $(whoami) ~/.claude/

/dp:execute can't find components directory

The execute command auto-detects your project structure by reading package.json. If detection fails, it will ask you where to place components. Make sure you run the command from your project root.

Dev server not detected

/dp:execute looks for a running dev server on common ports (3000, 5173, 8080). If yours uses a different port, the command will provide the preview URL for manual access. Just run your dev server separately.

shadcn/ui not detected (polished mode)

The command checks for components.json and @/components/dp:ui/. If you haven't installed shadcn yet:

npx shadcn@latest init

Or tell the command to generate without shadcn — it will use plain Tailwind instead.

Requirements

  • Claude Code CLI
  • Node.js 14+

License

MIT


Made with frustration at half-assed designs.