@ariestools/sdk-react

中文文档
12.0.1发布于 2026/10/06LGPL-3.0-onlyTypeScriptES Module近 30 天下载 2867

Common React library for all XY Labs projects that use React

原始使用文档

@ariestools/sdk-react

All-in-one compatibility and convenience facade for the XY Labs React SDK.

Installing this package intentionally installs every feature package. Application projects that use most of the SDK can continue to import from the root or its stable subpaths:

import { FlexRow } from '@ariestools/sdk-react/flexbox'

Libraries and dependency-sensitive applications should install the smallest owning package instead:

import { FlexRow } from '@ariestools/sdk-react-foundation/flexbox'
import { ButtonEx } from '@ariestools/sdk-react-ui/button'
import { Identicon } from '@ariestools/sdk-react-identicon/identicon'

Package ownership:

  • @ariestools/sdk-react-foundation: async effects, flexbox, hooks, portals, promises, render checks, rich results, shared utilities, and user-event contracts.
  • @ariestools/sdk-react-ui: accordion, buttons, common components, cookie consent, dialogs, error rendering, quick tips, selects, and themes.
  • @ariestools/sdk-react-app: app settings, app bars, base pages, error reporting, routing hooks and links, scrolling, and web-app shell components.
  • @ariestools/sdk-react-analytics: pixel integrations, experiments, and pixel debugging.
  • @ariestools/sdk-react-crypto: wallet, token, and chain integrations.
  • @ariestools/sdk-react-identicon: lightweight identicons without the wallet stack.
  • @ariestools/sdk-react-motion, @ariestools/sdk-react-json-viewer, and @ariestools/sdk-react-number-status: focused optional features.

@ariestools/sdk-react-core remains published as a deprecated forwarding facade for compatibility.

版本与发布记录

@ariestools/sdk-react 共发布 16 个版本,首次发布于 2026/07/02;过去 12 个月发布了 16 个版本。

版本发布日期距今
12.0.1latest2026/10/061 个月前
12.0.02026/09/171 个月前
11.1.62026/07/253 个月前
11.1.52026/07/213 个月前
11.1.42026/07/153 个月前
11.1.32026/07/153 个月前

关于 @ariestools/sdk-react 的常见问题

@ariestools/sdk-react 是什么?

Common React library for all XY Labs projects that use React

如何安装 @ariestools/sdk-react?

在项目目录运行 npm install @ariestools/sdk-react,或使用 pnpm add / yarn add / bun add。

@ariestools/sdk-react 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@ariestools/sdk-react 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ariestools/sdk-react 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.17.1。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@ariestools/sdk-react 可以商用吗?

@ariestools/sdk-react 使用 LGPL-3.0-only 许可。弱 Copyleft:作为库被调用时通常不要求开源你自己的代码,但修改库本身需以 LGPL 开源;前端打包合并后的适用边界存在不同理解。以上为概括,不构成法律意见,请以许可原文为准。

@ariestools/sdk-react 的下载量有多少?

根据 npm 官方下载统计,@ariestools/sdk-react 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,867 次,日均约 96 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ariestools/sdk-react 还在维护吗?

最新版本 12.0.1 发布于 2026/10/06(1 个月前);至今共发布 16 个版本,其中过去 12 个月发布了 16 个;首次发布于 2026/07/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。