BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/UI Components/github-contributions-advanced-fetcher

GitHub Contributions Advanced Fetcher

ui-components/github-contributions-advanced-fetcher
FreeBlock

An advanced Github contributions table with client-side fetcher.

Install it

npx shadcn@latest add https://ui.raulcarini.dev/r/github-contributions-advanced-fetcher.json

Source

registry/github-contributions/github-contributions-advanced-fetcher.tsxui.raulcarini.dev/r/github-contributions-advanced-fetcher.json
1"use client";
2
3import * as React from "react";
4import GithubContributionsAdvanced from "@/registry/github-contributions/github-contributions-advanced";
5import { Contribution } from "@/registry/github-contributions/github-contributions";
6import { Grid3x3Icon, TriangleAlertIcon } from "lucide-react";
7
8interface GithubContributionsResponse {
9 total: {
10 [year: string]: number; // e.g., 'lastYear'
11 };
12 contributions: Contribution[];
13}
14
15interface GithubRepo {
16 id: number;
17 name: string;
18 created_at: string;
19}
20
21interface StatusDisplayProps {
22 icon: React.ReactNode;
23 message: string;
24 additionalClasses?: string;
25}
26
27const StatusDisplay: React.FC<StatusDisplayProps> = ({
28 icon,
29 message,
30 additionalClasses,
31}) => {
32 return (
33 <div
34 className={`w-full max-w-[688px] min-h-[160px] border rounded-md flex flex-col items-center justify-center gap-1 ${
35 additionalClasses || ""
36 }`}
37 >
38 {icon}
39 <p className="text-sm text-muted-foreground">{message}</p>
40 </div>
41 );
42};
43
44const GithubContributionsAdvancedFetcher: React.FC<{ username: string }> = ({
45 username,
46}) => {
47 const [loading, setLoading] = React.useState<boolean>(true);
48 const [error, setError] = React.useState<Error | null>(null);
49 const [contributionsData, setContributionsData] = React.useState<
50 Contribution[] | null
51 >(null);
52 const [newPublicRepoCount, setNewPublicRepoCount] = React.useState<
53 number | null
54 >(null);
55
56 React.useEffect(() => {
57 const fetchData = async () => {
58 try {
59 const [contributionsResponse, reposResponse] = await Promise.all([
60 fetch(
61 `https://github-contributions-api.jogruber.de/v4/${username}?y=last`,
62 ),
63 fetch(`https://api.github.com/users/${username}/repos?sort=created`),
64 ]);
65
66 if (!contributionsResponse.ok) {
67 throw new Error("Failed to fetch contributions");
68 }
69
70 if (!reposResponse.ok) {
71 throw new Error("Failed to fetch repositories");
72 }
73
74 const contributionsResult: GithubContributionsResponse =
75 await contributionsResponse.json();
76 const reposResult: GithubRepo[] = await reposResponse.json();
77
78 const oneYearAgo = new Date(Date.now() - 365 * 24 * 60 * 60 * 1000);
79 const publicReposCount = reposResult.filter(
80 (repo) => new Date(repo.created_at) > oneYearAgo,
81 ).length;
82
83 setContributionsData(contributionsResult.contributions);
84// … truncated

What it pulls in

Other registry items

  • https://ui.raulcarini.dev/r/github-contributions-advanced.json

Files it writes

  • registry/github-contributions/github-contributions-advanced-fetcher.tsx

Facts

Registry
UI Components
Type
registry:block
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-09
Last confirmed
yesterday

Go to the source

ui.raulcarini.dev R4ULtv/ui on GitHub Raw registry item This item as JSON

More from UI Components

All 25 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
GitHub Contributionsgithub-contributionsUI ComponentsBlocksFreeno deps
GitHub Contributions Advancedgithub-contributions-advancedUI ComponentsBlocksFreeno deps
GitHub Contributions Fetchergithub-contributions-fetcherUI ComponentsBlocksFreeno deps
GitHub Forksgithub-forksUI ComponentsBlocksFree1 dep
GitHub Issuesgithub-issuesUI ComponentsBlocksFree1 dep
GitHub Pull Requestsgithub-prUI ComponentsBlocksFree1 dep
GitHub Starsgithub-starsUI ComponentsBlocksFree1 dep
GitHub Stars Progressgithub-stars-progressUI ComponentsBlocksFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex