Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
soatok opened this issue Sep 28, 2020 · 7 comments
Open

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

soatok opened this issue Sep 28, 2020 · 7 comments

Comments

@soatok
Copy link

soatok commented Sep 28, 2020

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
Copy link
Owner

endel commented Sep 28, 2020

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
Copy link
Owner

endel commented Sep 28, 2020

I was searching and found that Patreon already provides an official API for retrieving campaign data: badges/shields#3585 (comment)

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
Copy link
Author

soatok commented Sep 28, 2020 via email

@hex2f
Copy link

hex2f commented Oct 21, 2020

@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
Copy link

hex2f commented Oct 21, 2020

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

@soatok
Copy link
Author

soatok commented Oct 24, 2020

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 added a commit that referenced this issue Oct 24, 2020
@endel
Copy link
Owner

endel commented Oct 24, 2020

Thank you so much for supporting me @soatok 🙏

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants