endel / shieldsio-patreon

🛡 Shields.io endpoint to display amount of donations/patrons you have on Patreon
https://shieldsio-patreon.vercel.app/
MIT License
36 stars 32 forks source link

Sponsorship (or Why Only a Heroku Free Plan?) #8

Open soatok opened 4 years ago

soatok commented 4 years ago

shieldsio-patreon

Is there any way we can... I dunno, sponsor your work to ensure these badges stay available towards the end of the month?

My idea goes like this:

(People)         (You)             (Heroku)
 P ---- $ ------>
   P ---- $ ----v
P ----- $ -----> endel ---- $ ----> heroku
  P  --- $ -----^   |
P ----- $ ------^   |
                    |
                  $$$$
                    |
                    v
                (your bank)

Maybe we could use some sort of monthly patronage platform to facilitate such a thing? Crazy idea, right?


No but in all seriousness Heroku isn't super expensive and I could probably personally float this bill but since you built a simple thing that's useful for a lot of open source developers, I think it'd only be fair for you to benefit from it as much as we do. (And the upside: We won't have end-of-the-month banner outages anymore.)

endel commented 4 years ago

Hi @soatok, I also find this a bit annoying...

I would be really awesome if more people stepped up with such a solution 😅 😅

From popular repositories I only know https://github.com/vlang/v that's also using my endpoint - probably there are more that I'm not aware of because the Heroku usage used to expire a bit later than this.

If you can I'd appreciate a donation, my Patreon page is mostly related to Colyseus's projects, although I built this for Colyseus as well 😅

I think I can deploy & maintain a simple DigitalOcean machine for this soon!

endel commented 4 years ago

I was searching and found that Patreon already provides an official API for retrieving campaign data: https://github.com/badges/shields/issues/3585#issuecomment-689141583

URL for my campaign: https://www.patreon.com/api/campaigns/365642 Full Shields.io Image URL: https://img.shields.io/badge/dynamic/json?logo=patreon&style=for-the-badge&color=%23e85b46&label=Patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F365642

Unfortunately, without a custom endpoint, it is not possible to display the amount in $$$, only the number of patrons, which may be enough for most cases!

(API Docs: https://docs.patreon.com/#introduction)

soatok commented 4 years ago

I would honestly rather pay $X/month (where X >= the hosting costs + processing fees + misc overhead) to make the problem go away for everyone who uses this. :3

On Mon, Sep 28, 2020, 12:31 PM Endel Dreyer notifications@github.com wrote:

I was searching and found that Patreon already provides an official API for retrieving campaign data: badges/shields#3585 (comment) https://github.com/badges/shields/issues/3585#issuecomment-689141583

URL for my campaign: https://www.patreon.com/api/campaigns/365642 Full Shields.io Image URL: https://img.shields.io/badge/dynamic/json?logo=patreon&style=for-the-badge&color=%23e85b46&label=Patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F365642

https://camo.githubusercontent.com/e560cc0e304a72f40ccfe6f626dbf1838eedd247/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f6c6f676f3d70617472656f6e267374796c653d666f722d7468652d626164676526636f6c6f723d253233653835623436266c6162656c3d50617472656f6e2671756572793d646174612e617474726962757465732e706174726f6e5f636f756e74267375666669783d253230706174726f6e732675726c3d68747470732533412532462532467777772e70617472656f6e2e636f6d25324661706925324663616d706169676e73253246333635363432

Unfortunately, without a custom endpoint, it is not possible to display the amount in $$$, only the number of patrons, which may be enough for most cases!

(API Docs: https://docs.patreon.com/#introduction)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/endel/shieldsio-patreon/issues/8#issuecomment-700144629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6HUHUQAYTWDKAXKFGDCULSIC25XANCNFSM4R4CH2IQ .

hex2f commented 4 years ago

@soatok you could look at using vercel cloud functions, that's what i did to get a badge up and running for our repo again vlang patreon

Here's the little api i made: patreon.leah.vercel.app/api/dollars?campaign=2489866, it's just 11 lines of code so its super easy to create your own if you dont want to rely on mine.

hex2f commented 4 years ago

I forgot to mention: vercel is completely unlimited and free, they rely on enterprise customers to pay the bills.

soatok commented 4 years ago

If you can I'd appreciate a donation, my Patreon page is mostly related to Colyseus's projects, although I built this for Colyseus as well 😅

I joined your $30/month tier. Let me know if DO bills higher and I'll manually increase my contribution.

endel commented 4 years ago

Thank you so much for supporting me @soatok :pray:

As @leahlundqvist suggested, I've set it up on Vercel and created a very simple generator page to configure your badge, you can check it out here: https://shieldsio-patreon.vercel.app/

I'll make sure to keep the tool up-to-date in case Patreon updates its website. Thanks!