Dev.to WebDev 🛠 Dev 👁 0 📖 1 min read

I built a donation button that hides itself once the goal is met

A support button that is always there turns into wallpaper. Visitors see it on every page, every day, and learn to scroll past it. I noticed this on my own site, TCG Pocket Collection Tracker. Its Buy Me a Coffee button

A support button that is always there turns into wallpaper. Visitors see it on every page, every day, and learn to scroll past it.

I noticed this on my own site, TCG Pocket Collection Tracker. Its Buy Me a Coffee button brought in about €30 a month. In September I swapped it for one goal: €50 to cover that month's hosting. It raised €97 in 12 hours, and then the button disappeared until October.

So I built QuietJar, an embeddable support button built around goals that end.

How it works

  • You set a monthly or one-off goal for a real cost, with a progress bar.
  • Supporters pay in two taps right on your page: Apple Pay, Google Pay, cards or iDEAL.
  • Once the goal is met, the button hides itself and comes back when the next period starts.
  • After someone gives, the button stops asking them for 30 days.

The engineering bits

  • One script tag, 11.7 kB gzipped, about 40 ms to load, no layout shift
  • Configurable down to the CSS so it matches your site
  • Built with Bun, Elysia, Better Auth and Astro, hosted in the EU
  • Open source under AGPL-3.0, and self-hosting is supported

Source: https://github.com/goodfolk-eu/quietjar

The hosted version has no monthly fee. It takes 5% of what you receive and covers the card fees.

It launched on Product Hunt today. If you run docs, a blog or an open source project, I'd love your feedback there or in the comments here: https://www.producthunt.com/products/quietjar?utm_source=other&utm_medium=social

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.