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'd read a PC Gamer piece arguing exactly that), so the UI was built to feel like Steam. 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.
What follows is basically the system design, the way I'd walk through it in an interview.
Requirements
- Type a sentence, get books that fit, even if the sentence names no title.
- Search with typeahead, plus filters by genre, subgenre and mood.
- Book page answers "where do I read it": Libby, WorldCat, Bookshop, Amazon.
- Recommendations from the reader's own shelf.
- Website and native iPhone 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.
- Every book: two embeddings (what it's about, how it reads), tags (tones, themes, tropes), and an importance score (a weighted rating, so 4.8 from 12 readers doesn't tie 4.8 from 500,000).
Discover
The part I found most interesting was combining lexical and semantic search.
- One LLM call turns the sentence into a structured intent (genres, tones, themes, keywords, subject vs. mood weight) plus two made-up descriptions of the book the reader wants (HyDE).
- 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.

Step through three real queries, including two misses
Three queries. Pick one:
"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
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
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
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: 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.
Recommendations
- Taste = weighted average of the embeddings on the reader's shelf. Loved counts most, "not for me" counts against.
- 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.
Weekly run
The weekly refresh was a whole workflow. It went and got all the new books for the catalog, got all of the news from that week, and then generated 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: native SwiftUI, same API. Point the camera at a cover and the book page opens. Text recognition runs on the phone.

Home
Book page
Book page, scrolled
ScanHosting: more candidly, I was just learning how to deploy things. I'd heard good things about Vercel, and I tried Railway too. At first I used some of the Vercel native stuff like images, but when I hit limits there I moved everything to my own CDN. After that I didn't really benefit from Vercel, and it added an extra production step, one deploy for the front end and another for the back end on Render. So I put everything on Render and dropped a network hop.
Editor
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.
- 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.

At scale
- Built for hundreds of readers, not millions.
- First change at 100x: vectors in memory or a dedicated vector index instead of a shared database tier.
- LLM cost grows only with new queries. Repeat queries and their intents are already cached.
- Weekly run becomes a scheduled job with alerts. The one container splits into web, API and workers.
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.
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.
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.
Now I'm pursuing other projects. 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.