Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(web): show the github star count on the hero star button
leepokaiadd98c24bee5
diff --git a/web/app/components/github-star-button.tsx b/web/app/components/github-star-button.tsxnew file mode 100644index 00000000..768ee304--- /dev/null+++ b/web/app/components/github-star-button.tsx@@ -0,0 +1,43 @@+"use client";++import { useEffect, useState } from "react";+import { GithubLogo, Star } from "@phosphor-icons/react";+import { GITHUB } from "../links";++const REPO_API = "https://api.github.com/repos/leepokai/Codync";+const compact = new Intl.NumberFormat("en", { notation: "compact", maximumFractionDigits: 1 });++// GitHub's own "Star | count" button, as a pill. The count loads in the browser+// (the site is a static export) and is left out when the API can't be reached.+export default function GitHubStarButton() {+ const [stars, setStars] = useState<number | null>(null);++ useEffect(() => {+ const controller = new AbortController();+ fetch(REPO_API, { signal: controller.signal })+ .then((res) => (res.ok ? res.json() : null))+ .then((repo: { stargazers_count?: number } | null) => {+ if (typeof repo?.stargazers_count === "number") setStars(repo.stargazers_count);+ })+ .catch(() => {}); // Rate-limited or offline: the button still works without a count.+ return () => controller.abort();+ }, []);++ return (+ <a+ href={GITHUB}+ target="_blank"+ rel="noopener noreferrer"+ className="inline-flex h-12 items-center gap-2 rounded-full bg-neutral-900 px-6 font-medium text-neutral-100 transition hover:bg-neutral-800 active:scale-[0.98]"+ >+ <GithubLogo size={18} weight="fill" />+ Star on GitHub+ {stars !== null && (+ <span className="ml-1 inline-flex items-center gap-1 text-neutral-400 tabular-nums">+ <Star size={14} weight="fill" />+ {compact.format(stars)}+ </span>+ )}+ </a>+ );+}diff --git a/web/app/components/hero.tsx b/web/app/components/hero.tsxindex e38efdfd..3c8c52b6 100644--- a/web/app/components/hero.tsx+++ b/web/app/components/hero.tsx@@ -1,7 +1,7 @@"use client";import { motion, MotionConfig } from "framer-motion";-import { DeviceMobile, GithubLogo, LinuxLogo, OpenAiLogo, Terminal, WindowsLogo } from "@phosphor-icons/react";+import { DeviceMobile, LinuxLogo, OpenAiLogo, Terminal, WindowsLogo } from "@phosphor-icons/react";import { AppleLogo } from "./apple-logo";import DownloadButton from "./download-button";import Halftone from "./halftone";@@ -10,6 +10,7 @@ import MediaLabel from "./media-label";import LivePhones from "./live-phone/live-phones";import { CharacterAvatar } from "./live-phone/avatar";import AppStoreButton from "./app-store-button";+import GitHubStarButton from "./github-star-button";import { GITHUB, PRODUCT_HUNT } from "../links";const ease = [0.16, 1, 0.3, 1] as const;@@ -98,15 +99,7 @@ export default function Hero() {<motion.div {...rise(0.16)} className="mt-10 flex flex-wrap items-center gap-3"><DownloadButton /><AppStoreButton />- <a- href={GITHUB}- target="_blank"- rel="noopener noreferrer"- className="inline-flex h-12 items-center gap-2 rounded-full bg-neutral-900 px-6 font-medium text-neutral-100 transition hover:bg-neutral-800 active:scale-[0.98]"- >- <GithubLogo size={18} weight="fill" />- Star on GitHub- </a>+ <GitHubStarButton /></motion.div><motion.p {...rise(0.2)} className="mt-6 flex flex-wrap items-center gap-x-4 gap-y-2 text-sm text-neutral-500">