Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

Refresh official README star count more often (#159)

github-actions[bot]4f59ec6af4e6
diff --git a/.github/workflows/readme-stars.yml b/.github/workflows/readme-stars.yml
index 1df7274e..1eb27645 100644
--- a/.github/workflows/readme-stars.yml
+++ b/.github/workflows/readme-stars.yml
@@ -1,7 +1,9 @@
name: Refresh README stars
on:
schedule:
- - cron: '23 */6 * * *'
+ # GitHub Actions supports a minimum five-minute interval. Offset from the
+ # start of the hour to reduce the chance of scheduler congestion.
+ - cron: '2,7,12,17,22,27,32,37,42,47,52,57 * * * *'
workflow_dispatch:
permissions:
contents: write
diff --git a/README.md b/README.md
index 221213cc..766c4e4a 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,8 @@
<strong>One API for them all.</strong>
</p>
+<a id="github-stars"></a>
+
<p align="center">
<a href="#top" title="Back to the top to star this repository"><img src="https://raw.githubusercontent.com/HarnessRouter/harnessrouter/readme-badges/docs/images/github-stars.svg" alt="GitHub Stars, exact count" title="Back to the top, then click GitHub’s Star button. Official GitHub data, periodically refreshed; the last successful count is retained if refresh fails."></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-285AFF?logo=apache&amp;logoColor=white&amp;style=flat&amp;labelColor=444c56" alt="License: Apache 2.0"></a>
@@ -48,7 +50,7 @@
</picture>
</a>
-<a href="#top" title="Back to the top to star this repository">
+<a href="#user-content-github-stars" title="Jump to the README star badge">
<picture>
<source media="(max-width: 600px)" srcset="docs/images/github-readme-star-cta-mobile.svg">
<img src="docs/images/github-readme-star-cta-desktop.svg" width="100%" alt="Help grow the HarnessRouter community. Star this repo →">
@@ -375,11 +377,11 @@ This repository contains the Apache 2.0 reference implementation, machine-readab
## Star History
<p align="center">
- <a href="#top" title="Back to the top to star this repository">
+ <a href="#user-content-github-stars" title="Jump to the README star badge">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=harnessrouter/harnessrouter&amp;type=date&amp;theme=dark&amp;legend=top-left">
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=harnessrouter/harnessrouter&amp;type=date&amp;legend=top-left">
- <img alt="HarnessRouter GitHub star history. Back to the top to star this repository." src="https://api.star-history.com/chart?repos=harnessrouter/harnessrouter&amp;type=date&amp;legend=top-left" width="640" height="427">
+ <img alt="HarnessRouter GitHub star history. Jump to the README star badge." src="https://api.star-history.com/chart?repos=harnessrouter/harnessrouter&amp;type=date&amp;legend=top-left" width="640" height="427">
</picture>
</a>
</p>
diff --git a/docs/images/github-stars.svg b/docs/images/github-stars.svg
index 16950489..b85ddc16 100644
--- a/docs/images/github-stars.svg
+++ b/docs/images/github-stars.svg
@@ -1,11 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="121" height="20" viewBox="0 0 121 20" role="img" aria-label="Stars: 1213">
<title>Stars: 1213</title>
- <desc>Official GitHub repository star count. Periodically refreshed; retains the last successful value when a refresh fails.</desc>
+ <desc>Official GitHub repository star count. Refreshed every five minutes when GitHub Actions runs; retains the last successful value if refresh fails.</desc>
<rect width="121" height="20" rx="3" fill="#444c56"/>
<path fill="#e3b341" d="M73 0h45a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H73Z"/>
<path fill="#e3b341" d="m12 3 2.16 4.38L19 8.08l-3.5 3.41.83 4.82L12 14.04l-4.33 2.27.83-4.82L5 8.08l4.84-.7Z"/>
<g font-family="Verdana,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">
<text x="46" y="14" fill="white">Stars</text>
- <text x="97" y="14" fill="#24292f">1213</text>
+ <text x="97" y="14" fill="white">1213</text>
</g>
</svg>
diff --git a/scripts/test-star-badge.py b/scripts/test-star-badge.py
index 3a1824e2..928ece35 100644
--- a/scripts/test-star-badge.py
+++ b/scripts/test-star-badge.py
@@ -18,6 +18,9 @@ class BadgeTests(unittest.TestCase):
root = ET.fromstring(badge.render(count))
self.assertEqual(root.attrib["aria-label"], f"Stars: {count}")
self.assertGreaterEqual(int(root.attrib["width"]), 117)
+ labels = list(root.iter("{http://www.w3.org/2000/svg}text"))
+ self.assertEqual(labels[-1].text, str(count))
+ self.assertEqual(labels[-1].attrib["fill"], "white")
def test_invalid_data_rejected(self):
for value in [None, True, -1, "1213", 1.5, 1000000000]:
diff --git a/scripts/update-star-badge.py b/scripts/update-star-badge.py
index 1d2f769c..f196a1df 100644
--- a/scripts/update-star-badge.py
+++ b/scripts/update-star-badge.py
@@ -23,13 +23,13 @@ def render(count):
width = 73 + right
return f'''<svg xmlns="http://www.w3.org/2000/svg" width="{width}" height="20" viewBox="0 0 {width} 20" role="img" aria-label="Stars: {count}">
<title>Stars: {count}</title>
- <desc>Official GitHub repository star count. Periodically refreshed; retains the last successful value when a refresh fails.</desc>
+ <desc>Official GitHub repository star count. Refreshed every five minutes when GitHub Actions runs; retains the last successful value if refresh fails.</desc>
<rect width="{width}" height="20" rx="3" fill="#444c56"/>
<path fill="#e3b341" d="M73 0h{right-3}a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H73Z"/>
<path fill="#e3b341" d="m12 3 2.16 4.38L19 8.08l-3.5 3.41.83 4.82L12 14.04l-4.33 2.27.83-4.82L5 8.08l4.84-.7Z"/>
<g font-family="Verdana,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">
<text x="46" y="14" fill="white">Stars</text>
- <text x="{73+right/2:g}" y="14" fill="#24292f">{count}</text>
+ <text x="{73+right/2:g}" y="14" fill="white">{count}</text>
</g>
</svg>
'''