dwyl/repo-badges
repository·main·Indexed 25 days ago
https://github.com/dwyl/repo-badgesA collection of high-quality badges for code repositories to signal project health, security, documentation, and quality standards. Includes guides for integrating badges from Inch-CI, Snyk, Codecov, CodeClimate, Badge Fury, Nodei.co, david-dm.org, GitHub Actions, Travis CI, and Gitter, as well as a GitHub repository hit counter via hits.dwyl.com.
What's inside repo-badges
- This project provides a collection of badges used in code repositories to signal high standards to fellow developers. These badges act as visual indicators for various project health and quality metrics, including documentation status, security, continuous integration, test coverage, code quality, and dependency status.
Add Test/Code Coverage Badge via Codecov
mainCode coverage measures how much of your code is exercised by tests. Using a Codecov badge helps communicate the level of testing rigor in a project.Add GitHub repository hit counter badges
mainTo track and display how many people have viewed your GitHub repository, visit https://hits.dwyl.com to generate a badge.
Template:
[](https://hits.dwyl.com/{username}/{project-name})[](https://hits.dwyl.com/dwyl/start-here)Add Code Quality Score Badge via CodeClimate
mainCodeClimate provides a code quality score (up to 4.0) based on factors like complexity, readability, maintainability, repetition, and line count per file.Add Continuous Integration (Build Status) Badge
mainA build status badge (e.g., from Travis CI) indicates whether the project's tests are currently passing. A 'broken' build is a signal that the software may not work as advertised.Add Gitter chat badges
mainEncourage users to join your developer chat by adding a Gitter badge.
General template:
[](https://gitter.im/{ORG-or-USERNAME}/{REPO-NAME})dwyl organization template: If you are working within the
dwylorganization, use this specific snippet:[](https://gitter.im/dwyl/chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Add NPM Module Version Badge via Badge Fury
mainTo signal the latest version of your NPM module without users needing to checkpackage.json, use Badge Fury. Visithttps://badge.fury.io/for/jsand enter your npm package name to get the badge.Add Travis-CI build status badges
mainTo include a Travis-CI build status badge, ensure your project is set up on Travis-CI with unit tests. Use the following Markdown template, replacing the placeholders with your organization/username and repository name.
[](https://travis-ci.org/{ORG-or-USERNAME}/{REPO-NAME})Setup CodeCov for test coverage badges
mainTo track and display test coverage using CodeCov, follow these steps:
- Configure
.travis.yml: Add thecodecovinstallation and execution steps to your Travis configuration. - Generate Coverage Report: Ensure your test script (e.g., in
package.json) outputs a coverage report using a tool likeistanbul.
Example
.travis.ymlconfiguration:before_install: - pip install --user codecov after_success: - codecov --file coverage/lcov.info --disable searchExample
package.jsontest script:"scripts": { "test": "./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape ./test/*.js" }- Configure
Add NPM download statistics badges
mainTo show NPM download statistics, use nodei.co.
To make the badge clickable (linking to your NPM package), use this template, replacing
YOUR-MODULE-NAMEwith your package name:[](https://www.npmjs.com/package/YOUR-MODULE-NAME)Add GitHub Actions/Workflows status badges
mainYou can display the status of your GitHub Actions workflows in your
README.md.Regular template: Use the following pattern to point to your specific workflow file:
Custom badge via Shields.io: You can also use Shields.io to create custom styled badges for your workflows.
 Add Security Vulnerability Badge via Snyk
mainUse Snyk to check for security vulnerabilities in your project's dependencies. Adding a Snyk badge reassures users that security is being actively monitored.