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

@ai-educademy/ai-ui-library

v1.0.0

Published

Shared UI component library for AI Educademy — React, TypeScript, Tailwind CSS, Framer Motion

Readme

🎨 AI UI Library

The shared design system for AI Educademy

npm version License: MIT TypeScript Storybook CI npm downloads

A production-ready React component library built with TypeScript, Tailwind CSS, and Framer Motion. Designed as the single source of truth for UI across all AI Educademy programs.

Published via OIDC Trusted Publishing — zero tokens, fully automated CI/CD.

📖 Live Storybook → · 📦 npm → · 🚀 AI Educademy →


✨ Features

  • 🧩 Composable components — Button, Card, Badge, ThemeToggle, ScrollReveal, and more
  • 🎭 Dark/light mode — Built-in ThemeProvider with system preference detection
  • 🎬 Smooth animations — Framer Motion integration in every interactive component
  • 🎨 Design tokens — CSS custom properties for consistent theming
  • 📦 Tree-shakeable — ESM + CJS dual output via tsup
  • 🔒 TypeScript strict — Full type safety with exported interfaces
  • Accessible — Keyboard-navigable, ARIA-compliant
  • 📖 Storybook — Interactive component playground with docs

📦 Installation

npm install @ai-educademy/ai-ui-library

Peer dependencies (you likely already have these):

npm install react react-dom next

🚀 Quick Start

import { Button, Card, Badge, ThemeProvider, ThemeToggle } from "@ai-educademy/ai-ui-library";
import "@ai-educademy/ai-ui-library/styles.css";

export default function App() {
  return (
    <ThemeProvider>
      <div className="p-8 space-y-6">
        <ThemeToggle />

        <Card variant="glass" hover>
          <Badge variant="success">New</Badge>
          <h2>Welcome to AI Educademy</h2>
          <Button variant="primary" size="lg">
            Start Learning →
          </Button>
        </Card>
      </div>
    </ThemeProvider>
  );
}

🧩 Components

<Button />

Animated button with multiple variants and sizes.

| Prop | Type | Default | Description | | --------- | ------------------------------------------------------- | ----------- | --------------------- | | variant | "primary" \| "secondary" \| "ghost" \| "outline" \| "accent" | "primary" | Visual style | | size | "sm" \| "md" \| "lg" | "md" | Size | | loading | boolean | false | Shows spinner |

<Card />

Container with glassmorphism and hover effects.

| Prop | Type | Default | Description | | --------- | --------------------------------------------------- | ----------- | ---------------------- | | variant | "default" \| "elevated" \| "glass" \| "outline" | "default" | Visual style | | hover | boolean | false | Enable hover animation |

<Badge />

Status indicator / label.

| Prop | Type | Default | Description | | --------- | ----------------------------------------------------------- | ----------- | ------------------------ | | variant | "default" \| "success" \| "warning" \| "error" \| "info" | "default" | Semantic color | | size | "sm" \| "md" | "sm" | Size | | color | string | — | Custom hex color override|

<ThemeProvider /> & <ThemeToggle />

Dark/light mode with system preference detection and localStorage persistence.

<ScrollReveal />

Intersection Observer–powered entrance animations.

<FloatingParticles />

Ambient animated background particles.

<CourseProgress /> & <WelcomeBanner />

Education-specific components for progress tracking and personalized greetings.

🎨 Design Tokens

Import the CSS to get the full token system:

@import "@ai-educademy/ai-ui-library/styles.css";

Available tokens

| Token | Light | Dark | | ----------------------- | -------------- | -------------- | | --color-primary | #6366f1 | #818cf8 | | --color-accent | #f59e0b | #fbbf24 | | --color-bg | #f8fafc | #0f172a | | --color-bg-card | #ffffff | #1e293b | | --color-text | #0f172a | #f1f5f9 | | --color-text-muted | #64748b | #94a3b8 | | --color-border | #e2e8f0 | #334155 |

See src/theme/tokens.css for the complete set.

🏗️ Architecture

ai-ui-library/
├── src/
│   ├── components/     # React components
│   │   ├── Button.tsx
│   │   ├── Card.tsx
│   │   ├── Badge.tsx
│   │   ├── ThemeProvider.tsx
│   │   ├── ThemeToggle.tsx
│   │   ├── ScrollReveal.tsx
│   │   ├── FloatingParticles.tsx
│   │   ├── CourseProgress.tsx
│   │   └── WelcomeBanner.tsx
│   ├── hooks/          # Custom hooks
│   │   ├── useProgress.ts
│   │   └── useGuestProfile.ts
│   ├── theme/          # Design tokens
│   │   └── tokens.css
│   ├── utils/          # Shared utilities
│   └── index.ts        # Public API (barrel export)
├── .storybook/         # Storybook configuration
├── tsup.config.ts      # Build configuration
├── tsconfig.json       # TypeScript configuration
└── package.json

🛠️ Development

# Install dependencies
npm install

# Start Storybook dev server
npm run storybook

# Build the library
npm run build

# Watch mode (rebuild on changes)
npm run dev

🌐 Used By

This library powers every repo in the AI Educademy org:

| Repo | Description | |------|-------------| | ai-platform | Main Next.js app shell | | ai-seeds | 🌱 Level 1: Absolute beginners | | ai-sprouts | 🌿 Level 2: Foundations (coming soon) | | ai-branches | 🌳 Level 3: Applied AI (coming soon) | | ai-canopy | 🏕️ Level 4: Advanced (coming soon) | | ai-forest | 🌲 Level 5: Expert (coming soon) |

🤝 Contributing

We welcome contributions! See our Contributing Guide for details.

  1. Fork the repo
  2. Create your feature branch: git checkout -b feat/amazing-component
  3. Add your component in src/components/
  4. Add a Storybook story
  5. Run npm run build to verify
  6. Submit a PR

📄 License

MIT © AI Educademy