Shields

Shields

Open Source Projects

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

Visit API

πŸ“š Documentation & Examples

Everything you need to integrate with Shields

πŸš€ Quick Start Examples

Shields Javascript Examplejavascript
// Shields API Example
const response = await fetch('https://shields.io/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

The Badges API offers developers a streamlined solution for generating visually appealing badges in both SVG and raster formats. With a focus on clarity and consistency, the API allows you to create badges that effectively convey important information about your projects, services, or software metrics. Utilizing this API enhances the aesthetics of your documentation and repositories, ensuring that your audience can instantly grasp critical data at a glance. The simplicity of its design ensures that developers can seamlessly integrate badge creation into their existing workflows, enhancing the overall user experience.

By using the Badges API, you can take advantage of several key benefits:

  • Generate high-quality badges in multiple formats (SVG and PNG).
  • Customize badge colors and labels to fit your branding needs.
  • Improve readability and visibility for code repositories or documentation.
  • Save development time with easy-to-use endpoints.
  • Enhance the professional appearance of your projects.

Here’s a simple JavaScript example for calling the Badges API to create a badge:

const badgeUrl = "https://img.shields.io/static/v1?label=Build&message=Passing&color=success";

fetch(badgeUrl)
    .then(response => response.blob())
    .then(imageBlob => {
        const imageObjectURL = URL.createObjectURL(imageBlob);
        document.querySelector("#badge").src = imageObjectURL;
    })
    .catch(error => console.error('Error fetching badge:', error));
πŸ”’

Security Assessment

F
πŸ”’HTTPS
Enabled
SSL Grade: T
πŸ›‘οΈHeaders
0/100
πŸ•’Last Assessed
1 months ago
ℹ️Click for detailed analysis

πŸ“Š 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jul 5Jul 7Jul 9Jul 11Jul 13Jul 15Jul 17Jul 19Jul 21Jul 23Jul 25Jul 27Jul 29Jul 31Aug 304008001440Minutes
Online
Offline

Related APIs in Open Source Projects