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

@forgedevstack/bear

v1.3.4

Published

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

Downloads

935

Readme


🌟 Highlights & What's New in v1.3.4

  • 🔘 ToggleGroup & ToggleGroupItem: Modern segmented controls supporting single (type="single") and multiple (type="multiple") selections with full WAI-ARIA roving tabindex keyboard navigation.
  • 🎯 Standardized useFocusTrap: Centralized, robust focus trap & focus restore across all overlay components (Modal, Drawer, AlertDialog, CommandPalette, BottomSheet).
  • 🎬 Overlay Motion Parity: Unified openEffect, closeEffect, and compound effect={{ open, close }} across Modal, Menu, Popover, Tooltip, and HoverCard.
  • 📐 Density Parity: First-class support for compact, normal, and comfortable densities across Select, ChipGroup, and AppBar.
  • 🐻 Lotso Bear Visual Identity: High-fidelity mascot vectors, dark/light theme integration, and brand new @bear-icons (BearIcon, LotsoIcon, BearFaceIcon, PawIcon).
  • 🤖 AI Chat Primitives: Complete streaming chat suite including PromptComposer, StreamingMessage, ThinkingBlock, PromptSuggestions, ToolCall, and ContextMeter.

📦 Installation

# Recommended default installation (includes components, themes & icons)
npm install @forgedevstack/bear

# Or with your preferred package manager
pnpm add @forgedevstack/bear
yarn add @forgedevstack/bear
bun add @forgedevstack/bear

Quick Scaffolding with Forge CLI

npx @forgedevstack/bear init

Lightweight Install (Without Icons)

If you only need core components and wish to omit the icon library, pass the optional omission flag:

# npm
npm install @forgedevstack/bear --omit=optional

# pnpm
pnpm add @forgedevstack/bear --no-optional

# yarn
yarn add @forgedevstack/bear --ignore-optional

Standalone Icons

npm install @forgedevstack/bear-icons

🚀 Quick Start

1. Import Compiled CSS

Include Bear's compiled stylesheet once in your application entry file (main.tsx, App.tsx, or index.css):

import '@forgedevstack/bear/styles.css';

2. Wrap with BearProvider & Start Building

import React, { useState } from 'react';
import {
  BearProvider,
  Button,
  Card,
  CardHeader,
  CardBody,
  ToggleGroup,
  ToggleGroupItem,
  Typography,
} from '@forgedevstack/bear';

export function App() {
  const [alignment, setAlignment] = useState('center');

  return (
    <BearProvider>
      <Card className="max-w-md mx-auto p-6 shadow-xl">
        <CardHeader>
          <Typography variant="h4">Bear UI 1.3.4</Typography>
        </CardHeader>
        <CardBody className="space-y-4">
          <Typography variant="body1">
            Choose your layout alignment:
          </Typography>

          <ToggleGroup
            type="single"
            value={alignment}
            onValueChange={(val) => val && setAlignment(val)}
          >
            <ToggleGroupItem value="left">Left</ToggleGroupItem>
            <ToggleGroupItem value="center">Center</ToggleGroupItem>
            <ToggleGroupItem value="right">Right</ToggleGroupItem>
          </ToggleGroup>

          <Button variant="primary" fullWidth>
            Confirm Selection ({alignment})
          </Button>
        </CardBody>
      </Card>
    </BearProvider>
  );
}

🎨 Theming & Lotso Color Palette

Bear UI features a built-in strawberry magenta theme inspired by Lotso Bear, with deep contrast and native dark mode support.

import { BearProvider } from '@forgedevstack/bear';

<BearProvider
  colorScheme="system" // 'light' | 'dark' | 'system'
  theme={{
    colors: {
      primary: '#db2777', // Lotso Magenta
      accent: '#fed7aa',  // Strawberry Cream
    },
  }}
>
  <App />
</BearProvider>

🧩 Component Suite (190+ Primitives)

| Category | Key Components | |---|---| | Buttons & Action | Button, ButtonGroup, ToggleButton, ToggleGroup, FAB, SpeedDial, CopyButton, CloseButton, SplitButton, ActionIcon | | Forms & Input | Input, Select, MultiSelect, Autocomplete, Checkbox, Radio, Switch, Slider, TransferList, OTPInput, DatePicker, TimePicker, ColorPicker | | AI & Conversational | PromptComposer, StreamingMessage, ThinkingBlock, PromptSuggestions, MessageActions, ChatError, ToolCall, CitationList, ApprovalCard, ContextMeter | | Layout & Grid | Container, Flex, Grid, Paper, Divider, ResizablePanel, ScrollArea, Masonry, Dock | | Overlays & Dialogs | Modal, Drawer, AlertDialog, Popover, Tooltip, HoverCard, Menu, Dropdown, BottomSheet, CommandPalette | | Data Display | DataTable, Chart (Bar/Line/Pie/Radar/Funnel), Kanban, TreeSelect, Calendar, Timeline, DiffViewer, JsonViewer, CodeEditor | | Feedback & Status | Alert, Toast, BearLoader, Spinner, Progress, Skeleton, EmptyState, Badge, Rating |


⚡ Performance & Comparison

| Feature | Bear UI | Material UI | Shadcn / Radix | Chakra UI | |---|---|---|---|---| | Bundle Size (tree-shaken) | ~18 kB | ~85 kB | Modular | ~45 kB | | Component Count | 190+ | ~60 | ~45 | ~35 | | Included Icons | 550+ | Addon | Addon (Lucide) | Addon | | AI Chat Primitives | Built-in | No | Community | No | | Zero Runtime CSS-in-JS | Yes (AeroCraft)| No (Emotion) | Yes (Tailwind) | No (Emotion) | | Density Parity | Compact / Normal / Comfortable | Limited | Manual | Limited | | TypeScript Strict | 100% | 100% | 100% | 100% |


🛠️ Testing & Verification

# Run unit & component build
npm run build

# Portal E2E Smoke Tests
cd portal && npm run test:e2e:smoke

# Full Playwright Suite
cd portal && npm run test:e2e

🤝 Community & Contributing

📄 License

Bear UI is open-source software licensed under the MIT License. Built with 💖 by John Yaghobieh & the ForgeStack Team.