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

@openpawlabs/diy-guides-ui

v1.6.0

Published

React UI library for building open-source, iFixit-style step-by-step diy guides

Downloads

957

Readme

@openpawlabs/diy-guides-ui

Open-source React UI library for building iFixit-style DIY guides — step-by-step instructions with tools, warnings, and media.

Status

Active development. The core guide component set is implemented, tested, and documented in Storybook (deployed to GitHub Pages on every push to main):

| Component | Purpose | |-----------|---------| | GuideLayout | Responsive page shell: header, intro + tools row, full-width steps | | GuideStepList | Auto-numbered step sequence with a derived progress bar | | GuideStep | A single step — number badge, completion checkbox, media, and bulleted instructions | | MediaFigure | Image/video with percentage-positioned annotation markers | | ToolList | Titled card of required tools and parts | | LinkButton | Download / link button with an optional dropdown of file variants | | Callout | Safety / informational callout (notedanger types) | | DifficultyBadge | Color-coded difficulty pill (easy / moderate / difficult) |

Guide colors (COLORS / GuideColor) link step bullet dots to image annotation markers. Callout types (CalloutType) drive safety and informational tone in Callout boxes.

Tech stack

Getting started (development)

Requires pnpm 9+.

pnpm install
pnpm dev        # Storybook at http://localhost:6006
pnpm test       # Run tests
pnpm build      # Build library to dist/

Project structure

src/
  components/     # One folder per component (tsx, stories, tests, index)
  hooks/          # Shared hooks (e.g. useControlledState)
  types/          # Shared design tokens (colors, callout types) and types
  styles/         # Tailwind + HeroUI CSS entry
  index.ts        # Public API exports
.storybook/       # Storybook configuration

See AGENTS.md for contributor and AI agent conventions.

Using in another app

pnpm add @openpawlabs/diy-guides-ui @heroui/react @heroui/styles tailwindcss

Import styles in your app CSS:

@import "tailwindcss";
@import "@heroui/styles";
@import "@openpawlabs/diy-guides-ui/styles";
import "@openpawlabs/diy-guides-ui/styles";
import {
  GuideLayout,
  GuideStepList,
  GuideStep,
  MediaFigure,
  ToolList,
  Callout,
} from "@openpawlabs/diy-guides-ui";

export function BatteryGuide() {
  return (
    <GuideLayout>
      <GuideLayout.Header
        title="Replace a Smartphone Battery"
        difficulty="moderate"
        timeEstimate="20 – 30 minutes"
      />

      <GuideLayout.Intro>
        A worn battery drains fast and can swell. This guide covers a safe swap.
      </GuideLayout.Intro>

      <GuideLayout.Sidebar>
        <ToolList title="Tools">
          <ToolList.Item name="Pro Tech Toolkit" href="#" price="$67.96" />
        </ToolList>
      </GuideLayout.Sidebar>

      <GuideLayout.Content>
        <Callout type="danger" title="Battery safety">
          A punctured lithium battery can catch fire. Work slowly.
        </Callout>
        <GuideStepList>
          <GuideStep title="Open the case">
            <GuideStep.Media>
              <MediaFigure
                src="/step-1.jpg"
                annotations={[{ x: 50, y: 45, color: "ORANGE", label: 1 }]}
              />
            </GuideStep.Media>
            <GuideStep.Bullets>
              <GuideStep.Bullet color="ORANGE">
                Soften the adhesive with even heat before prying.
              </GuideStep.Bullet>
            </GuideStep.Bullets>
          </GuideStep>
        </GuideStepList>
      </GuideLayout.Content>
    </GuideLayout>
  );
}

License

MIT — see LICENSE.