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

@windrun-huaiin/base-ui

v12.0.0

Published

Base UI components for windrun-huaiin projects

Readme

Base UI Components

A comprehensive set of UI components built with React, TypeScript, and Tailwind CSS.

🚀 Features

  • Built-in Icon System: 28 commonly used icons are built-in as React components
  • TypeScript Support: Full type safety and IntelliSense
  • Tailwind CSS: Utility-first CSS framework integration
  • Radix UI: Accessible and unstyled UI primitives
  • Tree Shaking: Only import what you need

📦 Installation

pnpm add @windrun-huaiin/base-ui

TailwindCSS 4.x Config

  • Assume you have a project structure like this:
Your-project/
├── src/
│   └── app/
│       └── globals.css
├── node_modules/
│   ├── @windrun-huaiin/
│   │   ├── third-ui/
│   │   │   └── src/        # This is third-ui src
│   │   └── base-ui/
│   │       └── src/        # This is base-ui src
└── package.json
  • Then, in your globals.css file, you have to configure Tailwind CSS 4.x like this:
@import 'tailwindcss';

@source "../node_modules/@windrun-huaiin/third-ui/src/**/*.{js,ts,jsx,tsx}";
@source "../node_modules/@windrun-huaiin/base-ui/src/**/*.{js,ts,jsx,tsx}";
@source "./src/**/*.{js,ts,jsx,tsx}";

/* Import styles */
@import '@windrun-huaiin/third-ui/styles/base-ui.css';

🎨 Built-in Icons

This package includes 28 built-in icons as React components. All icons are accessible through the globalLucideIcons object.

Available Icons

Development Tools:

  • GitHub, D8, Clerk, Iterm

File Types:

  • Markdown, MDX, Html, Json, XML, Yaml, CSV, Txt, Java, SQL, Log

Technologies:

  • MAC, BTC, CSS, Mermaid

Documentation:

  • LastUpdated, Snippets, Test, Diff

Business/Legal:

  • DPA, SubP, T3P

Network:

  • Http, Scheme

Usage

1. Direct Icon Usage

import { globalLucideIcons } from '@windrun-huaiin/base-ui';

// Use any built-in icon
<globalLucideIcons.GitHub className="h-6 w-6" />
<globalLucideIcons.BTC className="h-4 w-4" />
<globalLucideIcons.Mmd className="h-4 w-4" /> // Auto 16x16 size for Mermaid

2. Dynamic Icon Loading

import { getGlobalIcon } from '@windrun-huaiin/base-ui';

// Get icon component
const GitHubIcon = getGlobalIcon('GitHub');
<GitHubIcon className="h-6 w-6" />

// Get icon element (for fumadocs)
const iconElement = getGlobalIcon('GitHub', true);

3. Utility Components

import { SiteIcon, NotFoundIcon } from '@windrun-huaiin/base-ui';

// Pre-configured site icon
<SiteIcon />

// Pre-configured 404 icon  
<NotFoundIcon />

Benefits

  • Zero Configuration: No need to copy SVG files to your project
  • Self-contained: All icons are bundled as React components
  • Consistent Styling: Global icon color configuration
  • Type Safety: Full TypeScript support with auto-completion
  • Performance: No network requests for icon files
  • Special Sizing: Mermaid icon has optimized 16x16 default size

Environment Variables

# Optional: Set global icon color (defaults to text-purple-500)
NEXT_PUBLIC_STYLE_ICON_COLOR=text-blue-600

License

MIT

Included Components

UI Components (ui/)

  • Radix UI base components
  • Unified styles and themes
  • Full TypeScript support

Base Components (components/)

  • 404-page: 404 error page component
  • cta: Call-to-Action component
  • features: Feature showcase component
  • footer: Footer component
  • gallery: Image gallery component
  • global-icon: Global icon management
  • go-to-top: Go to top button
  • LanguageDetector: Language detection component
  • LanguageSwitcher: Language switcher component
  • seo-content: SEO content component
  • tips: Tip component

Script Components (script/)

  • GoogleAnalyticsScript: Google Analytics script
  • MicrosoftClarityScript: Microsoft Clarity script

Usage Example

import { Button, NotFoundPage, LanguageSwitcher } from '@windrun-huaiin/base-ui';

// Use UI components
<Button variant="default" size="lg">
  Click me
</Button>

// Use base components
<NotFoundPage />

// Use language switcher component (need to pass in configuration)
<LanguageSwitcher 
  locales={['en', 'zh']}
  localeLabels={{ en: 'English', zh: '中文' }}
/>

Dependencies

  • React 18+
  • Next.js 15+
  • TypeScript

Development

# Build
pnpm build

# Development mode
pnpm dev

# Type check
pnpm type-check

Showcase