OpenLake/OpenLake--Website

Refactor: Replace Static GitHub Stats with Dynamic Data

Open

#7 opened on Apr 20, 2025

View on GitHub
 (1 comment) (0 reactions) (1 assignee)JavaScript (12 forks)auto 404
DevLabsenhancementhelp wanted

Repository metrics

Stars
 (2 stars)
PR merge metrics
 (PR metrics pending)

Description

Issue

Currently, the GitHub statistics displayed are hardcoded and do not reflect real-time data. We need to replace these static values with dynamic stats by creating a reusable hook.

Task

  • Create a custom hook useStats to fetch and return live GitHub stats.
  • Replace the existing static values with data from the hook.
  • Ensure fallback values or error handling is in place if the API fails.

Reference

Image

Contributor guide