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

@icydotdev/lumen

v0.1.6

Published

AI-powered design system workbench for React — extract, organise, test, and maintain your design system from existing code, live.

Readme


Most React apps already have a design system — it's just scattered across components as repeated colours, ad-hoc spacing, and near-duplicate buttons. Lumen makes it explicit: your AI agent (Claude) scans the code while the Lumen dashboard visualises it in realtime, then scaffolds a structured ui/ folder — unified components, typed tokens, Storybook stories, and accessibility + unit tests — and flags the inconsistencies it unified along the way.

The agent does the thinking; Lumen is the engine + live dashboard that drives and visualises it. Part of the @icydotdev suite, alongside runny and nextmap.

Usage

Lumen is the engine behind the react-design-system-extractor skill. You normally drive it through the skill, not by hand:

# once — installs the skill (prompts for project vs global)
npx skills add icydotdev/skills --skill react-design-system-extractor

Then, in Claude Code (or any supported agent):

/react-design-system-extractor

The skill runs the Lumen engine, scans your codebase, and scaffolds ui/ while the dashboard visualises it live. Claude is the AI layer — no API key required.

Running the engine directly

npx @icydotdev/lumen --serve       # dashboard + ingest API, for an AI to drive
npx @icydotdev/lumen --dashboard   # ongoing dashboard for an already-scaffolded project
npx @icydotdev/lumen --fallback    # deterministic scaffold, no AI (TODO stubs)

After a run, a lumen script is added to your package.json:

npm run lumen

Options

Usage: lumen [options]

  --dashboard       Launch dashboard only (no scaffolding), for ongoing use
  --no-browser      Don't open the browser automatically
  --port <number>   Port to run on (default: 3719)
  --dry-run         Show what would be generated without writing files
  -h, --help        Show this help message

What gets generated

ui/
├── components/
│   └── Button/
│       ├── Button.tsx           # Unified component with variant props
│       ├── Button.stories.tsx   # Storybook stories, one per variant
│       ├── Button.test.tsx      # Unit tests + a11y (axe-core)
│       └── index.ts             # Re-export
├── theme.ts                     # Typed token exports
├── tokens.ts                    # Raw inferred token values
├── lib/cn.ts                    # className combiner (Tailwind path)
└── lumen.config.ts             # Config for future runs

Lumen is additive by defaultui/ is always net-new and existing files are never modified without showing a diff first.

Supported styling approaches

Detection is non-exclusive; a project may use several.

| Approach | Detection signal | | ----------------- | -------------------------------------------------- | | Tailwind | tailwind.config.* exists | | CSS Modules | .module.css / .module.scss files present | | Styled Components | styled-components in dependencies |

v1 constraint: Tailwind + React is the primary, best-supported target. CSS Modules and Styled Components are detected and respected but produce less polished output for now.

How the AI layer works

When invoked via claude -- npx @icydotdev/lumen, Claude Code names tokens from usage context, clusters similar components into unified variants, and writes idiomatic components, stories, and behaviour-focused tests. Without Claude Code, Lumen still produces structural scaffolding with generic token names and TODO placeholders — useful, but less polished.

Development

npm install
npm run dev      # server (tsx watch) + client (vite) concurrently
npm run build    # build client (vite) + server (tsc)

License

MIT © Sam Kavanagh