My Books
Summary
Umbrella epic for the "Retention" line item in 2026 H2 planning, the complement to #13224 (Improve Patronage & Acquisition). Acquisition gets a patron to the book; retention gives them a reason to come back — and per the H2 goals, without both, "Participation isn't realized".
August's framing in the plan is Core Vitals live & retention (reasons to return).
This epic scopes retention to a surface: the My Books page. That is deliberate — My Books is where a returning patron's value lives. It is the first thing a logged-in patron sees that is theirs, and today it does almost nothing to pull them back (see Challenges). The four workstreams below each make My Books a stronger reason to return.
Not to be confused with the Retention Score
#11956 (Retention Score) is the measurement — one of the three Core Vitals scores under #13221, with #13213 as its implementation. This epic is the work that the score is meant to move. Keeping them separate matters: a score that goes up because the metric changed is not retention improving.
Challenges: the My Books surface today
Currently, the post-registration process fails to connect the patron with value:
- No welcome of any kind
- No books you can read
- No calls to action to add books to your library
- No obvious way to set Yearly Reading Goal
Workstreams
Four line items, each tracked in its own issue/PR. These are the current scope of the epic. Status as of 2026-10-04.
- Continue Reading Carousel — merge current/active loans and loan history into one carousel, so a returning patron can pick up where they left off. Tracked in #13273 (unified carousel, Phase 2), under epic #13256 ('Continue Reading' flow & auto-add prompts).
- Status: in review, close to done. Phase 1 (#13272, merge active loans + loan history) is complete. Phase 2 is implemented in PR #13660 (db-backed read history + unified carousel) — CI green, mergeable; work-merge lifecycle is wired, and one merge-path test plus @mekarpeles' sign-off are the remaining items before merge. The earlier client-side localStorage drafts (#13282, #13283) are superseded by the server-side approach and proposed for closing.
- Build Your Library — an invitation on My Books to build a library via barcode scanner or search widget or Goodreads importer. Epic #13255 ('Build your library' experience), which decomposes into five PRs.
- Status: partly in flight. PR 1 (import/export UI split, #13774) is implemented in PR #13791. PR 4 (Goodreads match resolution) is progressing via #12276. PR 2 ("Find your first book" explorer) and PR 3 (mass barcode-scanner upgrade) are not yet started; PR 5 (banner) is gated on 1–4.
- Activity Feed — social activity feed on My Books (reading-log events, list events, prompts). #10242. Owned by Rishabh.
- Status: tracked, not led here. A feed API is already merged (#11690); prototypes exist (#13246, #12863). Supporting dependency: #13857 (make
/trending/now.jsonconsistent with the/trending/nowpage + a shared ≥10s cache) so the feed can fall back to trending-now for patrons who don't follow anyone yet.
- Status: tracked, not led here. A feed API is already merged (#11690); prototypes exist (#13246, #12863). Supporting dependency: #13857 (make
- My Books header UI — the header's "My Books" was a plain link; make it a popover menu like Browse, so patrons can reach shelves, loans, lists, notes and import directly. Tracked in #13805 (My Books header popover); draft PR #13654 by @lokesh implements it.
- Status: in draft. Implementation exists in draft PR #13654; needs review/finish.
Related / adjacent (serve retention, tracked in their own right — not absorbed here)
- #12858 — Weekly Prompt homepage widget (staff-curated book discovery)
- #11022 — Following Feed should include Lists updates, not just reviews
- #12861 — Mobile-first "What's Happening Now" activity feed
- #2059 — Improvements for Reading Log
- #10335 / #9161 — Registration onboarding flow / new onboarding page (first-return experience)
Note
Created at @mekarpeles' request on Sprint 2026-08 and added to the 2026 Tracker. Reframed 2026-10-04 from "Improve Retention" to My Books: Improve Retention, scoping the effort to the My Books surface while preserving the retention framing and the Retention-Score (#11956) distinction. The scope above is a starting point and is expected to be edited rather than treated as settled.
Where we are
Patrons register, they verify, and they land on My Books.
- The page is a ghost town — no value present.
- If the patron instead clicks through their preserved action, they get their book and they're likely not coming back.
- If we expect patrons to stick around, we have to present them with value.
There are a few cases here.
Patron registers to read a book. On D1 we have an opportunity to send them an email to continue reading.
Patron registers to add books to their reading log. On D1 we have an opportunity to send them an email to continue adding books to their library and setting up a yearly reading goal.
In either case, when the patron gets to the My Books page, it has to have something of value. Much of this aligns with @Sadashii's existing proposal:
- Activity Feed shows a living, fresh, community feed for discovering books to read, books to log, and people to follow.
- Continue Reading — if the patron has read anything, show loan history. This is an improvement over our current loans carousel, which is empty for nearly everyone because most borrows are 1-hour browse loans.
- My Library — show patrons options to grow their library (barcode scanner, Goodreads import, or a widget to search for one book at a time) and to set a yearly reading goal.
This is something we can do in pieces, and each piece covers both flows.
The end result
- More patrons routed to books they can read
- A smoother registration and verification process that remembers their intent
- A My Books page that (where possible, leveraging intent) shows:
- Activity Feed
- Continue Reading instead of loans
- My Library — options to import, and to set a yearly reading goal
- If time and policy permit, D1 emails that re-engage
The pieces
@Sadashii — here's how I'd break this up. Each is independently shippable and useful on its own.
1. Preserve intent carries the action through.
Today account_verify in openlibrary/plugins/upstream/account.py redirects to /account/books unconditionally, so a patron who registered in order to borrow lands on an empty page rather than on their book. The action should complete, and the patron should land on the book. Worth checking how often the preserved-intent path actually fires today before scoping — the tracking added in #12849 should tell us.
2. Activity Feed on My Books (#10242)
The APIs already exist — PubSub.get_feed() and Bookshelves.get_recently_logged_books(). This is mostly placement, plus one thing worth fixing while you're there: the source query is a plain SELECT * FROM bookshelves_books ORDER BY updated DESC with no availability filter, so it will happily show books nobody can borrow. Filtering to available books is what makes this a discovery surface rather than noise.
3. Continue Reading, replacing the loans carousel. Same slot, better source: loan history rather than active loans only. See the feasibility note below before scoping this one — the data lives at Archive.org, not in our database.
4. My Library — make growing a library possible from the page.
The barcode scanner (templates/barcodescanner.html), Goodreads import (/account/import), and yearly reading goals are all already built; none of them are reachable from My Books. Entry points for each, plus the goal-setting affordance.
5. D1 emails, both flows.
A nightly batch over the previous day's registrants, rendering the same content as the corresponding My Books section, with every link going to a book page rather than back to My Books. sendmail() and the templates in openlibrary/templates/email/ are the existing pattern — waitinglist_book_available.html is a good reference for a book-driven email we already send. Gated on the policy question below, so treat it as last.
Policy note — D1 email needs its own opt-in
Registrants consent to a verification email, not to ongoing contact. A D1 re-engagement email almost certainly requires a separate opt-in checkbox at registration, plus an unsubscribe path and a stored preference. That's a policy decision before it's an engineering one, and it's the only item on this list that engineering can't unblock — so we should raise it early and let the rest proceed in parallel.
Technical feasibility notes
- Loan history lives at Archive.org.
ia_users_loan_historyinopenlibrary/core/lending.py, not our database. Before Continue Reading gets scoped, it's worth a short spike to confirm what that endpoint returns: whether 1-hour browse loans appear in it at all, whether renewal counts come with it (a book renewed several times is being read; a single three-minute browse isn't), and how it performs per patron. If browses aren't in it, this piece needs a different source. - Availability is already queryable.
ebook_availabilityis written onto Solr work documents within ~30s byscripts/solr_updater/loan_availability_updater.py, andQueryCarouselalready accepts arbitrary Solr queries — so "books this patron can borrow right now" doesn't need new infrastructure. Several existing surfaces don't use it, including the homepage Trending carousel. - No reading-progress tracking exists. There's no stored page position or percent-read anywhere, which is why renewal count is the best available proxy for "actually reading" in Continue Reading.
- Wire the events as each section ships. These sections are what the Retention Score (#11956) is meant to measure.
followandreadlog_*were live in the app for months while the scorer counted them as zero — worth avoiding a repeat by adding each new surface to the scorer in the same PR.
Retention: problem, evidence, and proposed focus
The problem
Patrons return to Open Library and succeed at getting value. Today they don't. The majority of borrowing happens in the registration moment, and very little happens afterward.
Our sources of value
- Books to read — recommended, fresh, and readable now. A book is the object of value.
- Managing your library — a place to keep and organize the books you care about
- Accountability — yearly reading goals
- Stats and insights about your reading — lower priority
- Editorial and encyclopedic information on book pages — value on the page itself, not only in the borrow
- Connections with friends — other readers, and the books they surface
The data, and how we read it
One claim worth challenging directly: that we are already doing a wonderful job at access.
- The Locate button only renders when we can't serve the book — it is the final
$else:branch inopenlibrary/macros/LoanStatus.html, reached after borrowable, checked-out, and previewable are exhausted. It is clicked ~500k times a month against ~225k borrows. For every book we lend, we send two patrons somewhere else. That is a floor, not a rate — it doesn't count patrons who hit a dead end and simply leave. - 110k patrons register a month; 80k (72%) borrow a book.
- Only 37k borrows come from returning patrons (D1–D90).
- The remainder comes from a loyal 90+ day group of ~4k patrons — a minuscule share of 14M accounts, and roughly equal to a single day's new registrations.
- About 2,600 new borrowers arrive every day. At even 5% retention we would accumulate ~47,000 repeat borrowers over a year — more than ten times today's loyal base. Instead, barely any come back.
How to interpret this. Patrons are telling us we have something they value, and that thing is readable books. Many arrive from a Google search or Wikipedia with a specific book in mind; when we have it, we succeed at connecting them with value. But the conclusion is not that access is solved. It is that we have a class of value patrons want, and we do a poor job of connecting them with readable books after registration.
Hypotheses — why the problem exists
- We have no triggers. Nothing brings a patron back. Framed as Trigger → Craving → Action → Reward: the trigger is missing entirely, and we struggle to satisfy the craving when it does occur.
- We give patrons no reason to return. Post-registration is a ghost town — no books, no calls to action, no welcome.
- Our value propositions aren't discoverable or actionable. Patrons can't tell what we offer: books they want that are readable now, and a place to organize a library.
- The mobile experience is poor enough that patrons drop after registering.
Efforts likely to solve it
The full menu, not all of which fits the remaining time:
- Activity Feed on My Books — fresh community activity, for discovering books to read, books to log, and people to follow
- Continue Reading — loan history, replacing a loans carousel that is empty for nearly everyone
- Build Your Library — Goodreads import, barcode scanner, search-and-add
- Yearly Reading Goal — already built; a placement and follow-up problem
- Auto-add to Currently Reading on borrow (prompted, with "remember this") — worth noting this is the supply side of the activity feed, not only a convenience for the individual patron
- D1 email — a trigger tied to why the patron registered
- Preserve Intent completing the action, not merely returning the patron
- Personalization from browsing — capture recent genres the way we capture recent searches; requires no account
- Recommendations
Proposed focus for the remaining time
Three efforts, in any order — even a fraction of these is time well spent:
- Activity Feed
- Continue Reading
- Build Your Library
If placing bets, Activity Feed looks like the biggest impact: the API already exists and new events arrive every minute, and it is the only one of the three that gives a patron with no history something of value without asking them to do any work. That said, if the energy is behind Build Your Library, there is no objection to leading with it.
Design inputs already on the table
- Goodreads import — reuse @lokesh's mockup, which handles books-not-found, mismatches, and customization.
- Barcode scanner — batch mode: scan → card appears → add to shelf (or mark unavailable) → scan next, rather than today's scan → book page → back.
- Build Your Library — a banner for new patrons ("Make Open Library your library"), becoming a dropdown once they pass a book threshold.
- Search-and-add — cards in the new search bar that add straight to a bookshelf. The hardest of these to get right; the search widget itself took weeks of design.
Explicitly out of scope
Naming these so they don't reappear mid-sprint:
- A recommendation system — significant engineering, and the raw inputs aren't in place
- A standalone onboarding flow
- Trending as a source of fresh books — not a good one
- Renaming My Books → My Library, and the wider declutter
- Open-access reads in Continue Reading (see below)
Dependencies and open questions
- Loan history covers both 1h and 14d loans — settled. Continue Reading has its source.
- Open-access reads never reach loan history. Associating them with an account needs a new mechanism (ephemeral/local storage, similar to recent searches, or an internal table). Out of scope for Continue Reading v1.
- Availability filtering is a two-stage answer.
ebook_access:[borrowable TO *]is live today and already used by the homepage carousels — it removes books that can never be lent, which is most of the dead-end problem. True "available right now" needsebook_availability, which is #12689 — an open PR, not on master and not running in production. Its remaining checklist is short (wire the fields into search display, add a compose service entry, confirm the S3 key), and merging it upgrades Continue Reading, Start Reading, and the feed at once. - Feed supply. What fraction of recent reading-log events are for lendable books? This decides whether a filtered feed is rich or thin, and it's one query.
- Preserve Intent fires for ~1% of registrants — deserves its own follow-up issue; feature or instrumentation is not yet known.
- Instrumentation. Each section should be wired into the Retention Score (#11956) in the same PR that ships it. Precedent:
followandreadlog_*were live in the app for months while the scorer counted them as zero.
What we've achieved so far
- Start of the funnel —
OpenRelatedBooksis now clicked ~1k times a day - Preserve patron intent shipped (#12764, #12849, #13095) — an authentication action now survives the registration round-trip; currently reaching ~1% of registrants, which needs investigation
- Preview & Search Inside made more visible (#12881, #11912, #13112) — Matomo tracking for
BookOptions|SearchInsidestill needs verification - Alternatives banner on unavailable book pages (#12910)
- Activation ping-pong removed (#10262) — activation and sign-in complete on openlibrary.org
- Signup and activation funnel tracking (#13190)
- A/B testing framework (#12788) — every section below can ship as an experiment
- Retention Score formulas derived and the Matomo custom dimension live (#11956); implementation in #13213