{"id":13824412,"url":"https://github.com/component/github-buttons","last_synced_at":"2025-12-12T04:54:17.672Z","repository":{"id":8316973,"uuid":"9865683","full_name":"component/github-buttons","owner":"component","description":"Script version of @mdo's Github Buttons","archived":false,"fork":false,"pushed_at":"2018-06-10T04:38:46.000Z","size":220,"stargazers_count":28,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T03:57:16.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-05T07:56:38.000Z","updated_at":"2021-11-03T19:18:29.000Z","dependencies_parsed_at":"2022-07-19T18:08:16.177Z","dependency_job_id":null,"html_url":"https://github.com/component/github-buttons","commit_stats":null,"previous_names":["jonathanong/github-buttons"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/component/github-buttons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgithub-buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgithub-buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgithub-buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgithub-buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/github-buttons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fgithub-buttons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266270467,"owners_count":23902734,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:02.306Z","updated_at":"2025-12-12T04:54:17.626Z","avatar_url":"https://github.com/component.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"## GitHub Buttons\n\n*NOTE: Github Buttons was originally developed by [Jonathan Ong](https://github.com/jongleberry).*       \n\nBasically, a copy-pasta, standalone, Javascript version of [mdo/github-buttons](https://github.com/mdo/github-buttons). The reason for this library is that @mdo's version doesn't work with SSL and using iframes is just silly.\n\nThe CSS is prepended with `.github-btn` to prepend to increase specificity to avoid conflicts with your own CSS.\n\n### Installation\nThe package managers `bower` and `component` can be used to install github-buttons.\n\n```bash\nbower install github-buttons\ncomponent install jonathanong/github-buttons\n```\n\n### API\n\nPlace the buttons wherever on the page. They should have `class=\"github-btn\"`. You may want to have a `class=\"hide\"` as well. You should handle the loading states yourself.\n\nAll options as shown on [mdo/github-buttons](https://github.com/mdo/github-buttons) are available through `data-*` attributes. View the demo for basically every possible variation of buttons.\n\n```html\n\u003c!-- Some HTML markup --\u003e\n\u003cspan class=\"github-btn hide\" data-user=\"seanballais\" data-repo=\"github-buttons\" data-type=\"watch\" data-count=\"1\"\u003e\u003c/span\u003e\n\n\u003cscript src=\"github-buttons.js\"\u003e\u003c/script\u003e\n\u003c!-- Some HTML markup --\u003e\n```\n\nNote that the script should be loaded after all button definitions.\n\n#### githubButtons(el)\n\nYou can load a single button yourself if you'd like. Use this if you load the script before any button definitions.\n\n```js\ngithubButtons(document.querySelector('.github-btn'))\n```\n\n#### githubButtons.all()\n\nLoads all buttons on the page. This is run on script loads automatically.\n\n### License\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Sean Francis N. Ballais sfballais123@gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fgithub-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fgithub-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fgithub-buttons/lists"}