From 3377fa6437e11c5d56d9e25b0062092c88ffb2a1 Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 19 May 2026 09:13:33 +0530 Subject: [PATCH] Add live GitHub star counter to docs header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replaces plain GitHub icon with "Star on [icon] [⭐ count]" pill - Star count fetched from GitHub API with 10-min localStorage cache - Formatted as compact (e.g. 1.2k, 12k) — falls back to ★ if API fails - Matches the landing page header treatment for consistency Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/Header.astro | 55 +++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index 01919dac..094b87a6 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -86,16 +86,24 @@ const currentPath = Astro.url.pathname;