@forgedevstack/bear

中文文档
1.3.7发布于 2026/11/05MITTypeScriptESM + CJS近 30 天下载 2859

Strong, reliable React UI components. AeroCraft-powered, zero config required. The protective force of ForgeStack.

原始使用文档
文档目录13 节
  1. Install
  2. Bundle size
  3. Provider
  4. Charts
  5. Icons
  6. Calendar
  7. Map and kanban
  8. CLI
  9. What 1.3.6 adds
  10. What 1.3.5 adds
  11. Components
  12. Scripts
  13. License

@forgedevstack/bear

React components, a theme provider, and AeroCraft tokens. Version 1.3.6 in this repository. Publishing happens when this release is merged to main.

Author: John Yaghobieh. Docs: bearui.com. Package: @forgedevstack/bear.

Install

npm install @forgedevstack/bear

That install is the component set and the theme. Icons are a separate package. Charts still ship inside the core build today, and they also have a dedicated package entry so you can import them on their own.

npm install @forgedevstack/bear-grid
npm install @forgedevstack/bear-blocks
npm install @forgedevstack/bear-icons
npm install @forgedevstack/bear-x-charts
npm install @forgedevstack/bear-x-ai
npm install @forgedevstack/bear-x-code
npm install @forgedevstack/bear-map
npm install @forgedevstack/kanban
npm install @forgedevstack/calendar

@forgedevstack/bear-icons and @forgedevstack/calendar are on npm (calendar is 1.0.1 there; 1.0.2 with the event calendar is in this repo). Charts, AI, code, map, and kanban are not on npm yet.

Media playback stays Torch. The rich text editor stays Ink.

Bundle size

Sizes change with each publish. Open Bundlephobia for the package you are about to add:

The portal product pages and the libraries page have the same link as a button.

Provider

Import the stylesheet once, then wrap the tree.

import '@forgedevstack/bear/styles.css';
import { BearProvider, Button, Card, CardBody, Typography } from '@forgedevstack/bear';

export function App() {
  return (
    <BearProvider
      colorScheme="system"
      theme={{ colors: { primary: '#ec4899' } }}
    >
      <Card>
        <CardBody>
          <Typography variant="h4">Bear</Typography>
          <Button variant="primary">Save</Button>
        </CardBody>
      </Card>
    </BearProvider>
  );
}

colorScheme is light, dark, or system. Dark mode follows the .dark class from the provider.

Charts

import { BarChart } from '@forgedevstack/bear-x-charts';
import '@forgedevstack/bear/styles.css';

<BarChart
  data={[
    { label: 'Jan', value: 30 },
    { label: 'Feb', value: 45 },
  ]}
  showLabels
/>

Chart views in this repo: bar, line, area, pie, donut, radar, funnel, stacked. Pie also has full, half, and rose. Sparkline, Gauge, RingProgress, Heatmap, and TimelineChart sit next to those. Motion is grow, fade, scale, or none, and animated is a boolean. These are zero-dependency SVG charts. They are not Chart.js plugins.

Icons

import { SearchIcon } from '@forgedevstack/bear-icons';

<SearchIcon size={24} />

Calendar

Peer of Bear. 1.0.2 adds the event month and the resource timeline. Popups and filters use Bear.

import { EventCalendar, EventTimeline } from '@forgedevstack/calendar';
import '@forgedevstack/calendar/styles.css';
import '@forgedevstack/bear/styles.css';

<EventCalendar events={events} mode="dark" />
<EventTimeline events={events} />

Map and kanban

import { Map } from '@forgedevstack/bear-map';
import { Kanban } from '@forgedevstack/kanban';

Hooks stay on core. Date pickers stay on core.

CLI

Forge CLI is the installer that exists today.

npx create-forge my-app

When you select Bear, the CLI prints the Lotso mascot and asks which libraries to include: icons, charts, AI, code, map, kanban, and calendar. It then asks for the primary color. --yes selects Bear and those libraries.

Add one package to an existing app:

forge add bear
forge add bear-icons
forge add calendar

forge add bear asks the same library question. Icons and calendar install from npm. Charts, AI, code, map, and kanban are recorded in a comment in src/main.tsx until those packages are published, so the install does not fail on a missing package.

npx @forgedevstack/bear-cli is the name reserved for a Bear-only binary. That binary is not published, so those commands do not run yet.

What 1.3.6 adds

  • bear_flutter in packages/bear_flutter. Free widgets on the Bear tokens.
  • @forgedevstack/bear-grid. Pin, grouping, and Excel export. The watermark clears with a license key. Pro is $9 a year. DataTable stays free.
  • @forgedevstack/bear-blocks. Free DashboardBlock.
  • Portal pricing, Storybook entries, and sandbox recipes.
  • @forgedevstack/bear-icons is called out on the home page and the libraries list.

What 1.3.5 adds

  • Optional packages: @forgedevstack/bear-x-charts, @forgedevstack/bear-x-ai, @forgedevstack/bear-x-code, @forgedevstack/bear-map, @forgedevstack/kanban.
  • Overlay open and close motion on the panel: none, fade, slide-down, scale, fold, elastic, reveal, expand. The default is fold.
  • Portal product pages for each library, with a Bundlephobia button.
  • @forgedevstack/calendar 1.0.2: event calendar, resource filter, side editor, and timeline.

Components

AreaExamples
ActionsButton, ButtonGroup, ToggleGroup, FAB, SplitButton
FormsInput, Select, Checkbox, Radio, Switch, Slider, DatePicker, TimePicker
OverlaysModal, Drawer, AlertDialog, Popover, Tooltip, Menu, CommandPalette
FeedbackAlert, Toast, Spinner, Progress, Skeleton, Badge
LayoutContainer, Flex, Grid, Paper, Divider, ScrollArea
DataDataTable, Chart, Calendar, Timeline

Scripts

npm run build
cd portal && npm run test:e2e:smoke

License

MIT. John Yaghobieh and the ForgeStack team.

版本与发布记录

@forgedevstack/bear 共发布 35 个版本,首次发布于 2026/01/24;过去 12 个月发布了 35 个版本。

版本发布日期距今
1.3.7latest2026/11/0510 天前
1.3.62026/10/2521 天前
1.3.52026/10/1828 天前
1.3.42026/09/231 个月前
1.3.32026/09/122 个月前
1.3.22026/08/282 个月前

关于 @forgedevstack/bear 的常见问题

@forgedevstack/bear 是什么?

Strong, reliable React UI components. AeroCraft-powered, zero config required. The protective force of ForgeStack.

如何安装 @forgedevstack/bear?

在项目目录运行 npm install @forgedevstack/bear,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=18.0.0)、react-dom(>=18.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@forgedevstack/bear 支持 TypeScript 吗?

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

@forgedevstack/bear 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@forgedevstack/bear 可以商用吗?

@forgedevstack/bear 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@forgedevstack/bear 的下载量有多少?

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

@forgedevstack/bear 还在维护吗?

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