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

luan-ui

v0.10.0

Published

A UI library for React

Readme

luan-ui

Luan UI is built with Tailwind on top of Base UI Primitives. It includes Responsive values that can be defined based on breakpoints.

Installation

Add the npm package with your favorite package manager

npm install luan-ui
yarn add luan-ui
pnpm add luan-ui

Set-up

If you haven't already, you can install Tailwind v4 in your project by following the official Tailwind v4 documentation.

In your project, you have to import the custom config to enable animations and custom configuration that are needed for luan-ui to work properly.

/* Import tailwind */
@import 'tailwindcss';

/* Import tailwind luan-ui configuration */
@import 'luan-ui/dist/styles/index.css';

Now you should be able to use the components in your project.

MCP server

The package ships a local MCP server so coding agents can look up the installed version of Luan UI — not a generic component library, and not a stale copy of the docs.

After installing luan-ui, point Cursor at .cursor/mcp.json:

{
  "mcpServers": {
    "luan-ui": {
      "command": "npx",
      "args": ["-y", "luan-mcp"]
    }
  }
}

Claude Code uses the same shape in .mcp.json at the repo root.

The server exposes two tools:

  • list_components — discover what exists
  • get_component — full docs for one component (import, props, variants, usage, examples)

Pass "conventions" to get_component for shared patterns such as responsive values, the render prop, form context, and portals.

Add a line to your agent rules so the tools actually get called: Use the luan-ui MCP tools (list_components, get_component) before writing UI with Luan UI.

Documentation

Component docs are MDX pages in Storybook, next to each set of stories. Run pnpm dev and open a component’s Docs tab. Shared patterns live under Conventions.

Theming

Luan UI ships with two built-in themes that are activated via a data-theme attribute:

  • data-theme="luan-light"
  • data-theme="luan-dark"

The library styles expose semantic tokens for surfaces, borders, text, and interactive states. Both themes also define a base background and foreground color, so applying the theme attribute to a top-level container gives you a matching page background and default text color as well.

export function App() {
	return (
		<div data-theme="luan-dark">
			<Button>Dark theme button</Button>
		</div>
	);
}

If you want the whole application to follow one theme, apply the attribute at the document level:

<html data-theme="luan-light">
	<body>
		<div id="root"></div>
	</body>
</html>

This is especially recommended for components that render in a portal, such as dialogs, popovers, selects, comboboxes, and other overlays, since they inherit the theme from the document instead of a local wrapper.

Requirements

This library requires React 19 or higher due to its use of the ref-as-prop pattern.