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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@notacoder15/ak-ui-cli

v1.5.3

Published

CLI tool for installing beautiful, customizable React components. Similar to shadcn/ui but for AK UI components.

Downloads

38

Readme

AK UI CLI

A command-line interface for installing beautiful, customizable React components. Similar to shadcn/ui but for AK UI components.

Features

Beautiful Components - 11 professionally designed button and text components
🚀 Easy Installation - One command to install components with all dependencies
📦 Smart Dependencies - Automatically installs required npm packages
🎨 CSS Management - Handles Tailwind classes and CSS variables automatically
🔧 Project Detection - Works with Next.js and React projects
📱 TypeScript Ready - Full TypeScript support with proper types

Installation

# Install globally
npm install -g @notacoder15/ak-ui-cli

# Or use with npx (recommended)
npx @notacoder15/ak-ui-cli --help

Quick Start

  1. Initialize your project

    npx @notacoder15/ak-ui-cli init
  2. Install a component

    npx @notacoder15/ak-ui-cli add copy-button
  3. Use in your app

    import { CopyButton } from "@/components/ui/buttons/copy"
       
    export default function App() {
      return (
        <CopyButton content="Hello World!" variant="default" />
      )
    }

Commands

ak-ui init

Initialize your project with AK UI configuration.

npx ak-ui init

What it does:

  • Detects your project type (Next.js/React)
  • Creates components.json configuration
  • Creates ak-ui.json component registry
  • Installs utility dependencies (clsx, tailwind-merge)
  • Sets up the cn utility function
  • Creates component directory structure

ak-ui add <component>

Install a component with all its dependencies.

npx @notacoder15/ak-ui-cli add button
npx @notacoder15/ak-ui-cli add copy-button
npx @notacoder15/ak-ui-cli add github-stars-button

What it does:

  • Downloads component files to your project
  • Installs required npm dependencies
  • Handles internal component dependencies
  • Injects required CSS variables (when needed)
  • Creates directory structure if missing

Example:

# Install the GitHub Stars Button
npx @notacoder15/ak-ui-cli add github-stars-button

# This will install:
# - GitHubStarsButton component
# - SlidingNumber component (dependency)
# - Required npm packages: motion, lucide-react, react-use-measure

ak-ui list [--category <category>]

List all available components.

# List all components
npx @notacoder15/ak-ui-cli list

# List only button components
npx @notacoder15/ak-ui-cli list --category buttons

# List only text components
npx @notacoder15/ak-ui-cli list --category text

ak-ui remove <component> [--force]

Remove a component from your project.

# Remove with confirmation prompt
npx @notacoder15/ak-ui-cli remove copy-button

# Remove without confirmation
npx @notacoder15/ak-ui-cli remove copy-button --force

What it does:

  • Removes component files
  • Cleans up empty directories
  • Removes component-specific CSS
  • Preserves shared dependencies (with warning)

Available Components

Buttons (10 components)

| Component | Description | CLI Command | |-----------|-------------|-------------| | Button | Base button with variants and sizes | npx @notacoder15/ak-ui-cli add button | | CopyButton | Copy-to-clipboard with feedback | npx @notacoder15/ak-ui-cli add copy-button | | FlipButton | 3D flip animation on hover | npx @notacoder15/ak-ui-cli add flip-button | | GitHubStarsButton | GitHub stars with animated counter | npx @notacoder15/ak-ui-cli add github-stars-button | | IconButton | Circular button with interactive effects | npx @notacoder15/ak-ui-cli add icon-button | | InputButton | Transform between button and input | npx @notacoder15/ak-ui-cli add input-button | | LiquidButton | Liquid fill animation on hover | npx @notacoder15/ak-ui-cli add liquid-button | | LiquidGlassButton | Glass morphism with backdrop blur | npx @notacoder15/ak-ui-cli add liquid-glass-button | | MagneticButton | Magnetic attraction to mouse | npx @notacoder15/ak-ui-cli add magnetic-button | | RippleButton | Ripple effect from click point | npx @notacoder15/ak-ui-cli add ripple-button |

Text (1 component)

| Component | Description | CLI Command | |-----------|-------------|-------------| | SlidingNumber | Animated number transitions | npx @notacoder15/ak-ui-cli add sliding-number |

Project Structure

After running ak-ui init, your project will have:

your-project/
├── components.json          # shadcn/ui compatible config
├── ak-ui.json              # AK UI component registry
├── src/
│   ├── components/ui/      # Components installed here
│   │   ├── button.tsx
│   │   └── buttons/
│   │       ├── copy.tsx
│   │       └── ...
│   └── lib/
│       └── utils.ts        # cn utility function

Dependencies

The CLI automatically manages these dependencies:

Core Dependencies (always installed)

  • clsx - Conditional CSS classes
  • tailwind-merge - Merge Tailwind classes

Component Dependencies (installed as needed)

  • motion (framer-motion) - Animations (9/10 button components)
  • class-variance-authority - Component variants (6/10 components)
  • lucide-react - Icons (4/10 components)
  • @radix-ui/react-slot - Base Button component
  • react-use-measure - SlidingNumber component

CSS Requirements

Most components use pure Tailwind CSS. Only 2 components require CSS variables:

LiquidButton

Requires CSS variables for liquid animation effects.

IconButton

Requires CSS variables for color customization.

The CLI automatically injects these CSS variables into your globals.css when needed.

Configuration

components.json

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "default",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.ts",
    "css": "src/app/globals.css",
    "baseColor": "slate",
    "cssVariables": true,
    "prefix": ""
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  }
}

Path Aliases

All components use @/ path aliases. Make sure your tsconfig.json includes:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

Examples

Basic Button Usage

import { Button } from "@/components/ui/buttons/button"

export default function Example() {
  return (
    <div className="space-x-4">
      <Button variant="default">Default</Button>
      <Button variant="destructive">Destructive</Button>
      <Button variant="outline">Outline</Button>
      <Button variant="secondary">Secondary</Button>
      <Button variant="ghost">Ghost</Button>
      <Button variant="link">Link</Button>
    </div>
  )
}

Copy Button with Callback

import { CopyButton } from "@/components/ui/buttons/copy"

export default function Example() {
  return (
    <CopyButton 
      content="npm install @ak-ui/cli"
      variant="outline"
      onCopy={() => console.log("Copied!")}
    />
  )
}

GitHub Stars Button

import { GitHubStarsButton } from "@/components/ui/buttons/github-stars"

export default function Example() {
  return (
    <GitHubStarsButton 
      username="vercel" 
      repo="next.js" 
      formatted={true}
    />
  )
}

Magnetic Button with Custom Settings

import { MagneticButton } from "@/components/ui/buttons/magnetic"

export default function Example() {
  return (
    <MagneticButton 
      strength={0.5}
      range={150}
      variant="default"
    >
      Magnetic Effect
    </MagneticButton>
  )
}

Troubleshooting

Common Issues

Error: Cannot find module '@/lib/utils'

  • Run npx ak-ui init to set up the utils file and path aliases

Error: Module not found: motion

  • The CLI should auto-install dependencies. Try: npm install motion

Components not styled correctly

  • Ensure Tailwind CSS is properly configured
  • Check that your globals.css imports Tailwind: @tailwind base; @tailwind components; @tailwind utilities;

TypeScript errors

  • Make sure @/ path aliases are configured in tsconfig.json
  • Run npx @notacoder15/ak-ui-cli init to set up proper configuration

Getting Help

  • Check the GitHub repository for issues
  • Review component examples in the /src/app/buttons directory
  • Use npx @notacoder15/ak-ui-cli --help for command reference

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

MIT License - see LICENSE for details.