mdo/github-buttons

Showcase the success of any GitHub repo or user with these simple, static buttons with dynamic counts.

JavaScript

2,896

378 commits

updated Jul 1, 2026

See the code

README

GitHub Buttons Build Status

Showcase your GitHub (repo's) success with these static buttons featuring links to your GitHub repo or profile page and up-to-date watch, fork, sponsor, and follower counts.

To get started, checkout https://ghbtns.com/!

Bug tracker

Have a bug? Please create an issue here on GitHub at https://github.com/mdo/github-buttons/issues.

Development

Clone the project and install dependencies before getting started. GitHub Buttons require Node.js, Ruby, and Bundler for local development.

npm i
bundle i

The GitHub buttons source code is split across three files in src/—the HTML, CSS, and JS. We use inline-source-cli and html-minifer to include it all in the compiled docs/github-btn.html file. To build this file:

npm run build

The https://ghbtns.com/ site is built with Jekyll. After installing the dependencies, you can run a local server:

bundle exec jekyll serve

Open http://127.0.0.1:4000 to browse locally.

See also

Twitter account

Keep up to date on announcements and more by following Mark on Twitter, @mdo.

Author

Mark Otto

Copyright 2014-2022 Mark Otto. Released under the Apache 2.0 License.

github

mdo/github-buttons

Showcase the success of any GitHub repo or user with these simple, static buttons with dynamic counts.

JavaScript

2,896

378 commits

updated Jul 1, 2026

See the code

README

GitHub Buttons Build Status

Showcase your GitHub (repo's) success with these static buttons featuring links to your GitHub repo or profile page and up-to-date watch, fork, sponsor, and follower counts.

To get started, checkout https://ghbtns.com/!

Bug tracker

Have a bug? Please create an issue here on GitHub at https://github.com/mdo/github-buttons/issues.

Development

Clone the project and install dependencies before getting started. GitHub Buttons require Node.js, Ruby, and Bundler for local development.

npm i
bundle i

The GitHub buttons source code is split across three files in src/—the HTML, CSS, and JS. We use inline-source-cli and html-minifer to include it all in the compiled docs/github-btn.html file. To build this file:

npm run build

The https://ghbtns.com/ site is built with Jekyll. After installing the dependencies, you can run a local server:

bundle exec jekyll serve

Open http://127.0.0.1:4000 to browse locally.

See also

Twitter account

Keep up to date on announcements and more by following Mark on Twitter, @mdo.

Author

Mark Otto

Copyright 2014-2022 Mark Otto. Released under the Apache 2.0 License.

github

Project health

Overall

3.9/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Significant stargazers

(top 24 of 33)

Joscha Feth

251 followers · starred Nov 2011

Xunzhuo

1,397 followers · starred Jan 2022

Jon Rohan

1,196 followers · starred Nov 2011

Haoran MO

280 followers · starred Apr 2019