Badge request: Cloudflare
- Dominant language
- JavaScript
- Stars
- 27.2k
- Forks
- 5.6k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 46
Description
:clipboard: **Description**
- Which service is this badge for: Cloudflare
- What sort of information should this badge show?
If the website is using Cloudflare CDN or not.
CloudflareCDN | active
CloudflareCDN | offline
:link: **Data**
Where can we get the data from?
- Is there a public API?
Yes, there is.
- Does the API requires an API key?
Yes.
- Link to the API documentation.
https://api.cloudflare.com/
I have limited technical knowledge so I am not sure if the API allows to create the badge I am looking for, but I can see the documentation is huge and I am sure some other badges could be created from this one.
They also have this badge:
https://www.cloudflare.com/logo/
"Dynamic Web Badges
To place these web badges on your website, copy the code next to the badge you want, and paste it where you want to put it on your website. Use the drop-down menu to choose the color you want before copying.
How Is It Dynamic?
Dynamic web badges change depending on the status of your website on Cloudflare. If it is active on Cloudflare, the cloud icon will be orange. If it is not active on Cloudflare, the cloud icon will disappear."
Which would be great to have a shield design for the same thing.
Thanks!
Contributor guide
Research direction
Start with the Cloudflare API documentation linked in the issue and determine which authenticated endpoint can establish whether a website uses Cloudflare CDN. Done means a shield-style badge can represent the requested active and offline states with a defined data source and authentication approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cloud, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100