badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
22.99k stars 5.47k forks source link

Badge Request: Homebrew Cask Installs #10288

Open MichaelHinrichs opened 1 week ago

MichaelHinrichs commented 1 week ago

📋 Description

formulae.brew downloads|69k

🔗 Data

https://formulae.brew.sh/docs/api/

🎤 Motivation

Simple-icons assessing popularity rule 4. https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#assessing-popularity

This badge would streamline pull requests for the simple icons project.

MichaelHinrichs commented 1 week ago

Nevermind, i see it exists now.

MichaelHinrichs commented 1 week ago

New problem: it doesn't work. homebrew downloads https://img.shields.io/homebrew/installs/dm/freetube?logo=homebrew

chris48s commented 1 week ago

I think you've just picked an example where the project is dead. The badge itself does work e.g:

- https://img.shields.io/homebrew/installs/dm/cake

MichaelHinrichs commented 6 days ago

But it's right here. https://formulae.brew.sh/cask/freetube

chris48s commented 6 days ago

I don't use macs so I don't really know what I'm talking about here (someone who uses a mac, please save me) but.. it seems like there are 2 types of homebrew package:

Not 100% sure why/what the difference is.

https://img.shields.io/homebrew/installs/dm/freetube is not found because freetube is the name of a cask, not a formula.

We have got

So the request here is for a Homebrew Cask Installs badge. We should also rename the titles of the existing 3 docs pages for clarity. It looks like the cask API response does contain install stats for the last 30, 90 and 365 days e.g: https://formulae.brew.sh/api/cask/freetube.json