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

@idolverse/components

v0.3.29

Published

A lightweight React component library

Readme

@idolverse/components

一个基于 Base Web 构建的现代化 React 组件库,提供完整的企业级应用解决方案。

特性

  • 🎨 统一设计语言 - 基于 Base Web 的设计系统
  • 🔧 开箱即用 - 提供完整的布局、主题、权限等功能
  • 🌓 主题定制 - 支持多主题和深度定制
  • 🚀 TypeScript - 完整的类型定义支持
  • 📱 响应式 - 移动端适配和响应式设计
  • 🔐 权限管理 - 内置权限系统和路由守卫
  • 🌐 请求管理 - 统一的 HTTP 请求和错误处理

快速开始

安装

# 使用 pnpm (推荐)
pnpm add @idolverse/components

# 使用 npm
npm install @idolverse/components

# 安装对等依赖
pnpm add baseui styletron-engine-monolithic styletron-react

基础使用

import { withIdolverseProvider, Button } from '@idolverse/components';

const MyApp = () => {
  return (
    <div>
      <h1>Hello World</h1>
      <Button>Click me</Button>
    </div>
  );
};

// 使用高阶组件包装应用
export default withIdolverseProvider(MyApp, {
  defaultOwner: {
    name: 'My App',
    logo: '/logo.png',
  },
});

文档和示例

启动 Storybook 查看完整的组件文档和示例:

pnpm run storybook

访问 http://localhost:6006 查看:

主要组件

基础组件

  • Button - 按钮组件,支持多种样式和状态
  • Avatar - 头像组件,支持图片、图标、文字
  • Icon - 图标组件,集成 Iconfont 和 Lucide
  • Logo - Logo 组件,支持多种尺寸和类型

布局组件

  • Layout - 完整的页面布局,包含 Header、Sidebar、Footer
  • Navigation - 导航组件

功能组件

  • Dialog - 对话框组件
  • ErrorTip - 错误提示组件
  • Spiner - 加载指示器
  • PermissionGuard - 权限守卫组件

开发工作流

# 代码检查和格式化
pnpm lint

# 构建组件库
./scripts/build.sh

# 发布到 npm
./scripts/publish.sh

# 启动开发环境
pnpm dev

技术栈

  • React - UI 框架
  • TypeScript - 类型系统
  • Base Web - 基础组件库
  • Styletron - CSS-in-JS 样式系统
  • Storybook - 组件文档和开发环境
  • Rollup - 模块打包工具

浏览器支持

  • Chrome >= 88
  • Firefox >= 85
  • Safari >= 14
  • Edge >= 88

许可证

MIT

贡献

欢迎提交 Issues 和 Pull Requests!

查看 贡献指南 了解更多信息。

更新日志

查看 CHANGELOG.md 了解版本更新信息。