Skip to content

Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.

Generate the star history chart in-repo

momenbasel43442fe23c6b
diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml
new file mode 100644
index 0000000..405c475
--- /dev/null
+++ b/.github/workflows/star-history.yml
@@ -0,0 +1,44 @@
+name: star-history
+
+on:
+ schedule:
+ - cron: '41 4 * * *'
+ workflow_dispatch:
+ push:
+ paths:
+ - 'scripts/star-history.mjs'
+ - '.github/workflows/star-history.yml'
+
+permissions:
+ contents: write
+
+concurrency:
+ group: star-history
+ cancel-in-progress: true
+
+jobs:
+ render:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '24'
+
+ - name: Render star history
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: node scripts/star-history.mjs
+
+ - name: Commit if changed
+ run: |
+ if git diff --quiet -- assets/star-history.svg assets/star-history-dark.svg; then
+ echo "no change"
+ 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.svg assets/star-history-dark.svg
+ git commit -m 'chore: refresh star history'
+ git push
diff --git a/README.md b/README.md
index 3cd40ea..678bcdd 100644
--- a/README.md
+++ b/README.md
@@ -254,11 +254,11 @@ Especially welcome:
If PureMac saved you some disk space, a star helps other people find it.
-<a href="https://star-history.com/#momenbasel/PureMac&Date">
+<a href="https://github.com/momenbasel/PureMac/stargazers">
<picture>
- <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=momenbasel/PureMac&type=Date&theme=dark" />
- <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=momenbasel/PureMac&type=Date" />
- <img alt="PureMac star history chart" src="https://api.star-history.com/svg?repos=momenbasel/PureMac&type=Date" width="720" />
+ <source media="(prefers-color-scheme: dark)" srcset="assets/star-history-dark.svg" />
+ <source media="(prefers-color-scheme: light)" srcset="assets/star-history.svg" />
+ <img alt="PureMac star history chart" src="assets/star-history.svg" width="720" />
</picture>
</a>
diff --git a/assets/star-history-dark.svg b/assets/star-history-dark.svg
new file mode 100644
index 0000000..3419897
--- /dev/null
+++ b/assets/star-history-dark.svg
@@ -0,0 +1,37 @@
+<svg viewBox="0 0 760 420" width="760" height="420" fill="none" xmlns="http://www.w3.org/2000/svg">
+
+ <defs>
+ <linearGradient id="fill-starhistorydarksvg" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stop-color="#3fb950" stop-opacity="0.3"/>
+ <stop offset="100%" stop-color="#3fb950" stop-opacity="0"/>
+ </linearGradient>
+ </defs>
+
+ <rect x="0.5" y="0.5" width="759" height="419" rx="8" fill="#0d1117" stroke="#30363d" stroke-width="1"/>
+
+ <text x="24" y="32" fill="#e6edf3" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="15" font-weight="600">momenbasel/PureMac</text>
+ <text x="736" y="32" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="12" text-anchor="end">6.1k stars</text>
+
+ <line x1="62" y1="368" x2="736" y2="368" stroke="#21262d" stroke-width="1"/>
+ <text x="52" y="372" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">0</text>
+ <line x1="62" y1="290.5" x2="736" y2="290.5" stroke="#21262d" stroke-width="1"/>
+ <text x="52" y="294.5" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">2k</text>
+ <line x1="62" y1="213" x2="736" y2="213" stroke="#21262d" stroke-width="1"/>
+ <text x="52" y="217" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">4k</text>
+ <line x1="62" y1="135.5" x2="736" y2="135.5" stroke="#21262d" stroke-width="1"/>
+ <text x="52" y="139.5" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">6k</text>
+ <line x1="62" y1="58" x2="736" y2="58" stroke="#21262d" stroke-width="1"/>
+ <text x="52" y="62" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">8k</text>
+
+ <path d="M62 367.96 L66.82 366.88 L69 365.79 L71.26 364.71 L78.28 363.62 L78.52 362.54 L79.01 361.45 L79.5 360.33 L80 359.24 L80.41 358.16 L80.72 357.07 L81.3 355.99 L82.15 354.9 L82.7 353.82 L83.26 352.73 L84.13 351.65 L84.39 350.56 L84.63 349.48 L84.86 348.39 L85.11 347.31 L85.31 346.22 L85.49 345.1 L85.68 344.01 L85.79 342.93 L85.93 341.84 L86.09 340.76 L86.24 339.67 L86.39 338.59 L86.55 337.5 L86.73 336.42 L86.98 335.33 L87.21 334.25 L87.33 333.16 L87.46 332.08 L87.62 330.99 L87.74 329.87 L87.88 328.79 L87.99 327.7 L88.09 326.62 L88.21 325.53 L88.34 324.45 L88.49 323.36 L88.71 322.27 L88.87 321.19 L88.99 320.11 L89.16 319.02 L89.34 317.94 L89.57 316.85 L89.88 315.73 L90.26 314.64 L90.66 313.56 L91.19 312.47 L91.72 311.39 L92.18 310.3 L92.71 309.22 L93.1 308.13 L93.44 307.05 L93.95 305.96 L94.24 304.88 L94.6 303.79 L95.11 302.71 L96.37 301.62 L97.13 300.5 L97.64 299.41 L97.93 298.33 L98.34 297.24 L99.01 296.16 L99.61 295.07 L100.54 293.99 L101.28 292.9 L101.56 291.82 L101.8 290.73 L102.02 289.65 L102.14 288.56 L102.27 287.48 L102.39 286.39 L102.57 285.27 L102.76 284.18 L102.94 283.1 L103.1 282.01 L103.26 280.93 L103.41 279.84 L103.63 278.76 L103.83 277.67 L104.04 276.59 L104.31 275.5 L104.57 274.42 L104.86 273.33 L105.15 272.25 L105.68 271.13 L106.15 270.04 L106.85 268.96 L107.32 267.87 L107.73 266.78 L108.33 265.7 L108.98 264.62 L110.23 263.53 L112.1 262.45 L113.62 261.36 L115.22 260.27 L116.22 259.19 L117.53 258.11 L118.88 257.02 L121.03 255.9 L122.66 254.81 L125.3 253.73 L126.06 252.64 L126.73 251.56 L127.35 250.47 L128.96 249.39 L129.73 248.3 L130.57 247.22 L131.49 246.13 L132.6 245.05 L134.01 243.96 L135.33 242.88 L139.01 241.79 L140.88 240.67 L143.07 239.58 L144.85 238.5 L147.5 237.41 L148.6 236.33 L149.65 235.24 L152.78 234.16 L155.01 233.07 L159.23 231.99 L163.52 230.9 L168.56 229.82 L172.07 228.73 L177.09 227.65 L185.49 226.56 L190.94 225.44 L194.55 224.35 L195.13 223.27 L196.04 222.18 L199.28 221.1 L200.68 220.01 L204.53 218.93 L209.04 217.84 L210.6 216.76 L211.91 215.67 L213.04 214.59 L214.33 213.5 L215.92 212.42 L217.16 211.3 L218.31 210.21 L219.38 209.13 L220.41 208.04 L226.16 206.96 L231.91 205.87 L236.31 204.79 L242.2 203.7 L247.72 202.62 L253.14 201.53 L256.13 200.45 L260.92 199.36 L270.1 198.28 L275.53 197.19 L284.99 196.07 L288.44 194.98 L293.05 193.9 L299.75 192.81 L310.59 191.73 L320.99 190.64 L331.98 189.56 L345.02 188.47 L354.58 187.39 L360.84 186.3 L372.76 185.22 L382.77 184.13 L392.24 183.05 L404.96 181.96 L415.04 180.84 L426.51 179.75 L437.45 178.67 L447.09 177.58 L448.81 176.5 L456.61 175.41 L470.12 174.33 L476.94 173.24 L483.87 172.16 L497.22 171.07 L509.34 169.99 L517.83 168.9 L529.09 167.82 L531.35 166.69 L532.92 165.61 L536.37 164.52 L540.23 163.44 L543.94 162.35 L549.42 161.27 L558.09 160.18 L566 159.1 L572.22 158.01 L582.37 156.93 L590.69 155.84 L601.38 154.76 L605.6 153.67 L611.05 152.59 L620.28 151.47 L627.44 150.38 L635.99 149.29 L642.75 148.21 L649.49 147.13 L658.27 146.04 L669.12 144.95 L672.3 143.87 L675.52 142.79 L679.67 141.7 L680.71 140.61 L681.57 139.53 L683 138.45 L684.41 137.36 L690.57 136.24 L696.07 135.15 L702.35 134.07 L709.96 132.98 L717.61 131.9 L725.28 130.81 L736 129.73 L736 368 L62 368 Z" fill="url(#fill-starhistorydarksvg)"/>
+ <path d="M62 367.96 L66.82 366.88 L69 365.79 L71.26 364.71 L78.28 363.62 L78.52 362.54 L79.01 361.45 L79.5 360.33 L80 359.24 L80.41 358.16 L80.72 357.07 L81.3 355.99 L82.15 354.9 L82.7 353.82 L83.26 352.73 L84.13 351.65 L84.39 350.56 L84.63 349.48 L84.86 348.39 L85.11 347.31 L85.31 346.22 L85.49 345.1 L85.68 344.01 L85.79 342.93 L85.93 341.84 L86.09 340.76 L86.24 339.67 L86.39 338.59 L86.55 337.5 L86.73 336.42 L86.98 335.33 L87.21 334.25 L87.33 333.16 L87.46 332.08 L87.62 330.99 L87.74 329.87 L87.88 328.79 L87.99 327.7 L88.09 326.62 L88.21 325.53 L88.34 324.45 L88.49 323.36 L88.71 322.27 L88.87 321.19 L88.99 320.11 L89.16 319.02 L89.34 317.94 L89.57 316.85 L89.88 315.73 L90.26 314.64 L90.66 313.56 L91.19 312.47 L91.72 311.39 L92.18 310.3 L92.71 309.22 L93.1 308.13 L93.44 307.05 L93.95 305.96 L94.24 304.88 L94.6 303.79 L95.11 302.71 L96.37 301.62 L97.13 300.5 L97.64 299.41 L97.93 298.33 L98.34 297.24 L99.01 296.16 L99.61 295.07 L100.54 293.99 L101.28 292.9 L101.56 291.82 L101.8 290.73 L102.02 289.65 L102.14 288.56 L102.27 287.48 L102.39 286.39 L102.57 285.27 L102.76 284.18 L102.94 283.1 L103.1 282.01 L103.26 280.93 L103.41 279.84 L103.63 278.76 L103.83 277.67 L104.04 276.59 L104.31 275.5 L104.57 274.42 L104.86 273.33 L105.15 272.25 L105.68 271.13 L106.15 270.04 L106.85 268.96 L107.32 267.87 L107.73 266.78 L108.33 265.7 L108.98 264.62 L110.23 263.53 L112.1 262.45 L113.62 261.36 L115.22 260.27 L116.22 259.19 L117.53 258.11 L118.88 257.02 L121.03 255.9 L122.66 254.81 L125.3 253.73 L126.06 252.64 L126.73 251.56 L127.35 250.47 L128.96 249.39 L129.73 248.3 L130.57 247.22 L131.49 246.13 L132.6 245.05 L134.01 243.96 L135.33 242.88 L139.01 241.79 L140.88 240.67 L143.07 239.58 L144.85 238.5 L147.5 237.41 L148.6 236.33 L149.65 235.24 L152.78 234.16 L155.01 233.07 L159.23 231.99 L163.52 230.9 L168.56 229.82 L172.07 228.73 L177.09 227.65 L185.49 226.56 L190.94 225.44 L194.55 224.35 L195.13 223.27 L196.04 222.18 L199.28 221.1 L200.68 220.01 L204.53 218.93 L209.04 217.84 L210.6 216.76 L211.91 215.67 L213.04 214.59 L214.33 213.5 L215.92 212.42 L217.16 211.3 L218.31 210.21 L219.38 209.13 L220.41 208.04 L226.16 206.96 L231.91 205.87 L236.31 204.79 L242.2 203.7 L247.72 202.62 L253.14 201.53 L256.13 200.45 L260.92 199.36 L270.1 198.28 L275.53 197.19 L284.99 196.07 L288.44 194.98 L293.05 193.9 L299.75 192.81 L310.59 191.73 L320.99 190.64 L331.98 189.56 L345.02 188.47 L354.58 187.39 L360.84 186.3 L372.76 185.22 L382.77 184.13 L392.24 183.05 L404.96 181.96 L415.04 180.84 L426.51 179.75 L437.45 178.67 L447.09 177.58 L448.81 176.5 L456.61 175.41 L470.12 174.33 L476.94 173.24 L483.87 172.16 L497.22 171.07 L509.34 169.99 L517.83 168.9 L529.09 167.82 L531.35 166.69 L532.92 165.61 L536.37 164.52 L540.23 163.44 L543.94 162.35 L549.42 161.27 L558.09 160.18 L566 159.1 L572.22 158.01 L582.37 156.93 L590.69 155.84 L601.38 154.76 L605.6 153.67 L611.05 152.59 L620.28 151.47 L627.44 150.38 L635.99 149.29 L642.75 148.21 L649.49 147.13 L658.27 146.04 L669.12 144.95 L672.3 143.87 L675.52 142.79 L679.67 141.7 L680.71 140.61 L681.57 139.53 L683 138.45 L684.41 137.36 L690.57 136.24 L696.07 135.15 L702.35 134.07 L709.96 132.98 L717.61 131.9 L725.28 130.81 L736 129.73" stroke="#3fb950" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
+ <circle cx="736" cy="129.73" r="3.5" fill="#3fb950"/>
+
+ <text x="62" y="390" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="start">Apr 2026</text>
+ <text x="166.01" y="390" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="middle">May 2026</text>
+ <text x="310.26" y="390" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="middle">Jun 2026</text>
+ <text x="449.85" y="390" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="middle">Jul 2026</text>
+ <text x="594.09" y="390" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">Aug 2026</text>
+
+ <text x="24" y="406" fill="#8b949e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="10">star history // generated 2026-08-31</text>
+</svg>
diff --git a/assets/star-history.svg b/assets/star-history.svg
new file mode 100644
index 0000000..52224ff
--- /dev/null
+++ b/assets/star-history.svg
@@ -0,0 +1,37 @@
+<svg viewBox="0 0 760 420" width="760" height="420" fill="none" xmlns="http://www.w3.org/2000/svg">
+
+ <defs>
+ <linearGradient id="fill-starhistorysvg" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stop-color="#1f883d" stop-opacity="0.22"/>
+ <stop offset="100%" stop-color="#1f883d" stop-opacity="0"/>
+ </linearGradient>
+ </defs>
+
+ <rect x="0.5" y="0.5" width="759" height="419" rx="8" fill="#ffffff" stroke="#d1d9e0" stroke-width="1"/>
+
+ <text x="24" y="32" fill="#1f2328" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="15" font-weight="600">momenbasel/PureMac</text>
+ <text x="736" y="32" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="12" text-anchor="end">6.1k stars</text>
+
+ <line x1="62" y1="368" x2="736" y2="368" stroke="#e6eaef" stroke-width="1"/>
+ <text x="52" y="372" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">0</text>
+ <line x1="62" y1="290.5" x2="736" y2="290.5" stroke="#e6eaef" stroke-width="1"/>
+ <text x="52" y="294.5" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">2k</text>
+ <line x1="62" y1="213" x2="736" y2="213" stroke="#e6eaef" stroke-width="1"/>
+ <text x="52" y="217" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">4k</text>
+ <line x1="62" y1="135.5" x2="736" y2="135.5" stroke="#e6eaef" stroke-width="1"/>
+ <text x="52" y="139.5" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">6k</text>
+ <line x1="62" y1="58" x2="736" y2="58" stroke="#e6eaef" stroke-width="1"/>
+ <text x="52" y="62" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">8k</text>
+
+ <path d="M62 367.96 L66.82 366.88 L69 365.79 L71.26 364.71 L78.28 363.62 L78.52 362.54 L79.01 361.45 L79.5 360.33 L80 359.24 L80.41 358.16 L80.72 357.07 L81.3 355.99 L82.15 354.9 L82.7 353.82 L83.26 352.73 L84.13 351.65 L84.39 350.56 L84.63 349.48 L84.86 348.39 L85.11 347.31 L85.31 346.22 L85.49 345.1 L85.68 344.01 L85.79 342.93 L85.93 341.84 L86.09 340.76 L86.24 339.67 L86.39 338.59 L86.55 337.5 L86.73 336.42 L86.98 335.33 L87.21 334.25 L87.33 333.16 L87.46 332.08 L87.62 330.99 L87.74 329.87 L87.88 328.79 L87.99 327.7 L88.09 326.62 L88.21 325.53 L88.34 324.45 L88.49 323.36 L88.71 322.27 L88.87 321.19 L88.99 320.11 L89.16 319.02 L89.34 317.94 L89.57 316.85 L89.88 315.73 L90.26 314.64 L90.66 313.56 L91.19 312.47 L91.72 311.39 L92.18 310.3 L92.71 309.22 L93.1 308.13 L93.44 307.05 L93.95 305.96 L94.24 304.88 L94.6 303.79 L95.11 302.71 L96.37 301.62 L97.13 300.5 L97.64 299.41 L97.93 298.33 L98.34 297.24 L99.01 296.16 L99.61 295.07 L100.54 293.99 L101.28 292.9 L101.56 291.82 L101.8 290.73 L102.02 289.65 L102.14 288.56 L102.27 287.48 L102.39 286.39 L102.57 285.27 L102.76 284.18 L102.94 283.1 L103.1 282.01 L103.26 280.93 L103.41 279.84 L103.63 278.76 L103.83 277.67 L104.04 276.59 L104.31 275.5 L104.57 274.42 L104.86 273.33 L105.15 272.25 L105.68 271.13 L106.15 270.04 L106.85 268.96 L107.32 267.87 L107.73 266.78 L108.33 265.7 L108.98 264.62 L110.23 263.53 L112.1 262.45 L113.62 261.36 L115.22 260.27 L116.22 259.19 L117.53 258.11 L118.88 257.02 L121.03 255.9 L122.66 254.81 L125.3 253.73 L126.06 252.64 L126.73 251.56 L127.35 250.47 L128.96 249.39 L129.73 248.3 L130.57 247.22 L131.49 246.13 L132.6 245.05 L134.01 243.96 L135.33 242.88 L139.01 241.79 L140.88 240.67 L143.07 239.58 L144.85 238.5 L147.5 237.41 L148.6 236.33 L149.65 235.24 L152.78 234.16 L155.01 233.07 L159.23 231.99 L163.52 230.9 L168.56 229.82 L172.07 228.73 L177.09 227.65 L185.49 226.56 L190.94 225.44 L194.55 224.35 L195.13 223.27 L196.04 222.18 L199.28 221.1 L200.68 220.01 L204.53 218.93 L209.04 217.84 L210.6 216.76 L211.91 215.67 L213.04 214.59 L214.33 213.5 L215.92 212.42 L217.16 211.3 L218.31 210.21 L219.38 209.13 L220.41 208.04 L226.16 206.96 L231.91 205.87 L236.31 204.79 L242.2 203.7 L247.72 202.62 L253.14 201.53 L256.13 200.45 L260.92 199.36 L270.1 198.28 L275.53 197.19 L284.99 196.07 L288.44 194.98 L293.05 193.9 L299.75 192.81 L310.59 191.73 L320.99 190.64 L331.98 189.56 L345.02 188.47 L354.58 187.39 L360.84 186.3 L372.76 185.22 L382.77 184.13 L392.24 183.05 L404.96 181.96 L415.04 180.84 L426.51 179.75 L437.45 178.67 L447.09 177.58 L448.81 176.5 L456.61 175.41 L470.12 174.33 L476.94 173.24 L483.87 172.16 L497.22 171.07 L509.34 169.99 L517.83 168.9 L529.09 167.82 L531.35 166.69 L532.92 165.61 L536.37 164.52 L540.23 163.44 L543.94 162.35 L549.42 161.27 L558.09 160.18 L566 159.1 L572.22 158.01 L582.37 156.93 L590.69 155.84 L601.38 154.76 L605.6 153.67 L611.05 152.59 L620.28 151.47 L627.44 150.38 L635.99 149.29 L642.75 148.21 L649.49 147.13 L658.27 146.04 L669.12 144.95 L672.3 143.87 L675.52 142.79 L679.67 141.7 L680.71 140.61 L681.57 139.53 L683 138.45 L684.41 137.36 L690.57 136.24 L696.07 135.15 L702.35 134.07 L709.96 132.98 L717.61 131.9 L725.28 130.81 L736 129.73 L736 368 L62 368 Z" fill="url(#fill-starhistorysvg)"/>
+ <path d="M62 367.96 L66.82 366.88 L69 365.79 L71.26 364.71 L78.28 363.62 L78.52 362.54 L79.01 361.45 L79.5 360.33 L80 359.24 L80.41 358.16 L80.72 357.07 L81.3 355.99 L82.15 354.9 L82.7 353.82 L83.26 352.73 L84.13 351.65 L84.39 350.56 L84.63 349.48 L84.86 348.39 L85.11 347.31 L85.31 346.22 L85.49 345.1 L85.68 344.01 L85.79 342.93 L85.93 341.84 L86.09 340.76 L86.24 339.67 L86.39 338.59 L86.55 337.5 L86.73 336.42 L86.98 335.33 L87.21 334.25 L87.33 333.16 L87.46 332.08 L87.62 330.99 L87.74 329.87 L87.88 328.79 L87.99 327.7 L88.09 326.62 L88.21 325.53 L88.34 324.45 L88.49 323.36 L88.71 322.27 L88.87 321.19 L88.99 320.11 L89.16 319.02 L89.34 317.94 L89.57 316.85 L89.88 315.73 L90.26 314.64 L90.66 313.56 L91.19 312.47 L91.72 311.39 L92.18 310.3 L92.71 309.22 L93.1 308.13 L93.44 307.05 L93.95 305.96 L94.24 304.88 L94.6 303.79 L95.11 302.71 L96.37 301.62 L97.13 300.5 L97.64 299.41 L97.93 298.33 L98.34 297.24 L99.01 296.16 L99.61 295.07 L100.54 293.99 L101.28 292.9 L101.56 291.82 L101.8 290.73 L102.02 289.65 L102.14 288.56 L102.27 287.48 L102.39 286.39 L102.57 285.27 L102.76 284.18 L102.94 283.1 L103.1 282.01 L103.26 280.93 L103.41 279.84 L103.63 278.76 L103.83 277.67 L104.04 276.59 L104.31 275.5 L104.57 274.42 L104.86 273.33 L105.15 272.25 L105.68 271.13 L106.15 270.04 L106.85 268.96 L107.32 267.87 L107.73 266.78 L108.33 265.7 L108.98 264.62 L110.23 263.53 L112.1 262.45 L113.62 261.36 L115.22 260.27 L116.22 259.19 L117.53 258.11 L118.88 257.02 L121.03 255.9 L122.66 254.81 L125.3 253.73 L126.06 252.64 L126.73 251.56 L127.35 250.47 L128.96 249.39 L129.73 248.3 L130.57 247.22 L131.49 246.13 L132.6 245.05 L134.01 243.96 L135.33 242.88 L139.01 241.79 L140.88 240.67 L143.07 239.58 L144.85 238.5 L147.5 237.41 L148.6 236.33 L149.65 235.24 L152.78 234.16 L155.01 233.07 L159.23 231.99 L163.52 230.9 L168.56 229.82 L172.07 228.73 L177.09 227.65 L185.49 226.56 L190.94 225.44 L194.55 224.35 L195.13 223.27 L196.04 222.18 L199.28 221.1 L200.68 220.01 L204.53 218.93 L209.04 217.84 L210.6 216.76 L211.91 215.67 L213.04 214.59 L214.33 213.5 L215.92 212.42 L217.16 211.3 L218.31 210.21 L219.38 209.13 L220.41 208.04 L226.16 206.96 L231.91 205.87 L236.31 204.79 L242.2 203.7 L247.72 202.62 L253.14 201.53 L256.13 200.45 L260.92 199.36 L270.1 198.28 L275.53 197.19 L284.99 196.07 L288.44 194.98 L293.05 193.9 L299.75 192.81 L310.59 191.73 L320.99 190.64 L331.98 189.56 L345.02 188.47 L354.58 187.39 L360.84 186.3 L372.76 185.22 L382.77 184.13 L392.24 183.05 L404.96 181.96 L415.04 180.84 L426.51 179.75 L437.45 178.67 L447.09 177.58 L448.81 176.5 L456.61 175.41 L470.12 174.33 L476.94 173.24 L483.87 172.16 L497.22 171.07 L509.34 169.99 L517.83 168.9 L529.09 167.82 L531.35 166.69 L532.92 165.61 L536.37 164.52 L540.23 163.44 L543.94 162.35 L549.42 161.27 L558.09 160.18 L566 159.1 L572.22 158.01 L582.37 156.93 L590.69 155.84 L601.38 154.76 L605.6 153.67 L611.05 152.59 L620.28 151.47 L627.44 150.38 L635.99 149.29 L642.75 148.21 L649.49 147.13 L658.27 146.04 L669.12 144.95 L672.3 143.87 L675.52 142.79 L679.67 141.7 L680.71 140.61 L681.57 139.53 L683 138.45 L684.41 137.36 L690.57 136.24 L696.07 135.15 L702.35 134.07 L709.96 132.98 L717.61 131.9 L725.28 130.81 L736 129.73" stroke="#1f883d" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
+ <circle cx="736" cy="129.73" r="3.5" fill="#1f883d"/>
+
+ <text x="62" y="390" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="start">Apr 2026</text>
+ <text x="166.01" y="390" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="middle">May 2026</text>
+ <text x="310.26" y="390" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="middle">Jun 2026</text>
+ <text x="449.85" y="390" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="middle">Jul 2026</text>
+ <text x="594.09" y="390" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="11" text-anchor="end">Aug 2026</text>
+
+ <text x="24" y="406" fill="#59636e" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="10">star history // generated 2026-08-31</text>
+</svg>
diff --git a/scripts/star-history.mjs b/scripts/star-history.mjs
new file mode 100644
index 0000000..b81ea18
--- /dev/null
+++ b/scripts/star-history.mjs
@@ -0,0 +1,232 @@
+#!/usr/bin/env node
+// Renders assets/star-history.svg and assets/star-history-dark.svg from this
+// repo's own stargazer timestamps.
+//
+// star-history.com started serving a "GitHub restricted access to star data"
+// placeholder for everyone, so the chart is generated here instead: the
+// stargazers API still returns starred_at when called with an authenticated
+// token, which every Actions run already has.
+
+import { writeFileSync, mkdirSync } from 'node:fs';
+import { dirname, resolve } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const REPO = process.env.GITHUB_REPOSITORY;
+const TOKEN = process.env.GITHUB_TOKEN || process.env.TOKEN;
+const MAX_POINTS = 220;
+
+const ASSETS = resolve(dirname(fileURLToPath(import.meta.url)), '..', 'assets');
+
+if (!REPO) {
+ console.error('GITHUB_REPOSITORY is required (owner/name)');
+ process.exit(1);
+}
+if (!TOKEN) {
+ console.error('GITHUB_TOKEN (or TOKEN) is required');
+ process.exit(1);
+}
+
+const THEMES = {
+ light: {
+ file: 'star-history.svg',
+ bg: '#ffffff',
+ border: '#d1d9e0',
+ grid: '#e6eaef',
+ text: '#1f2328',
+ muted: '#59636e',
+ accent: '#1f883d',
+ fillTop: 0.22,
+ },
+ dark: {
+ file: 'star-history-dark.svg',
+ bg: '#0d1117',
+ border: '#30363d',
+ grid: '#21262d',
+ text: '#e6edf3',
+ muted: '#8b949e',
+ accent: '#3fb950',
+ fillTop: 0.3,
+ },
+};
+
+const FONT =
+ "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif";
+
+const stars = await fetchStargazers();
+if (stars.length === 0) {
+ console.error('no stargazers returned');
+ process.exit(1);
+}
+
+// Cumulative count over time, then downsample to keep the SVG small.
+const series = stars.map((iso, i) => ({ t: Date.parse(iso), v: i + 1 }));
+const points = downsample(series, MAX_POINTS);
+
+const W = 760;
+const H = 420;
+const PLOT = { x: 62, y: 58, w: W - 62 - 24, h: H - 58 - 52 };
+
+const t0 = points[0].t;
+const t1 = points[points.length - 1].t;
+const span = Math.max(t1 - t0, 1);
+const ceiling = niceCeiling(series[series.length - 1].v);
+
+const px = (t) => PLOT.x + ((t - t0) / span) * PLOT.w;
+const py = (v) => PLOT.y + PLOT.h - (v / ceiling) * PLOT.h;
+
+const path = points
+ .map((p, i) => `${i === 0 ? 'M' : 'L'}${round(px(p.t))} ${round(py(p.v))}`)
+ .join(' ');
+const area = `${path} L${round(PLOT.x + PLOT.w)} ${PLOT.y + PLOT.h} L${PLOT.x} ${PLOT.y + PLOT.h} Z`;
+
+mkdirSync(ASSETS, { recursive: true });
+for (const [name, theme] of Object.entries(THEMES)) {
+ writeFileSync(resolve(ASSETS, theme.file), render(theme));
+ console.log(`wrote assets/${theme.file} (${name})`);
+}
+console.log(`${series[series.length - 1].v} stars, ${points.length} plotted points`);
+
+function render(c) {
+ const yTicks = ticks(ceiling, 4)
+ .map((v) => {
+ const y = round(py(v));
+ return ` <line x1="${PLOT.x}" y1="${y}" x2="${PLOT.x + PLOT.w}" y2="${y}" stroke="${c.grid}" stroke-width="1"/>
+ <text x="${PLOT.x - 10}" y="${y + 4}" fill="${c.muted}" font-family="${FONT}" font-size="11" text-anchor="end">${compact(v)}</text>`;
+ })
+ .join('\n');
+
+ const xTicks = monthTicks(t0, t1)
+ .map(({ t, label }, i, arr) => {
+ const anchor = i === 0 ? 'start' : i === arr.length - 1 ? 'end' : 'middle';
+ return ` <text x="${round(px(t))}" y="${PLOT.y + PLOT.h + 22}" fill="${c.muted}" font-family="${FONT}" font-size="11" text-anchor="${anchor}">${label}</text>`;
+ })
+ .join('\n');
+
+ const last = points[points.length - 1];
+ const gid = `fill-${c.file.replace(/[^a-z]/g, '')}`;
+
+ return `<svg viewBox="0 0 ${W} ${H}" width="${W}" height="${H}" fill="none" xmlns="http://www.w3.org/2000/svg">
+
+ <defs>
+ <linearGradient id="${gid}" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stop-color="${c.accent}" stop-opacity="${c.fillTop}"/>
+ <stop offset="100%" stop-color="${c.accent}" stop-opacity="0"/>
+ </linearGradient>
+ </defs>
+
+ <rect x="0.5" y="0.5" width="${W - 1}" height="${H - 1}" rx="8" fill="${c.bg}" stroke="${c.border}" stroke-width="1"/>
+
+ <text x="24" y="32" fill="${c.text}" font-family="${FONT}" font-size="15" font-weight="600">${escapeXml(REPO)}</text>
+ <text x="${W - 24}" y="32" fill="${c.muted}" font-family="${FONT}" font-size="12" text-anchor="end">${compact(last.v)} stars</text>
+
+${yTicks}
+
+ <path d="${area}" fill="url(#${gid})"/>
+ <path d="${path}" stroke="${c.accent}" stroke-width="2" stroke-linejoin="round" stroke-linecap="round" fill="none"/>
+ <circle cx="${round(px(last.t))}" cy="${round(py(last.v))}" r="3.5" fill="${c.accent}"/>
+
+${xTicks}
+
+ <text x="24" y="${H - 14}" fill="${c.muted}" font-family="${FONT}" font-size="10">star history // generated ${new Date().toISOString().slice(0, 10)}</text>
+</svg>
+`;
+}
+
+async function fetchStargazers() {
+ const all = [];
+ for (let page = 1; page <= 400; page++) {
+ const res = await fetch(
+ `https://api.github.com/repos/${REPO}/stargazers?per_page=100&page=${page}`,
+ {
+ headers: {
+ Authorization: `Bearer ${TOKEN}`,
+ Accept: 'application/vnd.github.star+json',
+ 'X-GitHub-Api-Version': '2022-11-28',
+ 'User-Agent': 'star-history-generator',
+ },
+ },
+ );
+ if (!res.ok) {
+ console.error(`stargazers page ${page} returned ${res.status}: ${await res.text()}`);
+ process.exit(1);
+ }
+ const batch = await res.json();
+ if (batch.length === 0) break;
+ for (const s of batch) if (s.starred_at) all.push(s.starred_at);
+ if (batch.length < 100) break;
+ }
+ return all.sort();
+}
+
+function downsample(arr, max) {
+ if (arr.length <= max) return arr;
+ const step = (arr.length - 1) / (max - 1);
+ const out = [];
+ for (let i = 0; i < max; i++) out.push(arr[Math.round(i * step)]);
+ out[out.length - 1] = arr[arr.length - 1];
+ return out;
+}
+
+function niceCeiling(n) {
+ // Leave a little headroom above the latest count without stranding the
+ // series in the bottom half of the plot.
+ const target = n * 1.06;
+ if (target <= 10) return 10;
+ const mag = 10 ** Math.floor(Math.log10(target));
+ for (const m of [1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10]) {
+ const c = m * mag;
+ if (c >= target) return c;
+ }
+ return 10 * mag;
+}
+
+function ticks(ceiling, count) {
+ return Array.from({ length: count + 1 }, (_, i) => Math.round((ceiling * i) / count));
+}
+
+function pretty(n) {
+ return n;
+}
+
+function monthTicks(from, to) {
+ const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
+ const out = [];
+ const d = new Date(from);
+ d.setUTCDate(1);
+ d.setUTCHours(0, 0, 0, 0);
+ while (d.getTime() <= to) {
+ if (d.getTime() >= from) {
+ out.push({ t: d.getTime(), label: `${months[d.getUTCMonth()]} ${d.getUTCFullYear()}` });
+ }
+ d.setUTCMonth(d.getUTCMonth() + 1);
+ }
+ // Keep the axis readable on long histories.
+ const maxLabels = 7;
+ if (out.length > maxLabels) {
+ const step = Math.ceil(out.length / maxLabels);
+ return out.filter((_, i) => i % step === 0 || i === out.length - 1);
+ }
+ if (out.length === 0) out.push({ t: from, label: fmt(from) });
+ // The first whole month may fall before the first star; label the actual
+ // series start so the left edge is not blank.
+ if (out[0].t - from > (to - from) * 0.04) out.unshift({ t: from, label: fmt(from) });
+ return out;
+
+ function fmt(t) {
+ const x = new Date(t);
+ return `${months[x.getUTCMonth()]} ${x.getUTCFullYear()}`;
+ }
+}
+
+function compact(n) {
+ if (n >= 1000) return `${(n / 1000).toFixed(n % 1000 === 0 ? 0 : 1)}k`;
+ return String(n);
+}
+
+function round(n) {
+ return Math.round(n * 100) / 100;
+}
+
+function escapeXml(s) {
+ return s.replace(/[<>&'"]/g, (ch) => ({ '<': '&lt;', '>': '&gt;', '&': '&amp;', "'": '&apos;', '"': '&quot;' })[ch]);
+}