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

@lpm-registry/ex-source

v1.0.8

Published

Example configurable source package for E2E testing

Readme

@lpm.dev/tolgaergin.ex-source

Example configurable source package for E2E testing of the lpm.config.json system.

Install

lpm add @lpm.dev/tolgaergin.ex-source

Or with inline configuration:

lpm add "@lpm.dev/tolgaergin.ex-source?component=button&styling=panda"

To accept all defaults non-interactively:

lpm add @lpm.dev/tolgaergin.ex-source --yes

Usage

Button

import Button from "@/components/ui/button"

export default function App() {
  return (
    <Button variant="solid" size="md">
      Click me
    </Button>
  )
}

Dialog

import Dialog from "@/components/ui/dialog"
import { useState } from "react"

export default function App() {
  const [open, setOpen] = useState(false)

  return (
    <>
      <button onClick={() => setOpen(true)}>Open Dialog</button>
      <Dialog open={open} onClose={() => setOpen(false)} title="My Dialog">
        <p>Dialog content goes here.</p>
      </Dialog>
    </>
  )
}

API

Button Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | — | Button content | | variant | "solid" \| "outline" | "solid" | Visual style variant | | size | "sm" \| "md" \| "lg" | "md" | Button size |

Dialog Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | open | boolean | — | Whether the dialog is visible | | onClose | () => void | — | Called when overlay is clicked | | title | string | — | Optional dialog title | | children | ReactNode | — | Dialog body content |

Design Tokens

lib/tokens.js exports a tokens object with semantic color references:

| Token | Value | |-------|-------| | primary | neutral.500 | | primaryHover | neutral.600 | | primaryActive | neutral.700 | | primaryLight | neutral.100 | | primaryDark | neutral.900 |

Configuration Options

This is a configurable source package. When you run lpm add, you'll be prompted for:

| Option | Type | Required | Default | Description | |--------|------|----------|---------|-------------| | component | multi-select | No | All | Which components to install (button, dialog) | | styling | select | Yes | panda | Styling framework (panda, tailwind) | | darkMode | boolean | No | true | Include dark mode CSS support |

Package Structure

ex-source/
├── package.json                    # @lpm.dev/[email protected]
├── lpm.config.json                 # 3 config options
├── components/
│   ├── button/
│   │   ├── index.js
│   │   ├── Button.jsx
│   │   └── Button.style.jsx        # imports @/lib/tokens
│   └── dialog/
│       ├── index.js
│       ├── Dialog.jsx
│       └── Dialog.style.jsx        # imports @/lib/tokens
├── lib/
│   └── tokens.js                   # semantic color tokens
└── styles/
    ├── panda.config.js             # condition: styling=panda
    ├── tailwind.config.js          # condition: styling=tailwind
    └── dark-mode.css               # condition: darkMode=true

What It Tests

| Feature | How it's covered | |---|---| | Conditional includes | Button/dialog files gated on component, style configs on styling, dark mode on darkMode | | Include all by default | Running without ?component=... should install both button AND dialog | | Multi-select | component field has multiSelect: true | | Required field | styling is required: true (prevents "include all" for conflicting dest paths) | | Boolean condition | darkMode controls dark-mode.css | | Glob patterns | components/button/** and components/dialog/** | | Dest path mapping | Components go to button/ and dialog/ | | Conditional dependencies | Panda → @pandacss/dev, Tailwind → tailwindcss + autoprefixer | | Import rewriting | Component files use @/ imports |

E2E Test Scenarios

  1. lpm add @lpm.dev/tolgaergin.ex-source — interactive, all components (no component filter)
  2. lpm add "@lpm.dev/tolgaergin.ex-source?component=button&styling=panda" — only button, panda
  3. lpm add "@lpm.dev/tolgaergin.ex-source?component=dialog,button&styling=tailwind" — both, tailwind
  4. lpm add @lpm.dev/tolgaergin.ex-source --yes — defaults, all components
  5. lpm add "@lpm.dev/tolgaergin.ex-source?darkMode=false&styling=panda" — no dark-mode.css

Publish first with lpm publish from this directory.

License

MIT