GitHub activity
A Calamansi calendar that plots a year of GitHub contributions, with a drawer of the busiest repositories.
0 contributions in 2026
Hover a day for its count, and open the drawer to stack the busiest repositories over the calendar.
Installation
npx shadcn@latest add fujiDevv/calamansi-ui/github-activityHow to use
import { GitHubActivity } from "@/components/ui/github-activity"export function Demo() {return (<GitHubActivity username="fujiDevv" months={12} showMonths />)}
Props
Options you can pass to customize this component.
usernameoptionalstringGitHub login to read the contribution calendar and recent pushes from. Omit it when passing your own data.
contributionsoptionalContribution[]Pre-fetched calendar of { date, count, level } days. Passing it skips the network entirely.
reposoptionalRepoContribution[]Pre-fetched repository stack of { name, count, logo, href } entries.
yearoptionalnumberYear shown in the heading. Defaults to the year the data ends on.
variantoptionalwhitecalamansislatecitrusSurface palette, which also picks the contribution ramp. Calamansi is the default; White mixes its ramp from the ink, so the cells follow the theme.
accentoptionalstringstring[]Contribution ramp for levels 1 to 4. A single colour fades through opacity instead. Defaults to the ramp of the selected variant.
cellSizeoptionalnumberSize of one day cell, in pixels.
monthsoptionalnumberHow many months of history to show once the card is wide enough for them.
showMonthsoptionalbooleanShow the month labels above the grid.
labeloptionalstringLabel on the repository drawer.
defaultOpenoptionalbooleanOpen the repository drawer on mount.
openoptionalbooleanControlled drawer state, paired with onOpenChange.
onOpenChangeoptional(open: boolean) => voidCalled when the drawer opens or closes.
classNameoptionalstringExtra classes merged onto the slab.
Dependencies
Credits
- •Component adapted from rare-ui (https://github.com/swamimalode07/rare-ui)
License & Usage
- •Free to use and modify in personal and commercial projects.
- •Attribution to Calamansi UI is appreciated when using a component.
- •Please do not resell the components as your own kit.