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

@thunder-source/thunder-ui

v1.0.12

Published

Reusable React component library

Readme

@thunder-source/thunder-ui

A comprehensive React component library built with TypeScript, Tailwind CSS, and Radix UI primitives.

Installation

npm install @thunder-source/thunder-ui
# or
pnpm add @thunder-source/thunder-ui
# or
yarn add @thunder-source/thunder-ui

Peer Dependencies

This package requires the following peer dependencies:

npm install react react-dom
npm install react-router-dom react-redux  # Required for Header, RootLayout, and Sidebar components

Usage

Basic Setup

  1. Import the styles in your main entry file:
import "@thunder-source/thunder-ui/styles";
  1. Import and use components:
import { Button, Card, Input } from "@thunder-source/thunder-ui";

function App() {
  return (
    <div>
      <Button variant="default">Click me</Button>
      <Card>
        <Input placeholder="Enter text..." />
      </Card>
    </div>
  );
}

Tailwind CSS Setup

This library uses Tailwind CSS. Make sure your project has Tailwind configured. You may need to add the library to your tailwind.config.js:

module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@thunder-source/thunder-ui/dist/**/*.{js,ts,jsx,tsx}",
  ],
  // ... rest of your config
};

Note: This library uses JavaScript format for Tailwind configuration (tailwind.config.js) for maximum flexibility and compatibility.

Router Setup (for Header, RootLayout, Sidebar)

If you're using components that require routing (Header, RootLayout, Sidebar), make sure to wrap your app with a router:

import { BrowserRouter } from "react-router-dom";
import { RootLayout } from "@thunder-source/thunder-ui";

function App() {
  return (
    <BrowserRouter>
      <RootLayout>
        {/* Your routes */}
      </RootLayout>
    </BrowserRouter>
  );
}

Components

UI Components

  • Button
  • Input
  • Card
  • Dialog
  • Dropdown Menu
  • Select
  • Calendar
  • Table
  • Tabs
  • Toast
  • Tooltip
  • And many more...

Custom Components

  • Header
  • Sidebar
  • Form Components
  • Data Tables
  • Filters
  • And more...

Documentation

For detailed component documentation and examples, please refer to the Storybook documentation (if available).

TypeScript Support

This package is written in TypeScript and includes type definitions. No additional types package is required.

Type Safety Features

  • Full TypeScript strict mode enabled
  • Declaration maps included for "Go to Definition" support
  • Comprehensive type definitions for all components

Bundle Size

The library is optimized for production use:

  • ESM Bundle: ~2.07 MB (minified)
  • CJS Bundle: ~2.08 MB (minified)
  • CSS Bundle: ~113 KB (processed with Tailwind)

Note: The actual bundle size in your application will be smaller due to tree-shaking. Only the components you import will be included in your final bundle.

License

MIT

Contributing

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

Have an idea? Check out our Feature Suggestions & Roadmap to see what's planned or to make a request.

Development

Local Development

# Install dependencies
pnpm install

# Start development mode
pnpm run dev

# Build the library
pnpm run build

# Run linting
pnpm run lint

# Start Storybook
pnpm run storybook

Testing

# Validate package build
pnpm run validate

# Test in consumer app
pnpm run test:consumer

# Create test package
pnpm run pack:test

For detailed testing instructions, see TESTING.md.

Pre-Release

Before publishing, review the Pre-Release Checklist to ensure:

  • Build completes successfully
  • All tests pass
  • TypeScript types work correctly
  • Components render in test app
  • Package metadata is complete

Documentation

Support

For issues and questions, please open an issue on the GitHub repository.


Built with ❤️ by Praditya Manjhi