On Winking Fig Books
After working at a mega corporation for a long time, I was a bit detached from the low-level, real implementation details of owning something from zero to one. At a company like that, builds are abstracted away, and so are a lot of things you take for granted, like runtimes, memory management and deploying your own server. You have to manage all of that as an individual developer who owns the whole stack. I really wanted to sink back into it, take the skills I'd built across my whole career, and build something real.
The idea came from home. My wife is in a book club and my mom is in a book club, and I wanted to help them improve their process for picking books, so the original name was The Next Book Club. And when I tried to find my own next book, I'd end up talking to ChatGPT or Claude, re-describing everything over and over, without really understanding the themes or tones or tropes I was trying to get at.
I also wanted to build the Steam for books. I read a PC Gamer piece arguing exactly that, and it really stood out to me like, "Yeah, why isn't there something like this where I can keep track of everything?" I did a lot of research on the way Steam does their product, plus competitor analysis, and built the UI and UX from the ground up to feel like Steam. Dynamic lists are a feature directly from Steam: you pick filters like genres, subgenres, themes, tones and tropes, and anytime you add a book to your library that fits, it automatically goes into that list.
Winking Fig Books isn't about a company telling you who you are as a reader based on what you've read or who you're similar to. It's about having the agency to decide what you're in the mood to read, and we help you discover it.
Yes, it's a website, but there's a whole back-end system that powered the whole thing. I had to understand what it took to ingest a massive amount of book data, figure out what the data model was like first, and then build layers on top of it.
This was not a vibe-coded app. It was researched and architected on known design patterns, and the coding was done by agents. The AI was a multiplier, but the product sense, the system design, the data modeling and the AI architecture were mine.
What follows is basically the system design.
Requirements
Users can search and easily find books in various different ways:
- Type some long sentence that's out of their head and get books that fit, even if the sentence names no title.
- Do a traditional search by author, book name or series, with typeahead.
- Just filter, by genre, subgenre and mood.
They can build up an understanding of who they are as readers:
- Say what they want to read, what they're reading and what they've read, and whether they loved it, liked it or it's not for them.
- Add books to their own lists, including dynamic lists that fill themselves from filters.
- Get recommendations from their own shelf.
And the product around it:
- Book page answers "where do I read it": Libby, WorldCat, Bookshop, Amazon.
- Website and native iPhone and iPad app on one API.
- Catalog stays current without me typing books in.
Constraints I set:
- Max one LLM call per search.
- Every result is a shareable URL.
- Nothing hits the live catalog without review or an identity check.
- Cheap enough for one person to run.
Design
Scroll sideways to see the whole diagram.
- Catalog: Open Library dumps as the baseline, filled in with the Google Books API, NYT bestseller lists (API plus a Kaggle archive) and Wikipedia award lists. About 21,000 books at the end, mostly sci-fi and fantasy.
- Embeddings and tags: nearly every book has an embedding for what it's about, and about 12,500 also have one for how it reads. On top of that: genres, tones, themes and tropes, and an importance score (a weighted rating, so 4.8 from 12 readers doesn't tie 4.8 from 500,000).
Experiences built from the data
I thought through what data I had and built experiences around that.
- Tones, themes and tropes: they power Discover, the filters and dynamic lists.
- Praise parsing: pull the quotes out of the book descriptions, then work out who said each one, a person or a publication.
- Recommended By: pages for authors, celebrities and critics, with the books they praised.
Book scoring
I built my own custom scorer. Every book gets one importance score, based on all the inputs I have, and it's used across browsing, search and recommendations. If two books fit equally well, this is what helps decide which one you see first.
- Reader ratings: adjusted for genre, because some genres get rated higher than others, and for how many people rated it.
- Reach: more readers count for more, but it levels off so the mega-popular books don't bury everything else.
- Age: ratings fade over time, newer books get a lift, and widely read classics are protected from fading too far.
- Awards and bestseller lists: each source has its own weight and a win counts more than a nomination. A bestseller run fades in months, a Hugo barely fades at all.
- Editorial: I can boost a book by hand.
- Books with no reader ratings get a different path, with a baseline score plus weeks on the bestseller list.
The weights are sliders in the CMS. I can move one and see how the ranking would change before I save anything.

Discover
The part I found most interesting was combining lexical and semantic search.

What gets embedded
The thing about book descriptions is they're marketing copy. They tell you a book is "propulsive." They don't tell you what happens in it. So where I could, I went and got the plot and the critical reception from places like Wikipedia, cleaned them up, and added that to what gets embedded. If there was no plot, I fell back to the description. Either way, it also got the book's genres.
Rewriting the query (HyDE)
A reader's sentence doesn't look anything like a book description, and book descriptions are what I'm searching against. So when the intent comes in, we basically rewrite the query. The technique is called HyDE, for hypothetical document embeddings.
The LLM imagines the book the reader is asking for and writes two short descriptions of it: what it's about and how it feels to read. That book doesn't exist. But each description gets turned into an embedding, and now I'm comparing descriptions to descriptions instead of a question to descriptions.
"a man lives alone in an infinite house full of statues and ocean tides"
A man finds himself the sole inhabitant of an infinite house, its rooms filled with silent statues and echoing with the rhythm of unseen ocean tides. As he explores the labyrinthine architecture, he begins to question his own identity and the nature of his reality, piecing together fragments of memory and confronting the unsettling beauty of his surroundings. The house becomes a mirror reflecting his inner world, a place of both refuge and profound isolation.
Eerie and dreamlike, with a sense of melancholy that permeates every room. The pacing is slow and deliberate, allowing the reader to sink into the atmosphere of the house and contemplate the mysteries it holds.
House of Leaves, The Haunting of Hill House, Piranesi
The LLM also decides how much of the query is about subject and how much is about mood. "A guy stranded on Mars" is all subject. "Something warm and slow" is all mood. That sets how much each description counts.
The whole pipeline
- One LLM call turns the sentence into a structured intent (genres, tones, themes, keywords, subject vs. mood weight) plus the two HyDE descriptions.
- Three searches in parallel: tag overlap, vector search on the two descriptions, keyword search.
- Reciprocal rank fusion merges them. Books that more than one search finds rise.
- Rerank, then refine buttons built from genre and mood counts in the results. No second LLM call.
Scroll sideways to see the whole diagram.
See it work on three real queries, including two misses
Try it: pick a search and see what Discover did with it
"cozy fantasy with found family"
Tags and vectors agreed on most of the shelf. Legends & Lattes led the tags path, but the vector path never returned it, so fusion ranked it below books both paths found and it missed the shelf. That is a miss. It is the book most readers would name for this query.
Intent
Model's summary: "Cozy and warm. The kind you read under a blanket."
- genres
- fantasy
- tones
- cozyheartwarmingwhimsical
- themes
- magicfound-familyfriendship
Two written descriptions (HyDE)
The model writes the book it imagines. Each description is embedded and compared to the matching vector of every book.
In a land where magic hums beneath the surface, a young witch discovers she's more powerful than she ever imagined. But with great power comes great responsibility, and she must learn to control her abilities before they consume her. Along the way, she finds a group of unlikely allies who become her chosen family, helping her navigate the challenges and discover the true meaning of belonging.
Like a warm hug on a chilly day, this book wraps you in a sense of comfort and joy. The characters are endearing, the world is enchanting, and the story unfolds at a gentle pace, allowing you to savor every moment.
Three retrieval paths
- Legends & Lattes
- The Very Secret Society of Irregular Witches
- The Enchanted Greenhouse
- Emily Wilde’s Map of the Otherlands
- The Teller of Small Fortunes
- Mr. Mendlebee's Pandimensional Literary Repository (and Yarn)
- A Skeleton in the Family
- Trap Door
- A Witch's Guide to Magical Innkeeping
- We'll Prescribe You a Cat
Not run. The intent had no keywords.
Merged and reranked
50 candidates after fusion. Top 8 of the final shelf.
The Enchanted GreenhouseSarah Beth Durst
A Witch's Guide to Magical InnkeepingSangu Mandanna
Somewhere Beyond the SeaT. J. Klune
Other BirdsSarah Addison Allen
The Keeper of Lost ThingsRuth Hogan
WolfsongT. J. Klune
The SpellshopSarah Beth Durst
We'll Prescribe You a CatIshida SyouRefine chips
Chosen from facet counts over the result pool. No model call.
genre:literary-fictionCozy Fantasy subgenre:cozy fantasy2020s decade:2020sRomance genre:romanceMagic subgenre:magicMagical Realism subgenre:magical realism"funny book set in space but emotional"
This one misses. Only one of the eight is set in space. The intent put 60% of the weight on tone, so the vectors found funny, moving books. Full text matched the word "space" in books that are not funny. No path found both halves.
Intent
Model's summary: "Funny but with teeth."
- genres
- science-fiction
- subgenres
- space-opera
- tones
- humorouswittyheartwarming
- themes
- friendshipidentitylove-and-relationships
- keywords
- space
Two written descriptions (HyDE)
The model writes the book it imagines. Each description is embedded and compared to the matching vector of every book.
In the distant future, a ragtag crew of space explorers stumbles upon a lost colony ship filled with frozen humans from Earth. As they attempt to revive the colonists and integrate them into their own society, they grapple with the emotional complexities of cultural differences, lost love, and the search for belonging in a vast, indifferent universe. The story balances lighthearted banter and absurd situations with moments of genuine emotional depth.
A blend of laugh-out-loud moments and poignant reflections. The humor is sharp and observational, while the emotional beats are earned and resonant, creating a reading experience that is both entertaining and deeply moving.
Three retrieval paths
- Cassandra in Reverse
- One Last Stop
- Memory
- The First State of Being
- A Closed and Common Orbit
- Reaper Man
- The Humans
- The Tyrant's Tomb
- Mania
- Down and Out in the Magic Kingdom
- Brothers of the Snake
- Pretender
- The Skylark of Space
- The Clockwork Rocket
- Defender
Merged and reranked
50 candidates after fusion. Top 8 of the final shelf.
The HumansMatt Haig
Job: A Comedy of JusticeRobert A. Heinlein
MortTerry Pratchett
If This Book Exists, You're in the Wrong UniverseJason Pargin
Down and Out in the Magic KingdomCory Doctorow
ManiaLionel Shriver
The Restaurant at the End of the UniverseDouglas Adams
The Dead RomanticsAshley PostonRefine chips
Chosen from facet counts over the result pool. No model call.
genre:literary-fictionScience Fiction Fantasy subgenre:science fiction fantasySatirical tone:satirical2020s decade:2020sFantasy genre:fantasyHumor subgenre:humor"a man lives alone in an infinite house full of statues and ocean tides"
The query never names Piranesi. Tags ranked it 16th, vectors 3rd and full text 2nd. Fusion rewards agreement between paths, so it ranked first.
Intent
Model's summary: "A solitary life in a strange house. Let me think."
- genres
- fantasyscience-fictionliterary-fiction
- tones
- eeriemelancholicintrospectivedreamy
- themes
- isolationidentitymemory
- keywords
- statuesocean
Two written descriptions (HyDE)
The model writes the book it imagines. Each description is embedded and compared to the matching vector of every book.
A man finds himself the sole inhabitant of an infinite house, its rooms filled with silent statues and echoing with the rhythm of unseen ocean tides. As he explores the labyrinthine architecture, he begins to question his own identity and the nature of his reality, piecing together fragments of memory and confronting the unsettling beauty of his surroundings. The house becomes a mirror reflecting his inner world, a place of both refuge and profound isolation.
Eerie and dreamlike, with a sense of melancholy that permeates every room. The pacing is slow and deliberate, allowing the reader to sink into the atmosphere of the house and contemplate the mysteries it holds.
Three retrieval paths
- All the Names
- One Hundred Years of Solitude
- Number9Dream
- The General in His Labyrinth
- Sea of Tranquility
- House of Leaves
- The Haunting of Hill House
- Piranesi
- Mapping the Interior
- Cold Skin
- Silvertongue
- Piranesi
- Abduction
- Temple of the Gods
- Ocean Meets Sky
Merged and reranked
50 candidates after fusion. Top 8 of the final shelf.
PiranesiSusanna Clarke
House of LeavesMark Z. Danielewski
The Haunting of Hill HouseShirley Jackson
The Library of BabelJorge Luis Borges
The Hollow PlacesT. Kingfisher
Mapping the InteriorStephen Graham Jones
The RoomJonas Karlsson
The Raw Shark TextsSteven HallRefine chips
Chosen from facet counts over the result pool. No model call.
genre:horrorAtmospheric tone:atmosphericContemporary subgenre:contemporary2000s decade:2000sShort reads length:shortMystery genre:mysteryStage 1 and 2 are the production model's recorded output (May 2026, from the eval cache). Stages 3 to 5 ran live against the catalog on 2026-11-29.
- Started as a chat. Follow-ups ("darker", "no romance") carried the wrong context too often, so I switched to one search per request plus refine buttons.
- "Books like X" skips the LLM and searches with the book's own vector. Asking the LLM to describe the book first gave near misses.
- Search: I love the typeahead box (books, authors, series, articles while you type), and the genre and subgenre filtering was another cool thing we did.
Evals
When a search goes wrong, I need to know where. Did the LLM misunderstand the reader, or did it understand and the search couldn't find the book? So each layer gets tested on its own, and then all together.
Scroll sideways to see the whole diagram.
- A golden set of a few hundred queries replays recorded LLM outputs, so a retrieval change gets tested in minutes for free.
Originally Discover was fairly simple and good. Then I tried pulling in more complex requests from Reddit, where people list the books they read and liked and ask for the next one, and tried to get Discover as close as I could to what people answered there. The fact is it's very subjective. Getting things like tone, themes and tropes right is not guaranteed. There's no way to know the actual pacing of a book, because sometimes the pacing changes from chapter to chapter. Some chapters are cliffhangers, some are slower. There's no unified way to qualify a book, and there's no right way to do this. You can only give rough estimates and rough suggestions based on what a reader liked. That makes it a really difficult problem, which is what makes it fun and exciting, but it very much is difficult. You'll never get everything perfect, and that's kind of the beauty of reading.
Recommendation engine
Discover starts with a sentence. The recommendation engine starts with your shelf, so you never have to type anything. Every book you save or rate says something about your taste. Loved counts most, then liked. Want to read counts a little. "Not for me" pushes the other way. The engine combines the embeddings of those books into a taste vector, basically a fingerprint of what you like, and looks for books close to it.
The hard part is that people don't have just one taste. If you love both horror and literary fiction and I average them together, I end up somewhere in the middle, recommending books that are neither. So when your shelf splits between two genres, the engine builds a separate taste for each one, finds books for each, and mixes them together, with a couple of picks from outside both.
Closeness isn't the only way a book gets in. The engine pulls candidates from four places: books close to your taste, more from authors and series you loved, popular books in your genres, and the editorial collections. Then it scores all of them on how close they are, how important the book is and whether it fits your genres, and makes sure you don't get a row of the same author. What you've been looking at recently nudges the results, and the cards tell you why a book is there, like "Another fantasy read after Fourth Wing."
Scroll sideways to see the whole diagram.
- No LLM, no data from other readers.
- Per-genre taste vectors plus dropping the tone vector took a simulation of 15 reader types from 8 to 12 passing. (Discover keeps the tone vector, since there the typed sentence is the only mood signal.)
- Retrieving from several taste clusters looked right, failed the evals, never shipped.
Editor (CMS)
A CMS that runs locally for anything that needs a human. I built it early because I'd built a lot of products inside Facebook's CMS, including video ingestion and creator payments. It was kind of second nature to me to put this back-end system behind the website.
- One place for every human call: books that failed the identity check, article pitches and drafts, and the SEO collection pages.
- Hand edits win. The CMS records every field I change by hand, and the weekly pipelines skip those fields, so a re-run never undoes a fix.
- Collections start from a Discover query. The CMS runs the search and drafts the intro. The page stays hidden from Google until it passes the publish checks and I switch it live.



Weekly refresh
On a weekly basis, I want to know: what books are trending? What's on the bestseller lists? Are there any new awards coming out? And what news is out there that might be interesting to draw parallels to some of the books we have? That's the impetus for the weekly refresh.
It's a whole workflow. It goes and gets all the new books for the catalog, gets all of the news from that week, and then generates ideas for articles.
Scroll sideways to see the whole diagram.
- Books: charts and award lists in. Auto-add only when source, ISBN, title and author agree. Everything else waits for my review. A new book stays hidden until its praise quotes, blurbs, embeddings and resized cover are ready.
- Ideas: three agents. A news desk picks the week's stories, a catalog scout finds books that connect, a pitch editor only pitches when at least three real books earn a place.
- Guardrails: agents read the catalog and the public web, pitches can only use books the scout found, nothing publishes without me.

Clients
- Web: React, server-rendered through a small Node gateway that also does sign-in.
- Responsive web: designed for desktop and phone, not shrunk to fit. On a phone the header drops to two rows with search always visible and tucks away while scrolling, and the filter sidebar becomes a sheet with a live result count.
- iPhone and iPad: native SwiftUI, same API. Point the camera at a cover and the book page opens. Text recognition runs on the phone. My wife and I were both using it a lot.

Planned, not built: an MCP server
The one piece I planned but didn't build is an MCP server. If you're in Claude or Codex or ChatGPT, you tag Winking Fig Books and ask "what are the best books I should be reading about X?" It goes to our MCP and runs the same Discover search, which is basically what the chat experience was trying to be.
Scroll sideways to see the whole diagram.
discover_books: a sentence, or an intent the assistant already worked out (then Winking Fig Books skips its own LLM call).books_like: a title in, neighbors from the book's own vector out.get_book: details, tags, awards, where to read.
Lessons
I really wanted to create the Steam for books, and the UI was built to be like Steam. The problem from a business perspective: Steam actually sells the games directly, and as a book website I wasn't selling any books. So there was a bit of an incongruity there.
I started with the book club idea, then pivoted to sci-fi and fantasy because those are my preferred books, so I could have something that I wanted.
You don't necessarily need to review all of the code line by line. But you do need to design the architecture, know how the pieces fit together, understand the data model, and forecast where things will break. You can't leave that to the AI.
How it ended
At its peak about 100 people a month used it. The product never got to be the thing I came back to every day. It was never what I truly wanted. It was close, but it never quite got there, and I didn't want to release something I didn't love to the public. So the iPhone app never shipped.
I really stopped because it's a big time investment and I want to pursue other creative endeavors, and I'm starting those now. I have ideas for a children's edtech app and a storytelling app, and I want to release some of my own stories as interactive fiction.



