Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

landing page: replace GitHub link with star button with live count

Salman Qureshic0d1d5515249
diff --git a/docs/app.js b/docs/app.js
index 02d83951..7f9080db 100644
--- a/docs/app.js
+++ b/docs/app.js
@@ -198,4 +198,15 @@
}
});
});
+
+ fetch('https://api.github.com/repos/cosmicstack-labs/mercury-agent')
+ .then(function (r) { return r.json(); })
+ .then(function (data) {
+ var el = document.getElementById('ghStars');
+ if (el && data.stargazers_count != null) {
+ var n = data.stargazers_count;
+ el.textContent = n >= 1000 ? (n / 1000).toFixed(1).replace(/\.0$/, '') + 'k' : n;
+ }
+ })
+ .catch(function () {});
})();
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index 56f38e94..fd3b6f49 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -82,8 +82,11 @@
<a href="#capabilities">Capabilities</a>
<a href="#compare">Compare</a>
<a href="docs.html">Docs</a>
- <a href="https://github.com/cosmicstack-labs/mercury-agent" class="nav-cta" target="_blank"
- rel="noopener">GitHub</a>
+ <a href="https://github.com/cosmicstack-labs/mercury-agent" class="github-btn" target="_blank" rel="noopener">
+ <svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" style="vertical-align:-2px;"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>
+ <span class="github-btn-text">Star</span>
+ <span class="github-btn-count" id="ghStars"></span>
+ </a>
</div>
<button class="nav-toggle" id="navToggle" aria-label="Menu">☰</button>
</div>
diff --git a/docs/style.css b/docs/style.css
index 8145319e..48f21e91 100644
--- a/docs/style.css
+++ b/docs/style.css
@@ -61,11 +61,22 @@ code {
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--gray); font-size: 0.9em; transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--white); }
-.nav-cta {
- background: var(--cyan); color: var(--bg) !important; padding: 6px 16px;
- border-radius: 6px; font-weight: 600; font-size: 0.85em;
+.github-btn {
+ display: inline-flex; align-items: center; gap: 6px;
+ background: rgba(255,255,255,0.06); border: 1px solid var(--border);
+ color: var(--gray) !important; padding: 4px 12px 4px 10px;
+ border-radius: 6px; font-size: 0.85em; font-weight: 500;
+ text-decoration: none !important; transition: all 0.2s;
+}
+.github-btn:hover { border-color: #444; color: var(--white) !important; background: rgba(255,255,255,0.1); }
+.github-btn svg { flex-shrink: 0; }
+.github-btn-text { font-size: 0.95em; font-weight: 600; }
+.github-btn-count {
+ display: inline-flex; align-items: center;
+ background: rgba(255,255,255,0.06); border-left: 1px solid var(--border);
+ margin-left: 2px; margin-right: -6px; padding: 3px 8px;
+ border-radius: 0 5px 5px 0; font-weight: 600; min-width: 20px; text-align: center;
}
-.nav-cta:hover { background: #33ddff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5em; cursor: pointer; }
@media (max-width: 768px) {