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

@byonedot/web-react

v1.0.1

Published

Suzume Design - React and Next.js UI component library by byonedot.in.

Readme

Suzume Design

面向产品界面开发的 React / Next.js 组件库。 由 https://byonedot.in 维护

license

npm i @byonedot/web-react
# 或
yarn add @byonedot/web-react
import { Button, Table, Form, Input, Modal, Typography } from '@byonedot/web-react';
import '@byonedot/web-react/dist/css/suzume.css';

export function SaveButton() {
  return <Button type="primary">保存</Button>;
}

目录

特性

  • 70+ 组件,覆盖表单、表格、数据录入、数据展示、反馈、导航与布局。
  • 设计令牌以 CSS 自定义属性暴露,主题可运行时切换,无需重新构建。
  • 暗色模式通过 <body> 上的 suzume-theme 属性开启。
  • 内置 19 种语言,通过 ConfigProvider 全局配置语言与组件行为。
  • 图标 280+ 个可摇树优化的 React 图标组件。
  • TypeScript 优先,所有组件均附带类型声明。
  • SSR 安全,服务端渲染期间不会访问 window / document / localStorage。
  • 无需插件,预构建 CSS 可直接用于任意打包器。

安装

对等依赖:react ^19.0.0 与 react-dom ^19.0.0。

npm i @byonedot/web-react

CDN / UMD

<script src="https://unpkg.com/@byonedot/web-react@latest/dist/suzume.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@byonedot/web-react@latest/dist/css/suzume.min.css" />

UMD 全局变量为 window.suzume(组件)、window.suzumeicon(图标)与 window.suzumehooks。

使用

React

import { ConfigProvider, Button } from '@byonedot/web-react';
import zhCN from '@byonedot/web-react/es/locale/zh-CN';
import '@byonedot/web-react/dist/css/suzume.css';

export default function App() {
  return (
    <ConfigProvider locale={zhCN}>
      <Button type="primary">确定</Button>
    </ConfigProvider>
  );
}

Next.js

Suzume Design 同时支持 App Router 与 Pages Router。交互式组件需要 Client Component 边界:

// app/components/save-button.tsx
'use client';

import { Button } from '@byonedot/web-react';

export function SaveButton() {
  return <Button type="primary">保存</Button>;
}
// app/layout.tsx
import '@byonedot/web-react/dist/css/suzume.css';

Server Component、水合、next/font、Turbopack、摇树与 transpilePackages 等完整说明见 docs/nextjs.md。

样式

三选一:

| 方式 | 引入 | 说明 | | --- | --- | --- | | 预构建 CSS | import '@byonedot/web-react/dist/css/suzume.css' | 推荐,任何环境可用 | | 按组件 Less | import '@byonedot/web-react/es/Button/style/index.less' | 需要 Less loader,可配合 modifyVars 定制主题 | | CDN | dist/css/suzume.min.css | 配合 UMD 使用 |

文档

全部文档位于 docs/ 目录,包含 快速开始、Next.js 兼容性、 主题与暗色模式、图标、 国际化、表单、表格、 弹层、响应式、 无障碍、TypeScript、 摇树、SSR、 色彩工具、构建插件、 迁移与版本 与组件清单。

生态

| 包 | 用途 | | --- | --- | | @byonedot/web-react | 本仓库 - React 组件库 | | @byonedot/color | 调色板生成与色彩工具 | | @byonedot/plugin-* | 可选的 webpack / Rspack / Vite 构建插件 | | suzume-design-pro | 中后台模板(Next.js / CRA / Vite) | | suzume-design-skill | 面向 AI Agent 的 @byonedot/web-react 技能包 |

版本策略

Suzume Design 遵循 Semantic Versioning。本发行版的公开 发布历史从 1.0.0 开始,见 CHANGELOG.md;本仓库代码的上游 来源见 THIRD_PARTY_NOTICES.md。

贡献

请阅读 CONTRIBUTING.md 与 《行为准则》。

许可证

MIT,上游归属见 THIRD_PARTY_NOTICES.md。