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

designgrab

v1.0.0

Published

Grab any website's design system. Capture pages, extract components, and generate a portable Tailwind component library.

Readme

Design Grab

Grab any website's design system. Capture pages, extract components, and generate a portable Tailwind CSS component library — ready for AI agents to use.

How It Works

  1. Capture — Use the Chrome extension to capture pages from any website. The extension extracts clean HTML with all CSS inlined and scripts stripped.

  2. Extract — The dashboard provides an AI prompt that analyzes captured pages and extracts every unique UI component into a components.html file using Tailwind CSS.

  3. Use — Run designgrab add <sitename> in your project. AI agents reference .designgrab/DESIGN.md to build pixel-perfect UIs using the extracted components.

Quick Start

# Start the server + dashboard
npx designgrab

# Or with bun
bunx designgrab

This opens the dashboard at http://localhost:3847. Install the Chrome extension (see below), capture some pages, then generate components.

Install the Chrome Extension

  1. Open chrome://extensions in Chrome
  2. Enable "Developer mode" (top right)
  3. Click "Load unpacked" and select the extension/ directory from this package
  4. Navigate to any website, click the extension icon, and capture

CLI Reference

Usage:  designgrab [command] [options]

Commands:
  start                  Start the dashboard server (default)
  stop                   Stop the running server
  list                   List captured sites (alias: ls)
  add <name>             Install design system from local captures
  add --public <name>    Install from public registry

Options:
  --port <number>        Server port (default: 3847)
  --no-open              Don't open browser on start
  --help, -h             Show help
  --version, -v          Show version
  --agent                Show full documentation for AI agents

List options:
  --local                Show local captures (default)
  --public               Show designs from public registry

Start the Server

# Default (port 3847, opens browser)
designgrab

# Custom port, no auto-open
designgrab start --port 4000 --no-open

# Stop a running server
designgrab stop

List Sites

# List locally captured sites
designgrab list

# List designs from the public registry
designgrab list --public

Add to Project

# Install from local captures
designgrab add stripe

# Install from public registry
designgrab add --public stripe

This creates a .designgrab/ directory in your project with:

| File | Description | |------|-------------| | components.html | Every UI component in Tailwind CSS | | design-system.html | Color palette, typography, spacing reference | | instructions.md | Rules for AI agents | | DESIGN.md | Entry point — reference this in your AI agent |

Using with AI Agents

After running designgrab add <name>, tell your AI agent to read .designgrab/DESIGN.md. The agent will:

  1. Use exact Tailwind classes from components.html
  2. Follow color, typography, and spacing tokens from the design system
  3. Never use generic Tailwind defaults — only extracted values
  4. Reproduce the original design exactly
# Example: Add to CLAUDE.md or system prompt
Read .designgrab/DESIGN.md for the design system reference.
Use ONLY the components and tokens from the .designgrab/ files.

Run designgrab --agent for complete documentation including API endpoints and architecture details.

Data Directory

All captures are stored in ~/.designgrab/:

~/.designgrab/
  stripe/
    capture-home.html           # Captured page
    capture-pricing.html        # Another captured page
    components.html             # Extracted components (AI-generated)
    design-system.html          # Visual design reference
    instructions.md             # Agent rules

API Endpoints

The local server exposes these endpoints:

| Method | Endpoint | Description | |--------|----------|-------------| | GET | / | Dashboard | | GET | /health | Health check | | POST | /capture | Receive capture from extension | | GET | /api/sites | List all sites | | GET | /api/sites/:name | Site detail | | DELETE | /api/sites/:name | Delete site | | GET | /api/sites/:name/components | components.html content | | GET | /api/sites/:name/instructions | instructions.md content | | GET | /api/sites/:name/agent-prompt | AI generation prompt | | GET | /api/sites/:name/preview/:file | Preview captured HTML | | DELETE | /api/sites/:name/pages/:file | Delete a capture |

Development

# Install dependencies
bun install

# Run dev server with hot reload
bun --hot server.ts

# Build for npm
bun run build

# Publish
npm publish

Requirements

  • Node.js 18+ (or Bun)
  • Chrome browser (for the capture extension)

License

MIT