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

discrd-components

v0.1.0

Published

A modern React component library inspired by Aceternity and shadcn/ui

Downloads

6

Readme

Discrd Components

A modern React component library inspired by Aceternity and shadcn/ui, built with TypeScript and designed for beautiful, accessible user interfaces.

Features

  • 🎨 Multiple Variants: Default, destructive, outline, secondary, ghost, link, gradient, and glass
  • 📏 Flexible Sizing: Small, default, large, and icon sizes
  • Accessible: Built with accessibility in mind
  • 🎯 TypeScript: Full TypeScript support with proper type definitions
  • 🎪 Customizable: Easy to customize with CSS classes
  • Lightweight: Minimal dependencies, maximum performance

Installation

npm install discrd-components

Quick Start

import { Button } from "discrd-components";

function App() {
  return (
    <div>
      <Button variant="default">Click me</Button>
      <Button variant="gradient" size="lg">
        Get Started
      </Button>
      <Button variant="outline" size="sm">
        Learn More
      </Button>
    </div>
  );
}

Button Component

The Button component is highly customizable with multiple variants and sizes.

Variants

  • default - Primary button with solid background
  • destructive - Red button for destructive actions
  • outline - Button with border and transparent background
  • secondary - Secondary button with muted background
  • ghost - Transparent button that shows background on hover
  • link - Button that looks like a link
  • gradient - Button with gradient background (inspired by Aceternity)
  • glass - Glassmorphism effect button

Sizes

  • sm - Small button
  • default - Default size
  • lg - Large button
  • icon - Square button for icons

Props

interface ButtonProps {
  variant?:
    | "default"
    | "destructive"
    | "outline"
    | "secondary"
    | "ghost"
    | "link"
    | "gradient"
    | "glass";
  size?: "sm" | "default" | "lg" | "icon";
  asChild?: boolean;
  className?: string;
  // ... all standard button HTML attributes
}

Examples

// Basic usage
<Button>Click me</Button>

// With variants
<Button variant="gradient">Gradient Button</Button>
<Button variant="glass">Glass Button</Button>
<Button variant="destructive">Delete</Button>

// With sizes
<Button size="sm">Small</Button>
<Button size="lg">Large</Button>
<Button size="icon">🚀</Button>

// Combined
<Button variant="gradient" size="lg">
  Get Started
</Button>

// Disabled state
<Button disabled>Disabled</Button>

// With custom className
<Button className="my-custom-class">
  Custom Styled
</Button>

Styling

The components use Tailwind CSS classes. Make sure you have Tailwind CSS configured in your project for the best experience.

CSS Variables

The components rely on CSS custom properties for theming. You can customize these in your CSS:

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 84% 4.9%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
}

Development

# Install dependencies
npm install

# Build the library
npm run build

# Watch for changes
npm run dev

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.