The Midnight Library by Matt Haig places its protagonist, Nora Seed, in a library that exists between life and death, where every book on the shelves represents a life she could have lived if she'd made different choices. The novel is about regret — not the corrosive kind, but the kind that eventually yields to something like acceptance. Haig writes with deliberate accessibility, and the book's emotional directness is part of its appeal. It doesn't pretend that the question of how to live is complicated; it finds a way to answer it that most readers find satisfying. If you loved it, the books below share some of its preoccupations but arrive at their answers from different directions — some darker, some quieter, some more philosophically ambitious.
The closest comparison in the literary fiction shelf is John Williams's Stoner. Where The Midnight Library is about a person who gets to try the unlived lives and choose among them, Stoner is about a man who makes his choices and lives with what they produce, without the option of revision. Stoner teaches English literature at the University of Missouri for forty years, has a largely loveless marriage, experiences a single passionate love affair that is cut short, and retires into a quiet death having accomplished less than he once hoped. Williams is not cruel to Stoner — the novel finds a kind of grace in his attachment to literature, his one abiding love — but it doesn't offer the consolation that Haig offers. Stoner is for readers who felt The Midnight Library was slightly too easy. The question it asks — how do you find meaning in the life you actually lived, not the life you might have lived — is the same question, answered with less comfort and more precision.
Albert Camus's The Myth of Sisyphus is the philosophical text that sits beneath The Midnight Library's concern with whether life is worth living. Haig's novel is, at its heart, about the choice to continue living, and Camus wrote the most concentrated philosophical treatment of that question in the 20th century. His famous opening — whether there is one truly serious philosophical problem, and that problem is suicide — is not nihilistic but diagnostic. Camus argues that the honest response to the absurdity of the human condition is neither despair nor false hope but revolt: the refusal to let the absurd have the final word. The essay is short, about 100 pages, and entirely clear. For readers who found The Midnight Library's answer to the question of living somewhat too tidy, Camus provides a more rigorous version of the same answer. Both are on the philosophy shelf.
Viktor Frankl's Man's Search for Meaning addresses the same question from a clinical and experiential standpoint. Frankl observed in the concentration camps that the prisoners most likely to survive psychologically were those who maintained a sense of purpose — who had something, or someone, to live for. His theory of logotherapy is built on this observation: that the will to meaning is the primary human motivation, and that suffering becomes bearable when it is understood as meaningful. The Midnight Library dramatises this argument in fictional form. Frankl makes the argument from evidence. For readers who want the scaffolding behind Haig's premise, Man's Search for Meaning is the book.
Marilynne Robinson's Gilead is a gentler comparison — a novel about an aging pastor in Iowa writing letters to a son he will not live to see grow up, reviewing the life he lived and finding in it, quietly, something worth having lived. Robinson doesn't use the device of alternate lives, but the novel is deeply concerned with the relationship between a person and their past — with whether the choices a person made were the right ones, and with the question of what it means to have a life add up to something. The warmth of Gilead and its theological confidence give it a tenderness that Stoner lacks. For readers who found The Midnight Library comforting and want a literary novel that shares that quality, Gilead is the recommendation.
Joan Didion's The Year of Magical Thinking approaches the territory from a different angle: not the choice to live but the work of continuing to live after catastrophic loss. Didion's husband died of a heart attack at the dinner table, and this book is her investigation of what grief does to a person's mind. She treats her own mourning as a subject of study, and the result is as precise as anything in the essays and memoir shelf. The Midnight Library is, in part, a grief novel — Nora is mourning lives that didn't happen, versions of herself that were foreclosed. Didion is mourning a person who was real. The comparison is not in subject but in the underlying question: how does a person go on, and what does going on require?