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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lxjay/react-ui-test

v0.1.2

Published

Reusable React/Tailwind UI component library with Storybook, tests, and i18n support.

Readme

React Tailwind UI Library

A reusable React + Tailwind CSS component library scaffold that includes Storybook docs, Jest + React Testing Library tests, strict TypeScript, ESLint/Prettier, i18n (English, Norwegian Bokmål, Lithuanian), accessibility helpers, and light/dark theming.

Features

  • React 18, TypeScript, Tailwind CSS 3 design system with tokens + dark mode via CSS variables.
  • Component set: Button, Input, Select, Checkbox, Modal, Table, Tabs, Toast (with provider), Pagination, FormField.
  • Storybook 7 with Docs/Controls, accessibility addon, Tailwind styling, design tokens, and preview decorators for Theme + Toast providers.
  • Jest + React Testing Library with jsdom environment for fast unit tests.
  • ESLint (TypeScript, React, Testing Library, jest-dom) + Prettier formatting.
  • i18next setup with helper initI18n and translations for English, Norwegian Bokmål, Lithuanian.
  • Build via tsup + Tailwind CLI, ready to publish to npm.

Scripts

pnpm install # install deps
pnpm lint    # lint TS/React files
pnpm test    # run unit tests
pnpm storybook        # start Storybook on :6006
pnpm storybook:build  # generate static Storybook
pnpm build   # bundle components + CSS to dist/

Development Workflow

  1. Install dependenciespnpm install (enable via corepack enable pnpm if needed).
  2. Run Storybookpnpm storybook for component-driven development with live docs.
  3. Add/Update components – implement in src/components, export from src/index.ts, document with a stories/*.stories.tsx file, and add relevant tests under src/components/__tests__.
  4. Style with tokens – use Tailwind classes powered by src/styles/tokens.css, or import tokens from @/tokens for JS usage. Respect dark-mode via [data-theme="dark"] or the provided ThemeProvider.
  5. Internationalization – call initI18n({ lng: 'nb' }) when embedding in consuming apps; use useTranslation from the library for UI text.
  6. Testing & linting – run pnpm test and pnpm lint before building. The pnpm check script runs lint + test + build for CI safety.
  7. Build artifactspnpm build outputs dist/index.{cjs,mjs,d.ts} and dist/styles.css. Consumers import CSS via import '@ziliang/react-tailwind-ui/styles.css';.
  8. Version & publish – bump the version in package.json, run pnpm build, then npm publish --access public (from the repo root, authenticated with npm).

Importing Components in Another App

import '@ziliang/react-tailwind-ui/styles.css';
import { Button, ThemeProvider, initI18n } from '@ziliang/react-tailwind-ui';

initI18n();

export const Example = () => (
  <ThemeProvider>
    <Button variant="secondary">Click me</Button>
  </ThemeProvider>
);

Project Structure

src/
  components/        # All UI primitives
  design-tokens/     # JS access to CSS tokens
  i18n/              # i18next setup + locales
  styles/            # Tailwind + CSS variables
  theme/             # ThemeProvider + hook
  utils/             # Shared helpers
stories/             # Storybook stories for each component
storybook/           # Storybook config

Publishing Checklist

  1. pnpm check
  2. Update README.md / CHANGELOG if needed
  3. pnpm build
  4. npm publish --access public
  5. Tag the release in git

Enjoy building accessible, themeable UI blocks!