Skip to content

A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.

fix(readme): self-host the star history chart (#54)

Sachin Sharmafdfbb89c19cb
diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml
new file mode 100644
index 0000000..3729ef1
--- /dev/null
+++ b/.github/workflows/star-history.yml
@@ -0,0 +1,45 @@
+name: star-history
+
+# Regenerates the self-hosted star-history chart committed at assets/star-history-*.svg.
+#
+# Why self-hosted: the third-party chart services the README used previously
+# (star-history.com, starchart.cc) return 500s and rate-limit errors, which
+# silently blanks the chart. Rendering from GitHub's own API removes that
+# runtime dependency — the README shows a committed asset that always loads.
+#
+# No external dependencies — stdlib Python plus the preinstalled gh CLI.
+
+on:
+ schedule:
+ - cron: "17 4 * * 1" # Mondays, 04:17 UTC
+ workflow_dispatch: # manual refresh
+
+permissions:
+ contents: write
+
+concurrency:
+ group: star-history
+ cancel-in-progress: false
+
+jobs:
+ refresh:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Regenerate chart
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: python3 scripts/gen_star_history.py
+
+ - name: Commit if changed
+ run: |
+ if git diff --quiet -- assets/star-history-light.svg assets/star-history-dark.svg; then
+ echo "chart unchanged — nothing to commit"
+ exit 0
+ fi
+ git config user.name "github-actions[bot]"
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git add assets/star-history-light.svg assets/star-history-dark.svg
+ git commit -m "chore(assets): refresh star history chart"
+ git push
diff --git a/README.md b/README.md
index 3bc0303..31b027a 100644
--- a/README.md
+++ b/README.md
@@ -116,14 +116,17 @@ pwsh ./scripts/install.ps1 -All -BurpMcp
## Star History
-<a href="https://www.star-history.com/?repos=elementalsouls%2FClaude-BugHunter&type=date&legend=top-left">
+<a href="https://github.com/elementalsouls/Claude-BugHunter/stargazers">
<picture>
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=elementalsouls/Claude-BugHunter&type=date&theme=dark&legend=top-left" />
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=elementalsouls/Claude-BugHunter&type=date&legend=top-left" />
- <img alt="Star History Chart" src="https://api.star-history.com/chart?repos=elementalsouls/Claude-BugHunter&type=date&legend=top-left" />
+ <source media="(prefers-color-scheme: dark)" srcset="assets/star-history-dark.svg" />
+ <source media="(prefers-color-scheme: light)" srcset="assets/star-history-light.svg" />
+ <img alt="Star history chart for Claude-BugHunter" src="assets/star-history-light.svg" width="840" />
</picture>
</a>
+<sub>Chart is self-hosted — regenerate with `python3 scripts/gen_star_history.py` (needs `gh auth login`).
+Refreshes automatically each Monday via `.github/workflows/star-history.yml`.</sub>
+
---
diff --git a/assets/star-history-dark.svg b/assets/star-history-dark.svg
new file mode 100644
index 0000000..f8b8503
--- /dev/null
+++ b/assets/star-history-dark.svg
@@ -0,0 +1,22 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="840" height="400" viewBox="0 0 840 400" role="img" aria-label="Star history for elementalsouls/Claude-BugHunter: 3257 stars as of 31 Jul 2026">
+<title>Star history for elementalsouls/Claude-BugHunter</title>
+<defs><linearGradient id="fill-dark" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#ff2d4f" stop-opacity="0.22"/><stop offset="100%" stop-color="#ff2d4f" stop-opacity="0.02"/></linearGradient></defs>
+<line x1="62" y1="356.0" x2="810" y2="356.0" stroke="#2a313c" stroke-width="1"/>
+<text x="50" y="360.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#9198a1">0</text>
+<line x1="62" y1="274.5" x2="810" y2="274.5" stroke="#2a313c" stroke-width="1"/>
+<text x="50" y="278.5" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#9198a1">1,000</text>
+<line x1="62" y1="193.0" x2="810" y2="193.0" stroke="#2a313c" stroke-width="1"/>
+<text x="50" y="197.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#9198a1">2,000</text>
+<line x1="62" y1="111.5" x2="810" y2="111.5" stroke="#2a313c" stroke-width="1"/>
+<text x="50" y="115.5" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#9198a1">3,000</text>
+<line x1="62" y1="30.0" x2="810" y2="30.0" stroke="#2a313c" stroke-width="1"/>
+<text x="50" y="34.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#9198a1">4,000</text>
+<text x="58.0" y="378.0" text-anchor="start" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" fill="#9198a1">19 May 2026</text>
+<text x="441.1" y="378.0" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" fill="#9198a1">25 Jun 2026</text>
+<text x="814.0" y="378.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" fill="#9198a1">31 Jul 2026</text>
+<path d="M62.0,355.2 L72.2,346.1 L82.5,339.4 L92.7,336.9 L103.0,327.1 L113.2,302.5 L123.5,282.2 L133.7,267.9 L144.0,259.5 L154.2,252.3 L164.5,248.2 L174.7,245.7 L185.0,241.1 L195.2,233.8 L205.5,228.8 L215.7,225.9 L225.9,223.2 L236.2,221.1 L246.4,219.2 L256.7,214.3 L266.9,211.2 L277.2,209.1 L287.4,205.2 L297.7,203.2 L307.9,196.4 L318.2,180.6 L328.4,167.1 L338.7,160.4 L348.9,156.9 L359.2,152.7 L369.4,149.7 L379.6,147.7 L389.9,146.6 L400.1,145.2 L410.4,142.1 L420.6,140.4 L430.9,138.8 L441.1,136.1 L451.4,134.6 L461.6,133.8 L471.9,132.9 L482.1,130.6 L492.4,128.9 L502.6,127.8 L512.8,125.9 L523.1,125.2 L533.3,124.2 L543.6,123.0 L553.8,121.9 L564.1,120.7 L574.3,119.7 L584.6,118.5 L594.8,117.5 L605.1,116.3 L615.3,115.9 L625.6,115.5 L635.8,115.0 L646.1,114.7 L656.3,114.2 L666.5,113.6 L676.8,113.3 L687.0,112.9 L697.3,112.4 L707.5,111.6 L717.8,110.6 L728.0,109.8 L738.3,108.6 L748.5,108.4 L758.8,103.2 L769.0,94.5 L779.3,93.3 L789.5,92.3 L799.8,91.4 L810.0,90.6 L810.0,356 L62.0,356 Z" fill="url(#fill-dark)"/>
+<path d="M62.0,355.2 L72.2,346.1 L82.5,339.4 L92.7,336.9 L103.0,327.1 L113.2,302.5 L123.5,282.2 L133.7,267.9 L144.0,259.5 L154.2,252.3 L164.5,248.2 L174.7,245.7 L185.0,241.1 L195.2,233.8 L205.5,228.8 L215.7,225.9 L225.9,223.2 L236.2,221.1 L246.4,219.2 L256.7,214.3 L266.9,211.2 L277.2,209.1 L287.4,205.2 L297.7,203.2 L307.9,196.4 L318.2,180.6 L328.4,167.1 L338.7,160.4 L348.9,156.9 L359.2,152.7 L369.4,149.7 L379.6,147.7 L389.9,146.6 L400.1,145.2 L410.4,142.1 L420.6,140.4 L430.9,138.8 L441.1,136.1 L451.4,134.6 L461.6,133.8 L471.9,132.9 L482.1,130.6 L492.4,128.9 L502.6,127.8 L512.8,125.9 L523.1,125.2 L533.3,124.2 L543.6,123.0 L553.8,121.9 L564.1,120.7 L574.3,119.7 L584.6,118.5 L594.8,117.5 L605.1,116.3 L615.3,115.9 L625.6,115.5 L635.8,115.0 L646.1,114.7 L656.3,114.2 L666.5,113.6 L676.8,113.3 L687.0,112.9 L697.3,112.4 L707.5,111.6 L717.8,110.6 L728.0,109.8 L738.3,108.6 L748.5,108.4 L758.8,103.2 L769.0,94.5 L779.3,93.3 L789.5,92.3 L799.8,91.4 L810.0,90.6" fill="none" stroke="#ff2d4f" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
+<circle cx="810.0" cy="90.6" r="4.5" fill="#ff2d4f"/>
+<text x="806.0" y="78.6" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="15" font-weight="600" font-variant-numeric="tabular-nums" fill="#e6edf3">3,257 stars</text>
+<text x="62" y="20" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="13" font-weight="600" fill="#e6edf3">elementalsouls/Claude-BugHunter — stars over time</text>
+</svg>
\ No newline at end of file
diff --git a/assets/star-history-light.svg b/assets/star-history-light.svg
new file mode 100644
index 0000000..447e9dc
--- /dev/null
+++ b/assets/star-history-light.svg
@@ -0,0 +1,22 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="840" height="400" viewBox="0 0 840 400" role="img" aria-label="Star history for elementalsouls/Claude-BugHunter: 3257 stars as of 31 Jul 2026">
+<title>Star history for elementalsouls/Claude-BugHunter</title>
+<defs><linearGradient id="fill-light" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="#c81e3c" stop-opacity="0.22"/><stop offset="100%" stop-color="#c81e3c" stop-opacity="0.02"/></linearGradient></defs>
+<line x1="62" y1="356.0" x2="810" y2="356.0" stroke="#d1d9e0" stroke-width="1"/>
+<text x="50" y="360.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#59636e">0</text>
+<line x1="62" y1="274.5" x2="810" y2="274.5" stroke="#d1d9e0" stroke-width="1"/>
+<text x="50" y="278.5" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#59636e">1,000</text>
+<line x1="62" y1="193.0" x2="810" y2="193.0" stroke="#d1d9e0" stroke-width="1"/>
+<text x="50" y="197.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#59636e">2,000</text>
+<line x1="62" y1="111.5" x2="810" y2="111.5" stroke="#d1d9e0" stroke-width="1"/>
+<text x="50" y="115.5" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#59636e">3,000</text>
+<line x1="62" y1="30.0" x2="810" y2="30.0" stroke="#d1d9e0" stroke-width="1"/>
+<text x="50" y="34.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" font-variant-numeric="tabular-nums" fill="#59636e">4,000</text>
+<text x="58.0" y="378.0" text-anchor="start" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" fill="#59636e">19 May 2026</text>
+<text x="441.1" y="378.0" text-anchor="middle" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" fill="#59636e">25 Jun 2026</text>
+<text x="814.0" y="378.0" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="12" fill="#59636e">31 Jul 2026</text>
+<path d="M62.0,355.2 L72.2,346.1 L82.5,339.4 L92.7,336.9 L103.0,327.1 L113.2,302.5 L123.5,282.2 L133.7,267.9 L144.0,259.5 L154.2,252.3 L164.5,248.2 L174.7,245.7 L185.0,241.1 L195.2,233.8 L205.5,228.8 L215.7,225.9 L225.9,223.2 L236.2,221.1 L246.4,219.2 L256.7,214.3 L266.9,211.2 L277.2,209.1 L287.4,205.2 L297.7,203.2 L307.9,196.4 L318.2,180.6 L328.4,167.1 L338.7,160.4 L348.9,156.9 L359.2,152.7 L369.4,149.7 L379.6,147.7 L389.9,146.6 L400.1,145.2 L410.4,142.1 L420.6,140.4 L430.9,138.8 L441.1,136.1 L451.4,134.6 L461.6,133.8 L471.9,132.9 L482.1,130.6 L492.4,128.9 L502.6,127.8 L512.8,125.9 L523.1,125.2 L533.3,124.2 L543.6,123.0 L553.8,121.9 L564.1,120.7 L574.3,119.7 L584.6,118.5 L594.8,117.5 L605.1,116.3 L615.3,115.9 L625.6,115.5 L635.8,115.0 L646.1,114.7 L656.3,114.2 L666.5,113.6 L676.8,113.3 L687.0,112.9 L697.3,112.4 L707.5,111.6 L717.8,110.6 L728.0,109.8 L738.3,108.6 L748.5,108.4 L758.8,103.2 L769.0,94.5 L779.3,93.3 L789.5,92.3 L799.8,91.4 L810.0,90.6 L810.0,356 L62.0,356 Z" fill="url(#fill-light)"/>
+<path d="M62.0,355.2 L72.2,346.1 L82.5,339.4 L92.7,336.9 L103.0,327.1 L113.2,302.5 L123.5,282.2 L133.7,267.9 L144.0,259.5 L154.2,252.3 L164.5,248.2 L174.7,245.7 L185.0,241.1 L195.2,233.8 L205.5,228.8 L215.7,225.9 L225.9,223.2 L236.2,221.1 L246.4,219.2 L256.7,214.3 L266.9,211.2 L277.2,209.1 L287.4,205.2 L297.7,203.2 L307.9,196.4 L318.2,180.6 L328.4,167.1 L338.7,160.4 L348.9,156.9 L359.2,152.7 L369.4,149.7 L379.6,147.7 L389.9,146.6 L400.1,145.2 L410.4,142.1 L420.6,140.4 L430.9,138.8 L441.1,136.1 L451.4,134.6 L461.6,133.8 L471.9,132.9 L482.1,130.6 L492.4,128.9 L502.6,127.8 L512.8,125.9 L523.1,125.2 L533.3,124.2 L543.6,123.0 L553.8,121.9 L564.1,120.7 L574.3,119.7 L584.6,118.5 L594.8,117.5 L605.1,116.3 L615.3,115.9 L625.6,115.5 L635.8,115.0 L646.1,114.7 L656.3,114.2 L666.5,113.6 L676.8,113.3 L687.0,112.9 L697.3,112.4 L707.5,111.6 L717.8,110.6 L728.0,109.8 L738.3,108.6 L748.5,108.4 L758.8,103.2 L769.0,94.5 L779.3,93.3 L789.5,92.3 L799.8,91.4 L810.0,90.6" fill="none" stroke="#c81e3c" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
+<circle cx="810.0" cy="90.6" r="4.5" fill="#c81e3c"/>
+<text x="806.0" y="78.6" text-anchor="end" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="15" font-weight="600" font-variant-numeric="tabular-nums" fill="#1f2328">3,257 stars</text>
+<text x="62" y="20" font-family="system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif" font-size="13" font-weight="600" fill="#1f2328">elementalsouls/Claude-BugHunter — stars over time</text>
+</svg>
\ No newline at end of file
diff --git a/scripts/gen_star_history.py b/scripts/gen_star_history.py
new file mode 100755
index 0000000..f748345
--- /dev/null
+++ b/scripts/gen_star_history.py
@@ -0,0 +1,177 @@
+#!/usr/bin/env python3
+"""Generate a self-hosted star-history chart (light + dark SVG).
+
+Why this exists: star-history.com and starchart.cc are third-party services that
+return 500s and rate-limit errors, which silently blanks the README chart. This
+renders the same chart from GitHub's own API and commits the result, so the
+README has no external runtime dependency.
+
+Usage:
+ gh auth login # once
+ python3 scripts/gen_star_history.py [owner/repo]
+
+Writes assets/star-history-light.svg and assets/star-history-dark.svg.
+"""
+import json
+import subprocess
+import sys
+from datetime import datetime, timezone
+from pathlib import Path
+
+REPO = sys.argv[1] if len(sys.argv) > 1 else "elementalsouls/Claude-BugHunter"
+OUT = Path(__file__).resolve().parent.parent / "assets"
+
+# Validated with the dataviz palette validator against GitHub's real surfaces:
+# light #ffffff, dark #0d1117 — lightness band, chroma floor and contrast all PASS.
+THEMES = {
+ "light": dict(accent="#c81e3c", ink="#1f2328", muted="#59636e",
+ grid="#d1d9e0", surface="none"),
+ "dark": dict(accent="#ff2d4f", ink="#e6edf3", muted="#9198a1",
+ grid="#2a313c", surface="none"),
+}
+
+W, H = 840, 400
+PAD_L, PAD_R, PAD_T, PAD_B = 62, 30, 30, 44
+
+
+def fetch_stars(repo):
+ """Page GitHub's stargazers API for starred_at timestamps."""
+ stamps, page = [], 1
+ while True:
+ out = subprocess.run(
+ ["gh", "api", f"repos/{repo}/stargazers?per_page=100&page={page}",
+ "-H", "Accept: application/vnd.github.star+json", "--jq", ".[].starred_at"],
+ capture_output=True, text=True,
+ )
+ got = [l for l in out.stdout.split("\n") if l.strip()]
+ if not got:
+ break
+ stamps.extend(got)
+ page += 1
+ if page > 400: # GitHub pagination ceiling
+ break
+ return sorted(stamps)
+
+
+def build_series(stamps):
+ """Cumulative count per day."""
+ days = {}
+ for s in stamps:
+ d = s[:10]
+ days[d] = days.get(d, 0) + 1
+ series, total = [], 0
+ for d in sorted(days):
+ total += days[d]
+ series.append((datetime.strptime(d, "%Y-%m-%d").replace(tzinfo=timezone.utc), total))
+ return series
+
+
+def nice_ticks(hi, count=4):
+ """Round y-axis ticks to a readable step."""
+ raw = hi / count
+ mag = 10 ** (len(str(int(raw))) - 1)
+ for m in (1, 2, 2.5, 5, 10):
+ if mag * m >= raw:
+ step = mag * m
+ break
+ else:
+ step = mag * 10
+ # the top tick must be >= hi, or the series escapes the plot area
+ ticks, v = [], 0
+ while v < hi:
+ ticks.append(int(v))
+ v += step
+ ticks.append(int(v))
+ return ticks
+
+
+def esc(s):
+ return s.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")
+
+
+def render(series, theme_name):
+ t = THEMES[theme_name]
+ t0, t1 = series[0][0], series[-1][0]
+ span = max((t1 - t0).total_seconds(), 1)
+ hi = series[-1][1]
+ ticks = nice_ticks(hi)
+ ymax = ticks[-1]
+
+ def X(dt):
+ return PAD_L + (dt - t0).total_seconds() / span * (W - PAD_L - PAD_R)
+
+ def Y(v):
+ return H - PAD_B - (v / ymax) * (H - PAD_T - PAD_B)
+
+ pts = [(X(d), Y(v)) for d, v in series]
+ line = "M" + " L".join(f"{x:.1f},{y:.1f}" for x, y in pts)
+ area = line + f" L{pts[-1][0]:.1f},{H - PAD_B} L{pts[0][0]:.1f},{H - PAD_B} Z"
+
+ font = ("system-ui,-apple-system,'Segoe UI',Roboto,"
+ "'Helvetica Neue',Arial,sans-serif")
+ o = []
+ a = o.append
+ a(f'<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}" '
+ f'viewBox="0 0 {W} {H}" role="img" '
+ f'aria-label="Star history for {esc(REPO)}: {hi} stars as of {t1:%d %b %Y}">')
+ a(f'<title>Star history for {esc(REPO)}</title>')
+ a(f'<defs><linearGradient id="fill-{theme_name}" x1="0" y1="0" x2="0" y2="1">'
+ f'<stop offset="0%" stop-color="{t["accent"]}" stop-opacity="0.22"/>'
+ f'<stop offset="100%" stop-color="{t["accent"]}" stop-opacity="0.02"/>'
+ f'</linearGradient></defs>')
+
+ # recessive grid + y labels (tabular figures so digits align)
+ for v in ticks:
+ y = Y(v)
+ a(f'<line x1="{PAD_L}" y1="{y:.1f}" x2="{W - PAD_R}" y2="{y:.1f}" '
+ f'stroke="{t["grid"]}" stroke-width="1"/>')
+ a(f'<text x="{PAD_L - 12}" y="{y + 4:.1f}" text-anchor="end" font-family="{font}" '
+ f'font-size="12" font-variant-numeric="tabular-nums" fill="{t["muted"]}">{v:,}</text>')
+
+ # x labels: first, middle, last — anchored so the outer two never overrun the canvas
+ xlabels = ((series[0][0], "start"), (series[len(series) // 2][0], "middle"), (t1, "end"))
+ for dt, anchor in xlabels:
+ x = X(dt)
+ if anchor == "start":
+ x -= 4
+ elif anchor == "end":
+ x += 4
+ a(f'<text x="{x:.1f}" y="{H - PAD_B + 22:.1f}" text-anchor="{anchor}" '
+ f'font-family="{font}" font-size="12" fill="{t["muted"]}">{dt:%d %b %Y}</text>')
+
+ a(f'<path d="{area}" fill="url(#fill-{theme_name})"/>')
+ a(f'<path d="{line}" fill="none" stroke="{t["accent"]}" stroke-width="2" '
+ f'stroke-linejoin="round" stroke-linecap="round"/>')
+
+ # emphasised endpoint — the only labelled point
+ ex, ey = pts[-1]
+ a(f'<circle cx="{ex:.1f}" cy="{ey:.1f}" r="4.5" fill="{t["accent"]}"/>')
+ lx = min(ex + 12, W - PAD_R - 4)
+ anchor = "end" if ex + 12 > W - PAD_R - 60 else "start"
+ a(f'<text x="{lx:.1f}" y="{max(ey - 12, PAD_T + 12):.1f}" text-anchor="{anchor}" '
+ f'font-family="{font}" font-size="15" font-weight="600" '
+ f'font-variant-numeric="tabular-nums" fill="{t["ink"]}">{hi:,} stars</text>')
+
+ # title names the series, so no legend box is needed
+ a(f'<text x="{PAD_L}" y="20" font-family="{font}" font-size="13" '
+ f'font-weight="600" fill="{t["ink"]}">{esc(REPO)} — stars over time</text>')
+ a("</svg>")
+ return "\n".join(o)
+
+
+def main():
+ print(f"fetching stargazers for {REPO} …")
+ stamps = fetch_stars(REPO)
+ if not stamps:
+ sys.exit("no stargazer data returned — is `gh` authenticated?")
+ series = build_series(stamps)
+ print(f" {len(stamps):,} stars, {series[0][0]:%Y-%m-%d} → {series[-1][0]:%Y-%m-%d}")
+ OUT.mkdir(exist_ok=True)
+ for name in THEMES:
+ p = OUT / f"star-history-{name}.svg"
+ p.write_text(render(series, name))
+ print(f" wrote {p.relative_to(OUT.parent)} ({p.stat().st_size:,} bytes)")
+
+
+if __name__ == "__main__":
+ main()