Introducing Nyx UI v1.2.0

GitHub Repo Card

Beautiful GitHub repository cards with customizable themes, activity graphs, and real-time data fetching.

shadcn's avatar

shadcn-ui

Public
Updated 4 months ago

Beautifully designed components built with Radix UI and Tailwind CSS.

Activity
Last 12 weeks
42,000Stars
3,600Forks
1,600Watchers
310Issues
TypeScript
uicomponentstailwindcss+1 more

Installation

Examples

Neo Brutalist Theme

microsoft's avatar

vscode

Public
Updated 4 months ago

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.

Activity
Last 12 weeks
145,000Stars
25,600Forks
3,100Watchers
7,800Issues
TypeScript
editoridetypescript+1 more

Modern Dark Theme

tailwindlabs's avatar

tailwindcss

Public
Updated 4 months ago

A utility-first CSS framework for rapid UI development.

Activity
Last 12 weeks
68,000Stars
3,500Forks
1,800Watchers
95Issues
JavaScript
cssframeworkdesign+1 more

Usage

import { GitHubRepoCard } from "@/components/ui/github-repo-card";
export default function MyComponent() {
  return (
    <div className="w-full max-w-md mx-auto">
      <GitHubRepoCard
        theme="modern-dark"
        repo={{
          name: "ui",
          owner: "shadcn",
          ownerAvatar: "https://avatars.githubusercontent.com/u/124599?v=4",
          description: "Beautifully designed components built with Radix UI and Tailwind CSS.",
          stars: 42000,
          forks: 3600,
          watchers: 1600,
          issues: 310,
          language: "TypeScript",
          updatedAt: "2025-04-07T14:18:57Z",
          topics: ["ui", "components", "tailwindcss", "radix"],
          activityData: [0.4, 0.5, 0.6, 0.8, 0.7, 0.9, 1.0, 0.9, 0.8, 0.7, 0.9, 1.0],
          isPrivate: false,
        }}
      />
    </div>
  );
}

Props

GitHub Repo Card

PropTypeDefaultDescription
repoRepoDataundefinedRequired. Repository data object containing all information to display on the card.
themestringmodern-lightVisual theme for the card. Available options: "modern-dark", "modern-light", "cyberpunk", "neo-brutalist", "aurora", "forest".
classNamestringundefinedAdditional CSS classes to apply to the card container.

RepoData Type

PropertyTypeDefaultDescription
namestring-Repository name (e.g., 'next.js').
ownerstring-Repository owner username or organization name (e.g., 'vercel').
starsnumber-Number of repository stars.
forksnumber-Number of repository forks.
watchersnumber-Number of repository watchers.
issuesnumber-Number of open issues in the repository.
updatedAtstring-ISO date string of when the repository was last updated.
ownerAvatarstringundefinedURL to the owner's avatar image. If not provided, shows initials fallback.
descriptionstringundefinedRepository description. Shows "No description provided" if omitted.
languagestringundefinedPrimary programming language used in the repository. Automatically gets color-coded.
topicsstring[]undefinedArray of repository topics/tags to display as badges (shows first 3, with "+X more" for extras).
activityDatanumber[]undefinedArray of 12 normalized values (0-1) representing repository activity for the graph display.
isPrivatebooleanfalseWhether the repository is private (displays "Private" or "Public" badge).