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

storybook-addon-scratchpad

v0.1.2

Published

A Storybook addon for jotting quick notes and feedback on stories, with auto-save and markdown export.

Readme

storybook-addon-scratchpad

A lightweight Storybook addon for capturing component feedback during design reviews. Take notes on each story, then copy everything as markdown to paste into your workflow.

Scratchpad panel showing notes on a Button component

Why This Exists

When doing component design reviews—especially with AI coding agents—I needed a way to jot down feedback as I clicked through stories, then paste all my notes back into chat for fixes. Every existing solution required external services, accounts, or backend setup.

This addon is intentionally lo-fi: notes save to localStorage, export as markdown, and that's it. No hosting, no accounts, no complexity. Just a scratchpad that lives in your Storybook.

The workflow:

  1. Review components in Storybook, noting issues as you go
  2. Click "Copy All" to get markdown-formatted feedback
  3. Paste into your AI agent, issue tracker, or team chat
  4. Fixes get made, repeat

Features

  • Per-story notes - Each story gets its own scratchpad
  • Auto-save - Notes save automatically as you type (500ms debounce)
  • localStorage persistence - No backend required, notes persist in browser
  • Markdown export - Copy all notes formatted as markdown with one click
  • Storybook theming - Matches your Storybook theme (light/dark)

Installation

npm install storybook-addon-scratchpad

Usage

Add the addon to your .storybook/main.js (or .storybook/main.ts):

export default {
  addons: [
    // ... other addons
    'storybook-addon-scratchpad',
  ],
};

That's it! A "Scratchpad" panel will appear in your Storybook's addon panel.

How It Works

  1. Select any story in Storybook
  2. Open the "Scratchpad" panel in the addon panel area
  3. Type your notes - they auto-save as you type
  4. Navigate to other stories - each has its own notes
  5. Click "Copy All" to export all notes as markdown

Scratchpad addon in Storybook interface

Panel Actions

| Action | Description | |--------|-------------| | Clear | Remove notes for the current story | | Clear All | Remove all notes (with confirmation) | | Copy All | Copy all notes as markdown to clipboard |

Exported Markdown Format

When you click "Copy All", notes are formatted for easy pasting:

## Storybook Feedback

### components-button--primary
- hover state is missing
- focus ring not visible enough for a11y

### components-card--default
- add a subtle box-shadow variant
- padding feels tight on mobile

Compatibility

  • Storybook 8.x, 9.x, 10.x
  • React 18.x, 19.x
  • Works with all Storybook frameworks (React, Vue, Angular, Svelte, etc.)

Use Cases

  • AI agent workflows - Review components, collect feedback, paste to your coding agent for fixes
  • Design reviews - Capture feedback during design critiques without leaving Storybook
  • QA testing - Document issues as you find them, export for bug tracking
  • Async collaboration - Share component feedback via Slack, GitHub issues, or PRs

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Lint
npm run lint

# Type check
npm run typecheck

License

MIT