Comfort Library

Comfort Library

Type:

Published Chrome extension

Stack:

JavaScript, Chrome APIs, Readability, DOMPurify

Status:

Live on the Chrome Web Store · collaborative build

Comfort Library is a distraction-free reading mode for the web, built jointly with Nilesh Raaj. Readability parses the article out of the page, DOMPurify sanitises what comes back, and the result is rendered as something readable — with smart highlighting and an interactive toolbar over the cleaned document.

Architecturally it is deliberately modular. A service worker handles background processing, a popup provides quick controls, a full dashboard manages saved material, and screenshot cropping runs through offscreen documents — the Chrome extension platform’s answer to doing DOM work without a visible page.

A provider integration layer sits ready for AI features, built as an interface rather than a hard dependency, so the extension can gain capability without being rewritten. The whole thing is published and installable, which is a materially different standard from working on localhost.

Readability in, clean DOM out

Article content parsed with Readability and rendered through DOMPurify, giving a distraction-free reading mode with in-page highlighting and a toolbar.

Comfort Library reading mode, turning a magazine article into a clean editorial page

Service workers, offscreen docs

Background processing in a service worker, a popup UI, a dashboard, and screenshot cropping via offscreen documents.

Comfort Library extension popup, with the button that activates reading mode

Built with Nilesh Raaj

A shared project — the extension is a joint build, and appears in both of our archives for that reason.