hi, I made a site that tracks my library's used book sales

LisaW_

New Member
Messages
53
Reaction score
0
Location
Edinburgh, UK

Lisa here. Been lurking for a couple weeks and finally made an account because my partner is tired of hearing about this project lol.

So my local library does a used book sale every other Saturday and the good stuff (art books, old sci-fi paperbacks) is gone in like 20 minutes. I got sick of showing up late, so I built a little site that pulls their event page and texts me when the next sale date drops. Then I added a page where people can post what they scored so we can all see what's showing up. It's like 400 lines of code and one very ugly CSS file.

It's live but barely. My mom is basically the only user and she keeps uploading sideways photos of paperbacks.

Biggest thing I'm stuck on: where do you all host side projects that basically nobody visits? I'm on a free tier right now and I'm terrified of some random traffic spike nuking it. Also, how do you decide when a project is "done enough" to stop fiddling with it? I keep rewriting the same search box.

patrick_jones88

New Member
Messages
60
Reaction score
0
Location
Glasgow, UK

Ha, the sideways photos thing is universal. If you're storing uploads yourself, strip the EXIF orientation tag server side and rotate the actual pixels, otherwise every browser that isn't Safari will disagree with you about which way is up. That's a 20 line fix and your mom's paperbacks will stop looking like they fell over.

On hosting: the free tier anxiety is mostly overblown for what you're describing. A library book sale page is not getting a traffic spike unless a local news station picks it up. The real risk on free tiers isn't bandwidth, it's the app sleeping and cold starting, or hitting some row limit you didn't know existed. I moved most of my small stuff onto a $5 Hetzner box and run everything in Docker behind Caddy. Boring, cheap, and I stop thinking about it. Cloudflare Pages is a decent middle ground if it's mostly static with a couple of API routes, their free tier is genuinely generous and I've never once been billed.

The "done enough" question is harder and honestly I'm bad at it. What works for me is writing down what the project is actually for before I touch any code, and when that list works, I stop. I had a side project sit in a "rewriting the search box" loop for like four months. Nobody used the search box. Literally zero people. Rewrite it once, ship it, go outside.

What are you using for the backend? That changes the hosting answer a lot.

maria_lopez

New Member
Messages
66
Reaction score
0
Location
Miami, FL

Patrick's right on the EXIF thing but I think the free tier risk is real, just not where you're looking. Page views will never be your problem. Uploads will.

If your mom (and eventually ten of her friends) is posting phone photos straight to the gallery, every visitor loading that page is pulling down full-size 2-4MB JPEGs. That's egress, and egress is what free tiers actually meter. Fix it at upload time: resize to something sane on the long edge, generate a separate thumbnail, and serve only the thumbnail in the grid. WebP if your stack makes it easy. You'll cut page weight by an order of magnitude and the bandwidth anxiety mostly evaporates. Also cap upload size, people will absolutely try to send you a 12MB HEIC.

On hosting, the Hetzner route works but it's one more box to patch and babysit. For 400 lines and a photo gallery I'd honestly look at static frontend on Cloudflare Pages with object storage for the images. The sleep/cold start thing Patrick mentioned is the real UX cost of free app tiers, not bandwidth. Nobody wants to wait 8 seconds for a library sale page to wake up.

The search box thing, yeah. I rewrote mine four times. What finally stopped me was putting a "done" list in the README with dates on it, and anything not on that list doesn't get touched until the list is empty. Sounds dumb, works.

What's the stack, and how many photos per post are you allowing? That changes the storage math a lot.

patrick_jones88

New Member
Messages
60
Reaction score
0
Location
Glasgow, UK

Finishing my own thought from up there because the post got cut off: that project sat in a "rewriting the search box" loop for about three months. Three months of a search box that queries like 40 rows. What finally killed it was a friend asking why search was slow, and me having to admit the actual query ran in 4ms and the rest was me being precious about debounce timing. So the "done" list I mentioned is real, but the thing that actually stops me is embarrassment. Worth trying.

Maria, the resize-on-upload point is the right one and I should have led with it instead of the EXIF stuff. One gotcha though: if you're on a serverless runtime, sharp is a pain in the ass to get bundled, and most of the "easy" image APIs will quietly bill you per transformation once you're past a few hundred. If you're on a $5 box anyway, just run sharp or ImageMagick locally and be done. Cheaper and you can see what it's doing.

Where I'll push back is the babysitting thing. I've gone six months without SSHing into mine. unattended-upgrades plus a compose file in git plus a healthcheck that restarts the container. It's maybe an hour of setup and then it's furniture. The people I see burning weekends on their VPS are the ones running five services they don't need on it. One app, one Postgres, Caddy, done.

And yeah, cap the upload size. Maria's right that someone will send a 12MB HEIC. It'll be your mom.

bananapeel42

New Member
Messages
53
Reaction score
0
Location
Manchester, UK

tbh, I think the consensus here is getting way too deep into infrastructure.

Look, I’m not saying the $5 Hetzner box is bad, but for a project that's just about tracking local library sales, you’re basically proposing building a tiny, custom cloud environment just to display a list of used sci-fi paperbacks. That feels like over-engineering by about three orders of magnitude.

Patrick, I get the appeal of the "set it and forget it" setup with Docker and Caddy, but maybe that's not the real path for someone who is already struggling with the "done enough" problem. Adding Docker and a healthcheck to your mental to-do list might just replace the "rewriting the search box" loop with a "why is the container restarting" loop.

I'm an idiot, maybe, but I've had projects that needed servers and I never touched them again. They just needed to exist.

Maybe the solution isn't a managed server, but a highly constrained, minimalist solution that runs entirely on the free tier, even if it means sacrificing some of the "nice to haves" like robust error logging. Cloudflare Pages is great for frontend stuff, but what about a pure, extremely minimal static site generator approach for the listings, and maybe just using their API routes for the limited interaction?

It seems like everyone here is trying to solve a problem that doesn't exist. The problem is that the site is boring and the search box needs refinement. The solution shouldn't be a dedicated virtual machine. What do you guys actually use for ultra-low traffic, non-scaling, hobby projects that you just want to get done?

wafflesRgood

New Member
Messages
57
Reaction score
0
Location
Berlin, DE

the resize-at-upload thing is the part I know I'd screw up. Do you keep the full sized original somewhere or just replace it? I'd be paranoid about squishing someone's photo and then they want the big version back later. asking because I ran a tiny tank log for my goldfish (RIP Gerald) and resized absolutely nothing, and now the gallery page loads like a slideshow on my phone. 100% my own fault.

I get bananapeel42's point that the server is overkill for a book sale page but the cold start thing bit me too. mine went to sleep and my mom texted asking if I broke the internet. that did more damage to my brain than a $5 box ever would lol.

how do you actually decide the search box is done though. asking for me. specifically. right now. as I stare at mine.

xNova_

New Member
Messages
57
Reaction score
0
Location
Toronto, ON

wafflesRgood, never replace the original. Put it in object storage (R2, B2, whatever's cheap) and generate derivatives from it: a ~1600px "full" view and a ~400px thumbnail. Storage for that is basically free at your scale, and the second someone (or you) wants the big version back, it's just sitting there. Replacing in place is the one true irreversible mistake in this whole thread. RIP Gerald btw.

bananapeel42 I mostly agree that the $5 box is overkill here, but I want to push back on the framing. Minimalist free tier isn't actually lower maintenance, it just moves the fiddling somewhere else. You stop rewriting the search box and start rewriting the upload handler because you're fighting the platform's limits. I've done the "just make it dead simple and forget it" thing and what actually happened is I sat on the config screen for three weekends because there were only six knobs and I needed all six to be perfect. Constraint doesn't cure tinkering, it just relocates it. The thing that cures it (for me) is a deadline or a person waiting on it. Which, speaking of.

The search box is done when someone else has used it and not complained. That's it. Patrick's embarrassment thing is real, I've had the exact same moment, and the version that broke the loop for me was just watching a friend type into it. He typed two words, got the thing he wanted, moved on. Didn't notice the debounce. Didn't notice anything. I'd spent a week on something invisible to the only person who mattered. Show it to your mom, wafflesRgood, and if she finds her book, ship it.

You must log in or register to reply here.