Convert Figma logo to code with AI

dwyl logorepo-badges

:star: Use repo badges (build passing, coverage, etc) in your readme/markdown file to signal code quality in a project.

2,896
1,232
2,896
11

Top Related Projects

4,304

:pencil: Markdown code for lots of small badges :ribbon: :pushpin: (shields.io, forthebadge.com etc) :sunglasses:. Contributions are welcome! Please add yours!

23,382

Concise, consistent, and legible badges in SVG and raster format

A curated list of awesome READMEs

:octocat: Improve your README.md profile with these amazing badges.

:zap: Dynamically generated stats for your github readmes

Quick Overview

The dwyl/repo-badges repository is a comprehensive collection of badges (also known as shields) that can be added to GitHub repository README files. It provides a curated list of badges for various purposes, including code quality, test coverage, build status, and more, along with instructions on how to add them to your projects.

Pros

  • Extensive collection of badges covering a wide range of categories
  • Clear instructions on how to add badges to README files
  • Regularly updated with new badges and information
  • Helps improve the visibility and credibility of open-source projects

Cons

  • Some badges may become outdated or deprecated over time
  • Not all badges are applicable to every project
  • Overuse of badges can clutter README files and reduce readability
  • Maintaining badges requires ongoing effort to keep them up-to-date

Getting Started

To add a badge to your README file, follow these steps:

  1. Choose a badge from the list in the repository.
  2. Copy the Markdown code provided for the badge.
  3. Paste the code into your README.md file where you want the badge to appear.
  4. Replace any placeholder values (e.g., username, repo) with your project's information.

Example for adding a Travis CI build status badge:

[![Build Status](https://travis-ci.org/username/repo.svg?branch=master)](https://travis-ci.org/username/repo)

Replace username and repo with your GitHub username and repository name, respectively.

Competitor Comparisons

4,304

:pencil: Markdown code for lots of small badges :ribbon: :pushpin: (shields.io, forthebadge.com etc) :sunglasses:. Contributions are welcome! Please add yours!

Pros of badges

  • Larger variety of badges available, covering more services and metrics
  • Includes badges for various programming languages and frameworks
  • Offers badges in different styles and formats (e.g., flat, plastic, for-the-badge)

Cons of badges

  • Less focused on specific project quality metrics
  • May require more time to find relevant badges due to the larger selection
  • Some badges may be less commonly recognized or used in the community

Code comparison

repo-badges:

[![Build Status](https://travis-ci.org/dwyl/repo-badges.svg?branch=master)](https://travis-ci.org/dwyl/repo-badges)
[![codecov.io](https://codecov.io/github/dwyl/repo-badges/coverage.svg?branch=master)](https://codecov.io/github/dwyl/repo-badges?branch=master)
[![Code Climate](https://codeclimate.com/github/dwyl/repo-badges/badges/gpa.svg)](https://codeclimate.com/github/dwyl/repo-badges)

badges:

![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)
[![Made withJupyter](https://img.shields.io/badge/Made%20with-Jupyter-orange?style=for-the-badge&logo=Jupyter)](https://jupyter.org/try)
[![Open Source Love svg1](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)

repo-badges focuses on essential project quality metrics, while badges offers a wider range of badges for various technologies and purposes. The code examples demonstrate the difference in badge styles and content between the two repositories.

23,382

Concise, consistent, and legible badges in SVG and raster format

Pros of shields

  • Extensive library of pre-defined badges for various services and metrics
  • Highly customizable with options for custom logos, colors, and styles
  • Supports dynamic badges that can be updated in real-time

Cons of shields

  • More complex setup and configuration required
  • Steeper learning curve for creating custom badges
  • Requires external service dependency for badge generation

Code comparison

shields:

const shieldsio = require('shields-io');

const badge = shieldsio({
  text: ['build', 'passing'],
  color: 'green',
  style: 'flat-square'
});

repo-badges:

[![Build Status](https://img.shields.io/travis/username/repo.svg?style=flat-square)](https://travis-ci.org/username/repo)

Summary

shields offers a more comprehensive and flexible solution for creating and customizing badges, with support for a wide range of services and metrics. It provides dynamic badge generation and real-time updates, making it suitable for complex projects with diverse badge requirements.

repo-badges, on the other hand, offers a simpler approach with pre-defined markdown snippets for common badges. It's easier to implement for basic use cases but lacks the advanced customization options and dynamic capabilities of shields.

Choose shields for projects requiring extensive badge customization and real-time updates, while repo-badges is suitable for simpler projects with basic badge needs.

A curated list of awesome READMEs

Pros of awesome-readme

  • Provides a comprehensive collection of exemplary README examples and elements
  • Includes a wider range of README-related resources, such as tools and articles
  • Offers a more curated and organized list of badges and shields

Cons of awesome-readme

  • Less focused on badges specifically, covering a broader range of README topics
  • May require more time to navigate and find specific badge information
  • Does not provide direct code snippets for badge implementation

Code Comparison

repo-badges:

[![Build Status](https://travis-ci.org/dwyl/esta.svg?branch=master)](https://travis-ci.org/dwyl/esta)

awesome-readme:

No direct code snippets provided for badge implementation

Summary

repo-badges is a focused repository specifically for badges and shields, providing direct code snippets for easy implementation. awesome-readme, on the other hand, offers a more comprehensive guide to creating excellent READMEs, including badges as part of a broader set of resources. While awesome-readme provides a wider range of information and examples, it may require more time to find specific badge-related content. repo-badges is more straightforward for users looking exclusively for badge implementation, but lacks the additional README-related resources found in awesome-readme.

:octocat: Improve your README.md profile with these amazing badges.

Pros of Badges4-README.md-Profile

  • Offers a wider variety of badge categories, including social media and streaming platforms
  • Provides more customization options for badge styles and colors
  • Includes badges for specific technologies and frameworks

Cons of Badges4-README.md-Profile

  • Less focus on project-specific badges (e.g., build status, test coverage)
  • May have a steeper learning curve due to the larger number of options
  • Some badges may require manual updates, unlike automated CI/CD badges

Code Comparison

repo-badges:

[![Build Status](https://travis-ci.org/dwyl/repo-badges.svg?branch=master)](https://travis-ci.org/dwyl/repo-badges)
[![codecov.io](https://codecov.io/github/dwyl/repo-badges/coverage.svg?branch=master)](https://codecov.io/github/dwyl/repo-badges?branch=master)

Badges4-README.md-Profile:

![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)
![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)

The code comparison shows that repo-badges focuses on project-specific badges, while Badges4-README.md-Profile offers more visually appealing badges for technologies and skills. repo-badges uses dynamic badges that update automatically, whereas Badges4-README.md-Profile provides static badges with customizable styles.

:zap: Dynamically generated stats for your github readmes

Pros of github-readme-stats

  • Dynamic content generation with real-time GitHub stats
  • Customizable themes and layouts for badges
  • Supports multiple languages and frameworks

Cons of github-readme-stats

  • Requires external API calls, potentially slowing down README load times
  • More complex setup process compared to static badges
  • Limited to GitHub-specific metrics

Code Comparison

repo-badges (static badge):

[![Build Status](https://travis-ci.org/dwyl/repo-badges.svg?branch=master)](https://travis-ci.org/dwyl/repo-badges)

github-readme-stats (dynamic stats card):

![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&show_icons=true&theme=radical)

Summary

repo-badges offers a straightforward collection of static badges for various services and metrics. It's simple to implement and doesn't require any external dependencies.

github-readme-stats provides dynamic, customizable GitHub statistics cards and language usage graphs. It offers more detailed insights but requires API calls and hosting on Vercel.

Choose repo-badges for simplicity and quick implementation of common badges. Opt for github-readme-stats when you want to showcase detailed, up-to-date GitHub statistics with a visually appealing design.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Code Repository Badges

build passing

Why? start with why

As people who are passionate about writing great code we display "badges" in our code repositories to signal to fellow developers that we set ourselves high standards1 for the code we write, think of them as the software-equivalent of the brand on your jeans or other reliable product.

What?

We use the following badges (listed in order of importance):

  • Documentation - Inline docs most people don't think of documentation as the "priority" for their (technical) project, instead people focus on solving the problem challenge e.g. by writing some code, and if it works, they add a TODO to "improve the docs" ... It may initially be counter-intuitive to think of Documentation as being the highest priority or first activity in a technical project but there are several reasons why it is:

    • Clearly setting out your own understanding of "the challenge" and then formulating a Question to be answered is the basis for "The Scientific Method". Without it you are like a blind-folded camel in the desert; unlikely to go straight to the oasis!
    • Describing your "success factors" or "acceptance criteria" before you start so you know when you've achieved your goal!
    • Communicating with current collaborators what problem you are/were trying to solve.
    • Making it immediately clear to everyone if you have succeeded in solving the challenge
    • Saves time in the short-run because you are immediately focused on the challenge and don't waste time on distractions.
  • Security - Known Vulnerabilities - Snyk Dependency Security Vulnerability Checking for your project: https://snyk.io/ is a free service provided by the lovely people at Snyk that checks if any of your dependencies have a security vulnerability. This badge is a great way to reassure people using your app/site that security is being checked.

Top tip: Guy Podjarny @guypod the founder of Snyk hosts "The Secure Developer" Podcast.
It's a "must" for all devs! Subscribe if you aren't already: https://www.heavybit.com/library/podcasts/the-secure-developer

  • Continuous Integration - Build Status - "build passing" indicates that the project's tests all pass as expected. If you see that the build for a project is "broken" it means the software does not work as advertised! This is a clear sign that you should not be using it (until it gets fixed!) ... check the repo's issues to see if it's a known problem, if not, report it!
    We use Travis CI for our CI. We wrote a little how-to/tutorial to help you (and your team) get started: https://github.com/dwyl/learn-travis

  • Test/Code Coverage - codecov.io Code Coverage - coverage is the measure of how much of the code in a project is tested. Anything below 100% coverage means the module/library has potential bugs which are unknown to the authors/users. We avoid using modules with less than 100% coverage and encourage others to question why the authors did not put in the time to test their code... ALL our code is tested. we cannot guarantee every line is "bug-free", (and always welcome people reporting any issues!) however we are meticulous about testing our work and always add regression/edge test cases where bugs are discovered!

  • CodeClimate - Code Climate - is the code quality score for a project measured on a number of factors including Complexity/Simplicity, Readability, Maintainability, Repetition and Line-count-per-file . The maximum score is 4.0 and we obviously strive to achieve this level in all our work. https://github.com/dwyl/learn-codeclimate

  • JavaScript the goodparts (code style/linting) - JavaScript Style Guide: Good Parts ... "Third Party" Code analysis services like CodeClimate (above) are really useful to have an "objective" (impartial) measure for the complexity/maintainability of your codebase, however you may want to take code-style/readability to the next level by using a specific style across all your projects ... Having harmony in your codebase is really useful/practical because it reduces the "thinking time". People working on the project need in order to understand (and thus maintain/extend) existing code. There are a few JavaScript "style guides" which help you & your team write consistent JS. We like goodparts because of these reasons, however we encourage you to make up your own mind as to which style to use (preferably based on sound reasoning not fashion...)

  • Dependencies - Dependency Status - knowing your module/project has (and works with) the latest versions of all its dependencies is a good way to signal that any bug-fixes/performance improvements/security patches etc in the component modules/libraries are considered in by the authors. We use https://david-dm.org/ to track our dependencies. david-dm is lovingly maintained by @alanshaw of TableFlip (a fellow dwyler!) and is a great resource for the node.js community!

  • devDependencies - devDependencies Status - your devDependencies are the modules used in testing/building your project. These do not need to be the latest versions because you will typically not install your devDependencies on your production server (so there aren't security vulnerabilities in production of having out-of-date devDependencies...) however, we encourage use of latest devDependencies because it means better stability in the build (fewer bugs in our tools!) and it makes it easier for new people joining the project because when they npm install they know everything is the latest version.

  • NPM Module Version - NPM Version this is a simple convenience to signal to fellow developers which version is the latest for your module. (saves them having to look at the package.json) If you want to include one in your readme, go to: https://badge.fury.io/for/js and type in your npm package name.

  • NPM Module Download Stats - NPM Download Stats - while this can be seen as a "vanity metric" it can also be useful to know if your project is actually being used by people in the community to know if you need keep supporting it.

How?

Build Passing Build Status

GitHub Actions/Workflows

If you are using GitHub Actions/Workflows https://github.com/features/actions to run your Continuous Integration (CI), then you can include a badge in your project's README.md: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/adding-a-workflow-status-badge

Regular badge template:

![example workflow](https://github.com/<OWNER>/<REPOSITORY>/actions/workflows/<WORKFLOW_FILE>/badge.svg)

e.g:

![GitHub CI](https://github.com/dwyl/auth_plug/actions/workflows/ci.yml/badge.svg)

GitHub CI

Custom badge via Shields.io: https://shields.io/category/build image

Example:

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/dwyl/auth_plug/Elixir%20CI?label=build&style=flat-square)

GitHub Workflow Status


Travis-CI

You'll need to setup your project on Travis-CI and write unit tests (preferably TDD!) for this to work ... if you're stuck ask us how!

[![Build Status](https://travis-ci.org/{ORG-or-USERNAME}/{REPO-NAME}.png?branch=master)](https://travis-ci.org/{ORG-or-USERNAME}/{REPO-NAME})

CodeClimate

Setup your repository by adding it on code climate then copy the badge markdown from them!

For more detailed instructions see: https://github.com/dwyl/learn-codeclimate

Coverage

The new kid on the block for Test Coverage is "CodeCov": https://codecov.io/#features
We love their features especially the fact that they check coverage for pull requests! see: https://github.com/dwyl/learn-istanbul#tracking-coverage-as-a-service

To setup codecov simply add the following lines to your .travis.yml file:

before_install:
  - pip install --user codecov
after_success:
  - codecov --file coverage/lcov.info --disable search

And remember to output a coverage report in your tests using istanbul, by adding it to your test script in your package.json so that travis can send the coverage report to codecov e.g:

"scripts": {
  "test": "./node_modules/.bin/istanbul cover ./node_modules/tape/bin/tape ./test/*.js"
}

If you are new to test coverage using istanbul check out: learn-istanbul

Working example: hits/.travis.yml

Note: you can still use CodeClimate for Coverage if you prefer,
we're excited that there is more choice in the JS testing space!

goodparts JavaScript Code Style JavaScript Style Guide: Good Parts

Once you have installed goodparts and used it to lint your code, see: https://github.com/dwyl/goodparts#how you can include a badge in your repo to inform others of your choice of code style.

[![JavaScript Style Guide: Good Parts](https://img.shields.io/badge/code%20style-goodparts-brightgreen.svg?style=flat)](https://github.com/dwyl/goodparts "JavaScript The Good Parts")

See: https://github.com/dwyl/goodparts

Why? start with why

## Why? [![start with why](https://img.shields.io/badge/start%20with-why%3F-brightgreen.svg?style=flat)](https://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action)

Node.js Version your Project/Module Supports: NPM version

[![Node version](https://img.shields.io/node/v/[NPM-MODULE-NAME].svg?style=flat)](https://nodejs.org/download/)

NPM Download Statistics

To show download stats for your NPM package, use https://nodei.co/ e.g:

NPM Download Stats

If you want the image to be clickable use the following Markdown:

[![https://nodei.co/npm/YOUR-MODULE-NAME.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/YOUR-MODULE-NAME.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/YOUR-MODULE-NAME)

Contributing contributions welcome

If you want to encourage people to contribute to your project, by reminding them that you welcome their input use this badge!

## Contributing [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues)

Gitter (Chat for Developers!)

Join the chat at https://gitter.im/dwyl/chat

[![Join the chat at https://gitter.im/{ORG-or-USERNAME}/{REPO-NAME}](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dwyl/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

dwyl chat button:

If you are working on a project in the dwyl organisation and want to include the button to let people join our public chat channel, copy paste this markdown snippet into the README.md of the project you are working on:

[![Join the chat at https://gitter.im/dwyl/chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dwyl/chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

(GitHub Repo) Hit Counter HitCount

Ever wanted to know how many people have viewed your GitHub Repo?
We did ... So we wrote a tiny script that counts views! :open_mouth:

Visit: https://hits.dwyl.com to get your "Hit Count" badge.

Template:

[![HitCount](https://hits.dwyl.com/{username}/{project-name}.svg)](https://hits.dwyl.com/{username}/{project-name})

Example:

[![HitCount](https://hits.dwyl.com/dwyl/start-here.svg)](https://hits.dwyl.com/dwyl/start-here)

Yes, we know that for some people, "hits" = "How Idiots Track Success" ... but, in the absence of better analytics, page views are a good metric to be aware of! :chart_with_upwards_trend:

Snyk Proactive Security Vulnerability Detection

See: snyk-security-scanning.md

Thank You!

Help spread the Code Quality Love! :heart:
Please :star: this repo and share it with others by re-tweeting:

repo-bages-please-retweet


Others

If you need to adapt any of the images or create your own: https://shields.io

Extra High-resolution

We needed High-resolution versions of the coding badges for a presentation about testing so we made PNGs from the SVGs ...

These are in the folders in this repo in case they are useful to someone else.

1Other repositories that do not have these badges are not necessarily "worse" or have "low standards", they simply are not making them explicit .