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.

Tour: homepage, genre filters, award winners, recommendations by author, the Discover page and a Discover query, the articles page, a book page, Libby, search.

Requirements

Constraints I set:

Design

Scroll sideways to see the whole diagram.

System architecture: clients, Cloudflare, one Render container with a Node gateway and a Python API, and external data servicesCLIENTSBrowserReact Router, ViteiPhone appSwiftUI, same APICloudflareDNS and TLSWAF, rate limits60 s edge cache foranonymous pagesRENDER · ONE FREE CONTAINER · 512 MIBNode gateway (Express)Server rendering, Better Auth,static files, sitemaps, API proxyloopbackFastAPI (Python)Search, Discover, recommendations,catalog, articles, scanMongoDB Atlasbooks, vectors, users,articles. Full-text andvector search indexesVoyage AIembeddingsLLMintent, offline writingCloudflare R2covers, pre-sized WebPcovers at images.winkingfig.comLOCAL ONLYCMS (Next.js) and pipeline CLIStaging review, publishing, ingestion.Writes to Atlas and R2.

Discover

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

  1. 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).
  2. Three searches in parallel: tag overlap, vector search on the two descriptions, keyword search.
  3. Reciprocal rank fusion merges them. Books that more than one search finds rise.
  4. Rerank, then refine buttons built from genre and mood counts in the results. No second LLM call.

Scroll sideways to see the whole diagram.

Discover pipeline: query, one model call for intent, three retrieval paths, rank fusion, rerank, and refine chipsQueryone sentenceShortcuts"books like X" goes toanchor path. Repeat queries.cached result or anchor retrievalIntentone model callgenres, tones, themessubject vs tone weighttwo written descriptionsTagsgraded vocabulary overlapVectorsconcept + tone, VoyageFull textAtlas Search, keywordsMergereciprocal rank fusionk = 60, top 50 keptpath weights from intentRerank0.55 vector + tags + text+ importance tiebreakfloor, 2 per authorRefine chipsfrom facet counts. A chip adds a hard filter to a wider pool.
Discover results for 'a man lives alone in an infinite house full of statues and ocean tides': Piranesi first, then House of Leaves, The Haunting of Hill House and The Library of Babel.
The query never names Piranesi. All three searches found it, so it came first.
Step through three real queries, including two misses

Three queries. Pick one:

"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.

1

Intent

Model's summary: "A solitary life in a strange house. Let me think."

subject 60%tone 40%
genres
fantasyscience-fictionliterary-fiction
tones
eeriemelancholicintrospectivedreamy
themes
isolationidentitymemory
keywords
statuesocean
2

Two written descriptions

The model writes the book it imagines. Each description is embedded and compared to the matching vector of every book.

About (concept vector)

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.

Feels like (tone vector)

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.

3

Three retrieval paths

Tagsweight 0.66
graded overlap with the intent's tones and themes
  1. All the Names
  2. One Hundred Years of Solitude
  3. Number9Dream
  4. The General in His Labyrinth
  5. Sea of Tranquility
36 candidates
Vectorsweight 1.3
cosine on the two written descriptions
  1. House of Leaves
  2. The Haunting of Hill House
  3. Piranesi
  4. Mapping the Interior
  5. Cold Skin
36 candidates
Full textweight 1.4
keyword search on descriptions
  1. Silvertongue
  2. Piranesi
  3. Abduction
  4. Temple of the Gods
  5. Ocean Meets Sky
60 candidates
4

Merged and reranked

50 candidates after fusion. Top 8 of the final shelf.

Cover of PiranesiPiranesiSusanna Clarke
Cover of House of LeavesHouse of LeavesMark Z. Danielewski
Cover of The Haunting of Hill HouseThe Haunting of Hill HouseShirley Jackson
Cover of The Library of BabelThe Library of BabelJorge Luis Borges
Cover of The Hollow PlacesThe Hollow PlacesT. Kingfisher
Cover of Mapping the InteriorMapping the InteriorStephen Graham Jones
Cover of The RoomThe RoomJonas Karlsson
Cover of The Raw Shark TextsThe Raw Shark TextsSteven Hall
5

Refine chips

Chosen from facet counts over the result pool. No model call.

Horror genre:horrorAtmospheric tone:atmosphericContemporary subgenre:contemporary2000s decade:2000sShort reads length:shortMystery genre:mystery

Stage 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.

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

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.

The weekly run: one button starts a books branch (feeds, matching, staging, commit, enrichment) and an editor branch of three agents (news desk, catalog scout, pitch editor) that ends in an ideas queue, drafting and review, and a human publishOne button"Run weeklyrefresh"BOOKSFeedsbestseller charts,award listsMatchISBN, title andauthor must agreeAdd or stageagree: addedunsure: my reviewCommit10 at a time,hidden until doneEnrichblurbs, vectors,covers, scoreEDITOR · THREE AGENTSNews deskthe week'sstories, verifiedCatalog scouttitle, keywordand vector searchPitch editor3+ real booksper ideaIdeas queuein the CMS,I chooseDraft, reviewlint gate,fact checkPublishmy clicknew books are searchable by the scout
An article idea in the editor: a news development from that week, a proposed headline, three featured books and the reader question.
A pitch from the weekly run, waiting for my decision.

Clients

The same filtered Fantasy page on desktop with an inline filter sidebar, and on a phone with a Filters button and an open filter sheet showing Show 7 results.
The same page on desktop and on a phone, with the filter sheet open.
iPhone home screen with the featured article and article list.Home
iPhone book page for Project Hail Mary with links to Amazon, Bookshop and Libby.Book page
iPhone book page scrolled to tags, awards and praise.Book page, scrolled
iPhone scan screen with Take a photo and Pick from Photos buttons.Scan

Hosting: 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.

The editor's staging queue for one weekly run: 51 new books, 16 committed and 18 rejected, each row showing its match flag and status.
One week of incoming books: 16 added, 18 rejected.

At scale

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.

MCP design: an assistant holds the conversation and calls Winking Fig Books tools, which use the existing API and catalogDESIGNED, NOT BUILTAssistantClaude, ChatGPT, Codexholds the conversationremembers the readerturns follow-ups intonew callsWinking Fig Books MCPwinkingfig.com/mcpdiscover_booksquery, or a structured intentbooks_likeanchor title, no model callget_bookintentbooksExisting APIsingle-shot Discoveranchor retrievalbook detailwhere-to-read linksrate limitsCatalog20,991 books79,336 vectorsReturned to the assistant: books, a reason for each, refine chips, and where-to-read links.

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.

Back to topAll thoughts