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

reke-ui

v0.2.1

Published

Web Component library built with Lit 3 — dark & light themes

Readme

reke-ui

A Web Component library built with Lit 3. Ships with dark and light themes. Framework-agnostic — works with Vue, React, Angular, Svelte, or vanilla JS.

Documentation · Storybook

Components

| Component | Tag | Description | |-----------|-----|-------------| | Button | <reke-button> | Buttons with variants: primary, secondary, danger, ghost, outline | | Input | <reke-input> | Text input with label, helper text, and validation | | Textarea | <reke-textarea> | Multi-line text input | | Checkbox | <reke-checkbox> | Checkbox with label | | Toggle | <reke-toggle> | On/off toggle switch | | Select | <reke-select> | Dropdown select | | Date Range | <reke-date-range> | Date range picker with presets | | File Upload | <reke-file-upload> | Drag & drop file upload | | Table | <reke-table> | Data table with sorting and expandable rows | | Dialog | <reke-dialog> | Modal dialog | | Card | <reke-card> | Content card container | | Badge | <reke-badge> | Status badge | | Chip | <reke-chip> | Dismissible chip/tag | | Tooltip | <reke-tooltip> | Tooltip on hover | | Alert | <reke-alert> | Inline alert message | | Toast | <reke-toast> | Toast notification |

Quick Start

Install

npm install reke-ui

Import tokens (optional but recommended)

@import 'reke-ui/tokens/css';

Use a component

<script type="module">
  import 'reke-ui/button';
</script>

<reke-button variant="primary">Click me</reke-button>

Or import everything:

import 'reke-ui';

Framework Usage

Vue

Vue supports Web Components natively. Just import and use:

<script setup>
import 'reke-ui/button';
import 'reke-ui/input';
</script>

<template>
  <reke-button variant="primary" @reke-click="handleClick">
    Submit
  </reke-button>
  <reke-input label="Name" @reke-change="handleChange" />
</template>

Vue config: Tell Vue to skip resolving reke-* tags as Vue components:

// vite.config.ts
vue({
  template: {
    compilerOptions: {
      isCustomElement: (tag) => tag.startsWith('reke-'),
    },
  },
})

React

React needs wrappers for proper event handling. Use the built-in React bindings:

import { Button, Input } from 'reke-ui/react';

function App() {
  return (
    <>
      <Button variant="primary" onRekeClick={() => console.log('clicked')}>
        Submit
      </Button>
      <Input label="Name" onRekeChange={(e) => console.log(e.detail.value)} />
    </>
  );
}

Components with render props (e.g. Table with expandedRowRender or columns[].render) use a React-native bridge: return ReactNode (JSX), pass getRowKey for stable keying, and never import { html } from 'lit' in app code. See README-DOC.md → reke-table → React usage, or install the agent skills below for the full contract.

Vanilla JS

<link rel="stylesheet" href="node_modules/reke-ui/dist/tokens/reke-tokens.css" />
<script type="module" src="node_modules/reke-ui/dist/reke-ui.js"></script>

<reke-button variant="primary">Click me</reke-button>

<script>
  document.querySelector('reke-button')
    .addEventListener('reke-click', () => console.log('clicked'));
</script>

Theming

reke-ui ships with dark (default) and light themes, plus an auto mode that follows OS preference.

<html>                          <!-- Dark (default) -->
<html data-reke-theme="dark">   <!-- Dark (explicit) -->
<html data-reke-theme="light">  <!-- Light -->
<html data-reke-theme="auto">   <!-- Follows OS preference -->

Customizing tokens

Override any CSS custom property to match your brand:

:root {
  --reke-color-primary: #8B5CF6;
  --reke-color-secondary: #EC4899;
  --reke-radius: 8px;
  --reke-font-mono: 'Fira Code', monospace;
}

See all available tokens in src/tokens/reke-tokens.css.

Agent skills

reke-ui ships LLM-first skills that teach AI coding agents how to consume the library correctly (3-layer token system, component APIs, React bridge contract for components with render props).

npm install reke-ui
npx reke-ui install-skills

This copies three consumer skills into your project's .claude/skills/ directory:

  • reke-ui-consumer — install, imports, framework integration, full component reference, React bridge contract
  • reke-design-system — 3-layer token architecture for Tailwind v4 projects (microfrontend-safe scoping)
  • reke-bridge — when and how to bridge web components to your framework (React today; pattern documented for Vue/Svelte)

After install, ask your agent to refresh its skill index: "update skill registry" (or "actualizá las skills"). The agent will then know how to use reke-ui idiomatically — no more guessing or copy-pasted anti-patterns.

Options: --force reinstalls even if versions match, --dry-run previews without writing files.

Development

npm install          # Install dependencies
npm run dev          # Start Storybook on port 6006
npm run test:run     # Run all tests
npm run build        # Build for production
npm run lint         # Type-check

License

MIT