Skip to content

Replace decommissioned Vercel app with GitHub API for repository cards - #7

Merged
zonca merged 5 commits into
masterfrom
copilot/fix-repositories-page-issue
Feb 18, 2026
Merged

zonca merged 5 commits into
masterfrom
copilot/fix-repositories-page-issue

Conversation

Copilot AI commented Feb 18, 2026 •

Copy link
Copy Markdown

The repositories page depends on github-readme-stats.vercel.app which is no longer operational, breaking repository card rendering.

Changes

Replaced Vercel service with client-side GitHub API calls

  • Created _includes/repository/repo_card.html template that fetches repository metadata via fetch() from GitHub's public API
  • Renders cards with description, stars, forks, and language with appropriate styling
  • Added CSS grid layout and hover effects in _sass/_base.scss

Error handling and optimization

  • Validates HTTP responses before parsing to handle rate limits and 404s
  • Shares language color map across instances to reduce memory overhead
  • Falls back to error message on API failures
fetch(`https://api.github.com/repos/${repo}`)
  .then(response => {
    if (!response.ok) {
      throw new Error(`GitHub API error: ${response.status}`);
    }
    return response.json();
  })
  .then(data => {
    // Update card with live data
  })

No external dependencies required—uses standard Fetch API and GitHub's unauthenticated public endpoints (60 req/hr sufficient for 2 repos).


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits February 18, 2026 19:25
Co-authored-by: zonca <383090+zonca@users.noreply.github.com>
Co-authored-by: zonca <383090+zonca@users.noreply.github.com>
…iency

Co-authored-by: zonca <383090+zonca@users.noreply.github.com>
Co-authored-by: zonca <383090+zonca@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken repositories page and provide overview Replace decommissioned Vercel app with GitHub API for repository cards Feb 18, 2026
Copilot AI requested a review from zonca February 18, 2026 19:31
@zonca
zonca marked this pull request as ready for review February 18, 2026 19:53
@zonca
zonca merged commit 9895e06 into master Feb 18, 2026
1 check failed
github-actions Bot added a commit that referenced this pull request Feb 18, 2026
Replace decommissioned Vercel app with GitHub API for repository cards [ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants