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

@farhod_dev/super-ui

v0.0.3

Published

[![CI](https://github.com/Farhodoff/components-main/workflows/CI/badge.svg)](https://github.com/Farhodoff/components-main/actions) [![Storybook](https://github.com/Farhodoff/components-main/workflows/Deploy%20Storybook/badge.svg)](https://Farhodoff.github

Readme

@farhod_dev/super-ui

CI Storybook License: MIT TypeScript React

A comprehensive, accessible React component library built with Radix UI and Tailwind CSS. Featuring a dynamic Theme Customizer, Internationalization (i18n), and ready for production use.

🚀 Features

  • Accessible Components: Built on top of Radix UI primitives with WCAG 2.1 AA compliance
  • Themeable: Dynamic primary colors and border radius with Dark/Light mode support
  • Internationalization: English and Uzbek language support out of the box
  • 50+ Components: Comprehensive UI components for modern web applications
  • Form Primitives: Advanced inputs, date pickers, and file uploads
  • Data Display: Tables, charts, timelines, and empty states
  • Templates: Ready-to-use Auth and Dashboard layouts
  • TypeScript: Full type safety with TypeScript support
  • Storybook: Interactive component documentation

🛠 Getting Started

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm

Installation

For Development

Clone this repository and install dependencies:

git clone <your-repository-url>
cd components-main
pnpm install

As NPM Package (When Published)

# Install via npm
npm install @farhod_dev/super-ui

# Or via pnpm
pnpm add @farhod_dev/super-ui

# Or via yarn
yarn add @farhod_dev/super-ui

Configuration

Create a .env file in the root directory:

VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

Database Setup

This project requires Supabase tables. Run the SQL commands provided in SCHEMA.md to set up your database.

Development

# Start the development playground (runs on http://localhost:5173)
pnpm dev

# Start Storybook documentation (runs on http://localhost:6006)
pnpm storybook

# Run unit tests
pnpm test

# Run E2E tests
pnpm exec playwright test

# Build for production
pnpm build

📄 Using Templates

The library comes with pre-built page templates. You can import them directly:

import { AnalyticsDashboard } from '@farhod_dev/super-ui/templates';
import { HeroSection } from '@farhod_dev/super-ui/templates';

function MyPage() {
    return (
        <div>
           <HeroSection title="My Awesome App" />
           <AnalyticsDashboard />
        </div>
    )
}

See src/pages/templates for full implementation examples.

📦 Using as a Library

This project is configured to be published as an NPM package.

Build the Library

pnpm build:lib

This creates a distributable package in the dist/ directory with:

  • CommonJS bundle (dist/index.cjs)
  • ES Module bundle (dist/index.js)
  • TypeScript definitions (dist/index.d.ts)

Usage Example

After installation, import components in your React application:

import { Button, Card, Input, Badge } from '@farhod_dev/super-ui';
import '@farhod_dev/super-ui/styles.css'; // Import styles

function App() {
  return (
    <Card>
      <h1>Hello World</h1>
      <Input placeholder="Enter text..." />
      <Button>Click me</Button>
      <Badge variant="secondary">New</Badge>
    </Card>
  );
}

Tailwind Configuration

To use this library with Tailwind CSS in your project, extend your tailwind.config.js:

module.exports = {
  presets: [
    require('@farhod_dev/super-ui/tailwind.preset.js')
  ],
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/@farhod_dev/super-ui/dist/**/*.js'
  ],
}

📖 Documentation

  • Storybook: Run pnpm storybook to view interactive component documentation
  • TypeScript Definitions: Full IntelliSense support with TypeScript definitions included

🧪 Testing

# Run unit tests with Vitest
pnpm test

# Run unit tests in watch mode
pnpm test -- --watch

# Run E2E tests with Playwright
pnpm exec playwright test

# View test coverage
pnpm test -- --coverage

🏗️ Project Structure

src/
├── components/
│   ├── ui/              # 50+ Core UI components
│   ├── library/         # Advanced components (Timeline, FileUpload, etc.)
│   ├── templates/       # Auth and Dashboard templates
│   └── docs/            # Documentation components
├── hooks/               # Custom React hooks
├── lib/                 # Utility functions
└── locales/             # i18n translations (en, uz)

🚀 NPM Avtomatlashtirish

Bu loyihada NPM ga avtomatik yuklash uchun GitHub Action sozlangan.

Sozlash

  1. NPM Token olish:

    • npmjs.com ga kiring va profilingizga bosing.
    • Access Tokens bo'limini tanlang.
    • Generate New Token tugmasini bosing.
    • Classic Token ni tanlang (Automation uchun).
    • Nom bering (masalan: github-action) va Automation turini tanlang.
    • Tokenni nusxalab oling (bu faqat bir marta ko'rinadi!).
  2. GitHub ga joylash:

    • GitHub repozitoriysingizdagi Settings -> Secrets and variables -> Actions bo'limiga kiring.
    • NPM_TOKEN nomli yangi secret yarating va nusxalangan tokenni joylang.
  3. O'zgarishlarni yuklang (Push).

  4. "Release" jarayoni avtomatik ishga tushadi:

    • Versiyani yangilash uchun Pull Request (PR) yaratadi.
    • Agar PR qabul qilinsa (Merge), yangi versiya avtomatik NPM ga yuklanadi.

🌍 Internationalization

The library includes built-in support for multiple languages using i18next:

import { useTranslation } from 'react-i18next';

function MyComponent() {
  const { t, i18n } = useTranslation();
  
  return (
    <div>
      <p>{t('welcome')}</p>
      <button onClick={() => i18n.changeLanguage('uz')}>
        O'zbek
      </button>
    </div>
  );
}

Supported languages:

  • 🇬🇧 English (en)
  • 🇺🇿 Uzbek (uz)

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

👤 Author

Farhod Soyilov

🙏 Acknowledgments