Terence Eden. He has a beard and is smiling.
Theme Switcher:

The cost of running OpenBenches.org

· 2 comments · 800 words


After my recent presentation at FOSDEM, someone asked a pretty reasonable question. What does it cost to run OpenBenches?

It is, thankfully, surprisingly cheap! In part, that's because it is a relatively simple tech stack - PHP, MySQL, a couple of API calls to external services. It was designed to be as low cost while also being useful. Here's the breakdown:

Hosting - £171 per year

Our biggest expense but, I think, our most reasonable. Krystal charges around £342 for a 2 year contract. That includes unlimited bandwidth and storage, as well as the domain name. We have nearly 400GB of photos and bot scraping means we can use over 900GB of bandwidth per month - so Krystal give us a rather good deal!

Graph showing sudden spikes in data use as our bandwidth is consumed by bots.

Use this affiliate link and code EDENT to get a small discount.

Stadia Maps - US$20 / month

Geocoding is surprisingly hard to do locally. We need to transform latitude and longitude into addresses, and then back again. Stadia Maps cost about the same as our hosting! What's rather annoying is that we only use about half the API calls in our plan. We need to find a cheaper solution.

Mapping - Free!

When we used Stadia for drawing maps, we regularly ran over our quota. So we switched to OpenFreeMap which produces gorgeous interactive maps.

The service has been rock solid and very responsive to bugs on GitHub.

Logo - US$5

I'm not a good designer, so we bought a logo from The Noun Project and then coloured it in. Bargain for a fiver!

Image CDN - Free!

Although we have unlimited bandwidth with Krystal, we're only located in one region - the UK. WeServ. It's also pointless serving full resolution images to small screens.

So WeServ offers free image resizing and global CDNs. Personally, I'm not a fan of CloudFlare (their CDN partner) so I'm looking to change provider.

OCR - Free!

People don't want to type in the inscription of the photo, so we use Google Cloud Vision.

We send less than 1,000 requests per month - so we're inside their free tier. If we get more popular, that'll get more expensive. But I don't know of a local-first OCR which is as good as Google's. Sadly, Tesseract is rubbish for extracting text from photos.

Authentication - Free!

We don't want to store anyone's passwords. The free tier of Auth0 allows us to do social login for up to 25,000 monthly users. Which is more than enough for us.

Sadly, Auth0 don't support the Fediverse, so I had to build my own "Log-in with Mastodon" service.

As much as we'd like to run social login locally, we simply don't want to be responsible for securing users' details & API keys.

Software - Free!

As per the OpenBenches colophon we use a lot of cool FOSS. Small JS libraries, big PHP frameworks, and everything in between.

Income

Thanks to GitHub Sponsors we make a whopping US$3 per month!

Similarly, our OpenCollective Sponsors brings in about £3 per month.

Merchandising! You can buy OpenBenches branded t-shirts, mugs, and hats. That nets us about £20 per year

Call it roughly £80 income. OK, it is better than nothing - but doesn't even cover a quarter of our costs. Sometimes people give us a higher donation privately, which is also very welcome. These people are listed on our README.

Total

On the assumption that our time is worthless (ha!) and that we only rarely go over our providers' API limits, and we get in some revenue, the cost of running OpenBenches is less than £300 per year.

That's not bad for a fun little hobby. People certainly spend more than that on Funkopops, vaping, and mechanical keyboards!

Nevertheless, I'm always slightly worried that we'll go viral and have an unexpectedly high bill from our API providers.

I would love to be able to hire a proper designer to make the site look a bit nicer. I also want to be able to buy a modern iPhone so that I can test it in the latest Safari.

If you have any suggestions for cutting costs, or non-scummy ways to help us raise funds, please drop a comment below.


Share this post on…

2 thoughts on “The cost of running OpenBenches.org”

What are your reckons?

All comments are moderated and may not be published immediately. Your email address will not be published.

See allowed HTML elements: <a href="" title="">
<abbr title="">
<acronym title="">
<b>
<blockquote cite="">
<br>
<cite>
<code>
<del datetime="">
<em>
<i>
<img src="" alt="" title="" srcset="">
<p>
<pre>
<q cite="">
<s>
<strike>
<strong>

To respond on your own website, write a post which contains a link to this post - then enter the URl of your page here. Learn more about WebMentions.