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

@atomchat.io/components-react

v2.0.1

Published

ATOM Design System — React component library

Downloads

221

Readme

@atomchat.io/components-react

ATOM Design System — React component library

📦 Installation

npm install @atomchat.io/components-react @atomchat.io/css
# or
pnpm add @atomchat.io/components-react @atomchat.io/css
# or
yarn add @atomchat.io/components-react @atomchat.io/css

🚀 Usage

Import CSS (once in your app)

// app.tsx or main.tsx
import '@atomchat.io/css';

Import Components

import { Button, Avatar, Stack } from '@atomchat.io/components-react';

function App() {
  return (
    <Stack gap="m">
      <Avatar src="/user.jpg" size="m" badge="online" />
      <Button variant="Primary" size="m">
        Click me
      </Button>
    </Stack>
  );
}

Tree-shakable Imports

// Import only what you need (better for bundle size)
import { Button } from '@atomchat.io/components-react/atoms/Button';
import { Stack } from '@atomchat.io/components-react/layout/Stack';

📚 Components

Atoms (9)

  • Avatar — Profile images, initials, icons with status badges
  • Badge — Notification counters with smart overflow
  • Button — Interactive buttons with loading states (can render as link)
  • Checkbox — Styled checkboxes and radios
  • Chip — Filterable tags with dismiss functionality
  • StatusIcon — Status indicator dots
  • Tag — Non-interactive labels
  • Text — Body text with truncation and animation hooks
  • Toggle — Switch controls with labels and errors

Molecules (1)

  • AvatarGroup — Overlapping avatars with "+N" counter

Layout Primitives (4)

  • Container — Max-width centered layouts
  • Stack — Vertical flex layouts
  • Grid — CSS Grid responsive layouts
  • Inline — Horizontal flex layouts

🎨 Design Tokens

This library depends on @atomchat.io/css which includes all design tokens:

  • 1,110 CSS custom properties
  • Semantic color system
  • Component-scoped tokens
  • Dark theme support via [data-theme="dark"]

⚡ Performance

Built with Vercel React best practices:

  • Tree-shakable ESM exports
  • No runtime dependencies (except React)
  • TypeScript first
  • sideEffects: false for optimal bundling
  • Static SVG icons hoisted to module level
  • forwardRef on all components
  • Polymorphic components without inline definitions

🔗 TypeScript

Fully typed with TypeScript. All components export their prop types:

import type { ButtonProps, AvatarProps } from '@atomchat.io/components-react';

📖 Examples

Button with Icons

<Button variant="Primary" size="m" iconLeft={<SearchIcon />}>
  Search
</Button>

Button as Link

<Button as="a" href="/about" variant="Secondary">
  Learn More
</Button>

Avatar with Badge

<Avatar
  src="/user.jpg"
  alt="John Doe"
  size="m"
  badge="online"
  shape="circle"
/>

Avatar Group

<AvatarGroup
  avatars={[
    { src: '/user1.jpg', alt: 'User 1', badge: 'online' },
    { src: '/user2.jpg', alt: 'User 2' },
    { initials: 'JD', alt: 'John Doe' },
  ]}
  max={3}
  size="s"
/>

Badge with Context

<Badge count={150} context="default" type="info" />
// Renders: "99+"

<Badge count={60} context="inbox" type="inbox" />
// Renders: "+50"

Toggle with Label

<Toggle
  name="notifications"
  checked={isEnabled}
  label="Enable notifications"
  supportiveText="You'll receive updates via email"
  onChange={(e) => setIsEnabled(e.target.checked)}
/>

Text with Truncation

<Text truncate={3} size="body">
  Long paragraph that will be clamped to 3 lines with ellipsis...
</Text>

Responsive Grid

<Grid columns={3} gap="l">
  <Card />
  <Card />
  <Card />
</Grid>

Stack Layout

<Stack gap="m" align="center">
  <Heading />
  <Text />
  <Button />
</Stack>

🛠️ Development

# Build the library
pnpm build

# Watch mode
pnpm dev

# Type check
pnpm type-check

📄 License

MIT