为什么要在网站上使用免费可嵌入的GitHub stars badge?
The free GitHub stars badge that doesn't slow your page or eat your repo's API quota. Shields.io renders a flat SVG via 3rd-party requests on every page load. Star-history.com is heavyweight. This GitHub stars badge is a 4 KB script tag — pulls the live stargazer count from GitHub's public API, caches it server-side for 6 hours, and shows '★ 42.3k stars' as a crisp pill in 6 themes. Free, no signup, no API key.
适用于 WordPress、Shopify、Wix、Webflow 和纯 HTML 的GitHub stars badge
FeedPulse 的GitHub stars badge只是一个异步 <script> 标签 — 粘贴到任意 HTML 区域即可完成。WordPress 小工具/HTML 区块、Shopify 主题自定义器的自定义 HTML、Wix 的 HTML 元素、Webflow 的 Embed 组件、Squarespace 的代码区块、Ghost 的 HTML 卡片、Blogger 的 HTML/JavaScript 小工具 — 任何允许粘贴 HTML 的平台都支持。无需插件、无需应用商店、无需管理员权限。
如何在 60 秒内把GitHub stars badge添加到你的网站
- 打开 Free GitHub stars badge 自定义器。
- 选择颜色、尺寸和需要的选项。
- 点击生成代码片段上的“复制”。
- 把这一行粘贴到任何你会放 HTML 的位置 — 任意页面、任意平台。
- 完成。无需注册、无需账号、无需邮箱。
FeedPulse 的GitHub stars badge为何永久 100% 免费
我们提供的每个小工具都永久免费。API 成本由我们承担,因为我们的增长模式就是小工具的传播:每个小工具上那行小小的“via FeedPulse”署名会带来新的站长。你安装小工具 → 我们获得曝光。整个商业模式就是如此。没有付费墙、没有高级套餐、没有广告、不收集邮箱、没有注册门槛。
GitHub stars widget vs static SVG badge — when to use each
A GitHub stars widget is the live, script-tag version of the same idea Shields.io ships as a flat SVG. The trade-off: an SVG badge renders without JS and works in markdown files (READMEs, npm package pages, Hacker News submissions), while a GitHub stars widget renders only on web pages but updates instantly without re-fetching an image. Use the SVG for GitHub README and npm package descriptions. Use the GitHub stars widget for your project landing page, docs site, or open-source portfolio — anywhere a richer presentation is worth the extra 4 KB of script.
How to embed GitHub stars in a README or website
To embed GitHub stars in a README you use the classic Shields.io SVG (img.shields.io/github/stars/{owner}/{repo}.svg) — GitHub strips inline scripts, so this is the only way. To embed GitHub stars on a website (Webflow, Notion-published site, WordPress, Shopify, plain HTML), paste the FeedPulse script tag instead. The widget pulls api.github.com/repos/{owner}/{repo} once and caches the result server-side for 6 hours, so star spikes from a Hacker News front-page hit don't blow through your repo's API rate limit.
Shields.io alternative — when a script tag beats an SVG
Shields.io is the gold standard for markdown badges. As a Shields.io alternative for live web pages, the FeedPulse GitHub stars badge has 3 advantages: (1) star counts update without refetching an image on every page load — the count is rendered once server-side and cached, so visitors don't wait on shields.io's CDN. (2) 6 visual themes (flat, pill, monochrome, retro, gradient, glass) instead of the 4 Shields.io presets. (3) Click-through opens your repo, so the badge doubles as a discoverability CTA. Keep Shields.io for READMEs; use this Shields.io alternative for your project's web home.