Coder Social home page Coder Social logo

curseforgebadge-unofficial's Introduction

CurseForgeBadge (Unofficial)

A little badge/shield for minecraft mods/packs/... on CurseForge. This service is not affiliated with CurseForge.

Usage

The base url is https://cf.way2muchnoise.eu. Both http and https are available.

Changed some stuff around based on feedback from @itsmeow and GitHub now likes my https.
So you can also use it in your .md files on GitHub with https now!

Possible patterns

  • /<project>.svg: project being either the id or name(link in the url).
    • -> https://cf.way2muchnoise.eu/240630.svg
    • -> https://cf.way2muchnoise.eu/jei.svg
  • /<style>_<project>_<extra>.svg: style can either short or full, extra is optional text to be appended
    • -> https://cf.way2muchnoise.eu/short_jei.svg
    • -> https://cf.way2muchnoise.eu/full_240630_downloads.svg
  • /versions/<project>.svg: project being either the id or name(link in the url).
    • -> https://cf.way2muchnoise.eu/versions/jei.svg
    • -> https://cf.way2muchnoise.eu/versions/240630.svg
  • /versions/<text>_<project>_<style>.svg: text is optional and replaces the default Available for text. The style can be either all or latest
    • -> https://cf.way2muchnoise.eu/versions/jei_latest.svg
    • -> https://cf.way2muchnoise.eu/versions/For%20MC_240630_all.svg

For many more patterns see https://cf.way2muchnoise.eu

curseforgebadge-unofficial's People

Contributors

beatrix-droid avatar jaredlll08 avatar siphalor avatar tterrag1098 avatar way2muchnoise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

curseforgebadge-unofficial's Issues

nginx error

nginx error, page only shows the "The page you are looking for is temporarily unavailable. Please try again later." and all badges are down.

I first noticed it some hours ago, got to reporting it only now.

Website / Service down?

The website and service that runs the badges behind the scenes seem to be down, no badges that make use of this load and show broken/failed to load images instead.

Navigating to https://cf.way2muchnoise.eu/ leads to the browser timing out

image

Website certificate expired

The certificate of your website expired today. So the badges are no longer displayed and the page is no longer accessible in a secure way.

image

Please re-new the Let's Encrypt certificate.

Available for: Error

The /versions/ badge for my new mod shows an error instead of the versions:

![](http://cf.way2muchnoise.eu/versions/always-drop-loot.svg)

The downloads badge works just fine for the same mod:

![](http://cf.way2muchnoise.eu/always-drop-loot.svg)

Add number of deps

Add a badge similar to the mod pack, that shows how many mods depend on it. This might be useful for library mods.

Badge displayed correctly when visiting URL but not in README.md

I am using the following text to show the badge in my readme:
[![Download on CF](https://cf.way2muchnoise.eu/title/361476_Get_on%20CF.svg?badge_style=for_the_badge)](https://www.curseforge.com/minecraft/mc-mods/youmatter)
When I visit the URL https://cf.way2muchnoise.eu/title/361476_Get_on%20CF.svg?badge_style=for_the_badge in my browser, everything works but the badge shows the Alt text when used in the readme.

nginx error

The page you are looking for is temporarily unavailable. Please try again later.

I don't know if you already know about it but it's down atm. Didn't know where I could contact you :)

Flat and square styles are swapped

Currently requesting http://cf.way2muchnoise.eu/heart-of-the-machine.svg?badge_style=flat
displays this badge: Heart of the Machine
while requesting http://cf.way2muchnoise.eu/heart-of-the-machine.svg?badge_style=square
displays this badge: Heart of the Machine

Certificate Issue?

Unsure what this is about but Bitdefender kept alerting me when I opened chrome. I looked it up and this GitHub is the first thing I found.
image

Add https

Setup apache or nginx and setup SSL certificate

Generic titles are not found in API search

Certain mod names seem to return an error image on my browser instead of the relevant statistics; there doesn't appear to be any rhyme or reason as to which mod names work and which don't. Are these issues happening for everyone or is my web browser broken? (You're welcome to check the links, I believe they're correct.)

These throw an error for me

not-enough-crashes   Not Enough Crashes (Fabric)
tinkers-construct   Tinker's Construct
create   Create

While these work normally

flywheel   Flywheel
inmis   Inmis
cloth-config   Cloth Config

How to use names with underscores in them

Hello way2muchnoise,

I'm trying to figure out how I can create a total downloads badge for a user with an underscore in their name. Example: Corgi_Taco.
Was wondering whether there's a way to escape said underscore somehow.

Cheers,
Griefed

[Feature Request] Add shields.io compatible endpoint

Could you add a shields.io endpoint badge compatible endpoint?

For example the following json would return this badge:

{
  'schemaVersion': 1,
  'label': 'downloads',
  'labelColor': 'E04E14',
  'message': '14,883,554',
  'color': '2D2D2D',
  'cacheSeconds': 86400,
  'style': 'for-the-badge',
  'logoSvg': '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 43 24"><path fill="#131313" d="M11.3 0l.7 3H0s.2.9.3 1c.3.5.6 1.1 1 1.5 1.9 2.2 5.2 3.1 7.9 3.6 1.9.4 3.8.5 5.7.6l2.2 5.9h1.2l.7 1.9h-1L16.3 23H33l-1.7-5.5h-1l.7-1.9h1.2s1-6.1 4.1-8.9c3-2.8 6.7-3.2 6.7-3.2V0H11.3zm16.8 15.1c-.8.5-1.7.5-2.3.9-.4.2-.6.8-.6.8-.4-.9-.9-1.2-1.5-1.4-.6-.2-1.7-.1-3.2-1.4-1-.9-1.1-2.1-1-2.7v-.1-.2c0-.1 0-.2.1-.3.2-.6.7-1.2 1.7-1.6 0 0-.7 1 0 2 .4.6 1.2.9 1.9.5.3-.2.5-.6.6-.9.2-.7.2-1.4-.4-1.9-.9-.8-1.1-1.9-.5-2.6 0 0 .2.9 1.1.8.6 0 .6-.2.4-.4-.1-.3-1.4-2.2.5-3.6 0 0 1.2-.8 2.6-.7-.8.1-1.7.6-2 1.4v.1c-.3.8-.1 1.7.5 2.5.4.6.9 1.1 1.1 1.9-.3-.1-.5 0-.7.2-.2.2-.3.6-.2.9.1.2.3.4.5.4H27c.3-.1.5-.5.4-.8.2.2.3.7.2 1 0 .3-.2.6-.3.8-.1.2-.3.4-.4.6-.1.2-.2.4-.2.6 0 .2 0 .5.1.7.4.6 1.2 0 1.4-.5.3-.6.2-1.3-.2-1.9 0 0 .7.4 1.2 1.8.4 1.2-.3 2.6-1.1 3.1z"/></svg>',
  'logoWidth': '25'
}

Which can also still be customized by the user:

no label

different style


Incomplete certificate chain

The certificate chain for cf.way2muchnoise.eu is served incomplete, resulting in some browsers and servers not being able to properly request HTTPS for the badges. This means things like GitHub's cache will not properly display the badges (see https://github.com/itsmeow/betteranimalsplus README), because it cannot verify the SSL certificate.

You need to add the full chain to the PEM / update your SSL configuration to include a full chain.

See here: https://www.ssllabs.com/ssltest/analyze.html?d=cf.way2muchnoise.eu&hideResults=on
image
The R3 certificate is not included in the server's keychain.

This results in failure for HTTPS requests with full chain verification
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.