trifold is a tool to quickly & cheaply host static websites using a CDN

33 points by jptsh


I built this to replace my Netlify* workflow for dozens of small static sites & thought others might find it useful. A single config file and you can trifold publish to your heart's content. Unlike free options** it requires a bunny.net CDN account, but you can host as many of your static sites as you want-- $1/month for 100GB of traffic.

*Why not Netlify? Their new billing terms & fact that they're adding more and more complexity & all these sites need is a place to host some HTML/CSS/JS. **Why not GitHub Pages/Cloudflare? I'd really like to help people move away from the same 2-3 companies controlling 95% of what people do online.

valpackett

Oh cool! My "solution" so far has been basically find * -type f -exec curl --fail --request PUT --url https://storage.bunnycdn.com/$BUNNY_BUCKET/{} but having the upload tool actually delete files that shouldn't exist anymore is definitely nicer.

erock

Love it! I host a tiny static site hosting platform because I share similar frustrations with the other tools you mentioned.

For me, local tool install for something as simple as copying static files feels overkill, and some of these tools are not so ergonomic.

https://pgs.sh for anyone interested. I do like the idea of leveraging a cdn like bunny. We decided to build our own tiny cdn to keep costs down for everyone. It’s not really in the same scale as bunny since we only have 2 locations but it has served us well.

owl

Did you compare the performance against anything?

I tried using Bunny for my website, and it actually got worse.

I couldn't find a way to serve pre-compressed .br files for example, and Bunny's compression was not as effective.

The PageSpeed score dropped from perfect to mediocre.

Maybe it got better globally somehow, I wouldn't know how to tell, but for a small website with limited audience, I think I'm better off without it.