Introducing Nuvyx UI v1.0.0

Docs
GitHub Profile Card

GitHub Profile Card

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

Profile picture of Mihir Jaiswal

Mihir Jaiswal

mihirjaiswal

Aspiring Web Developer/AI engineer | 🤖 Turning coffee ☕ into code... and occasionally, code into coffee.

Indore, India
Joined Mar 2022
18followers
0following
42repositories

Activity

Top Languages

TypeScript
73%
JavaScript
10%
JyupiterNotebook
9%
3 years on GitHub

Installation

Usage

import { GitHubProfileCard } from "@/components/ui/github-profile-card";
// Using GitHub API (requires username)
<GitHubProfileCard
  username="yourusername"
  themeId="github-light"
/>
 
// Using manual mode (with provided data)
<GitHubProfileCard
  manualMode={true}
  themeId="gradient-blue"
  profileData={{
    login: "johndoe",
    name: "John Doe",
    avatarUrl: "https://avatars.githubusercontent.com/u/12345678?v=4",
    bio: "Frontend developer passionate about React",
    location: "San Francisco, CA",
    followers: 1250,
    following: 320,
    publicRepos: 45,
    createdAt: "2015-03-12T12:00:00Z",
    languages: [
      { name: "JavaScript", color: "#f1e05a", percentage: 45 },
      { name: "TypeScript", color: "#3178c6", percentage: 35 },
      { name: "CSS", color: "#563d7c", percentage: 20 },
    ],
    contributionData: [0.3, 0.5, 0.8, 0.6, 0.9, 1.0, 0.7, 0.5, 0.6, 0.8, 0.7, 0.9],
  }}
/>

Props

GitHub Profile Card

PropTypeDefaultDescription
usernamestringundefinedGitHub username to fetch profile data for. Required when not using manualMode.
githubTokenstringundefinedOptional GitHub API token for increased rate limits (unauthenticated: 60/hr, authenticated: 5,000/hr).
manualModebooleanfalseWhen true, uses provided profileData instead of fetching from GitHub API.
profileDataManualProfileDataundefinedProfile data object for manual mode. Required when manualMode is true.
themeIdstring"github-light"Visual theme for the card. Options: modern-light, gradient-blue, gradient-purple, minimal-black.

ManualProfileData Type

PropertyTypeDefaultDescription
loginstring""GitHub username (login).
namestring""Display name of the GitHub user.
avatarUrlstring""URL to the user's GitHub avatar image.
biostringundefinedUser's GitHub bio (optional).
locationstringundefinedUser's location from their GitHub profile (optional).
followersnumber0Number of GitHub followers.
followingnumber0Number of users the profile is following on GitHub.
publicReposnumber0Number of public repositories.
createdAtstring""ISO date string of when the user joined GitHub.
languagesArray<{ name: string, color: string, percentage: number }>undefinedArray of most used programming languages with name, color, and usage percentage.
contributionDataArray<number>undefinedArray of 12 normalized values (0-1) representing GitHub contribution activity.