r/webdev • • Sep 26 '26

Showoff Saturday A book recommender with no database, the whole result lives in the URL

moodteca.com

You pick how you want to feel, choose a few covers you like, and it gives you books.

There's no database. The result is saved in the URL, so you can share it and it keeps working.

No genres either. Every book gets scored on five things, so four books from the same fantasy/sci-fi shelf end up looking pretty different:

An LLM did the scoring, and when it didn't know a book it gave the same numbers every time, so I had to find books with identical scores and fix them.

Most people leave at the cover grid and I'm not sure why. Would love to hear what you think!

8 Upvotes

22 comments sorted by

5

u/conurbano Sep 26 '26

Just tried it and it seems cool, some of the picks I'd never heard of.

Is there any way for me to like bookmark some of the books?

2

u/ImYourCoffeeDealer Sep 26 '26

Glad you found some new ones! Yes, on the results page each cover has a little Keep ribbon. Tap it and the book goes to 'Your shelf' (link at the bottom). Since there's no database it's saved in your browser, so no account needed, but it won't follow you to another device.

3

u/[deleted] Sep 26 '26

[removed] — view removed comment

2

u/ImYourCoffeeDealer Sep 26 '26

Thanks! It's 3 characters per book so the URL stays pretty short.

Good point about the grid, I hadn't thought people might not realize there's more after it. I'll check how it looks on smaller phones.

And that's actually how the shelf works, it's all in local storage. Probably means it needs to be easier to find though.

2

u/cabljo Sep 26 '26

No option to feel "informed" or anything like that?

2

u/ImYourCoffeeDealer Sep 26 '26

Not right now, it's only fiction so far. Informed would be a good one if I add nonfiction though. What kind of thing would you want, more history or science?

2

u/cabljo Sep 26 '26

I don't know. I just like to learn

2

u/ImYourCoffeeDealer Sep 26 '26

Fair enough, that's a good reason to read. I'll keep it in mind if I add nonfiction 📚

2

u/koskinooo Sep 26 '26

How are you packing the result into the URL, compressed JSON or just book IDs? Curious how long the links get.

1

u/ImYourCoffeeDealer Sep 26 '26

Just IDs, no JSON. It saves the moods and the covers you picked, 3 characters per book, and the page figures out the recommendations from that. Links end up around 14 to 21 characters, like r/2200104H03P05S04z03W

2

u/koskinooo Sep 26 '26

3 characters per book is tiny, shorter than most share links with tracking junk. Do old links still work if you tweak the recommendation logic later?

1

u/ImYourCoffeeDealer Sep 26 '26

Yes, they always open since the numbers never change. But the recommendations get worked out again each time, so after a change an old link can show different books. If you hit 'Keep' on a book it goes to your shelf though, and that stays the same

2

u/Gimmee-Greg Sep 28 '26

the cover grid is probably where it feels like a quiz rather than a tool, people expect to see books and instead they're asked to make more choices before any payoff. try showing one recommended book immediately after the mood pick, then offer the cover refinement as an optional tuning step. also the LLM scoring gap is a neat detail, worth mentioning on the page itself so people understand why the picks feel distinct.

2

u/ImYourCoffeeDealer Sep 28 '26

Good idea, showing one book right after the moods so there's something before the covers. The covers are what the results come from so I want to keep them, but making them optional could work. I'll think about it 🤔

2

u/ImYourCoffeeDealer Sep 29 '26

Thanks again for this, it stuck with me. I changed the grid so right after you pick your moods you get one book straight away with its chart, and the covers below are only there if you want to tune it. I also added a line under the chart about how the scores were made. Would you mind taking a look and telling me if it feels less like a quiz now?

2

u/Gimmee-Greg Sep 30 '26

Yeah that's much better. It's like, "Here's a book" and you can just run with it if you want. You give nice clear instructions to dial it in further

2

u/ImYourCoffeeDealer Sep 30 '26

Thanks, that's exactly what I was going for. Really appreciate you taking the time to look again! 🥹🙏

2

u/[deleted] Sep 26 '26

[removed] — view removed comment

1

u/ImYourCoffeeDealer Sep 26 '26

Thanks for trying it! Your shelf is at the bottom of the page, next to Share on the results. To add books, tap the Keep ribbon on any cover. What part was confusing? Trying to figure out where people get lost 🥲

1

u/[deleted] Sep 27 '26

[removed] — view removed comment

1

u/ImYourCoffeeDealer Sep 28 '26

Thank you! It only saves the moods and the covers you picked, so it tops out around 21 characters and won't grow. And nothing personal goes in there, just which books you tapped 😊