Comfort Library
Type:
Published Chrome extension
Stack:
JavaScript, Chrome APIs, Readability, DOMPurify
Status:
Live on the Chrome Web Store
Comfort Library is a distraction-free reading mode for the web. Readability parses the article out of the page, DOMPurify sanitises what comes back, and the result is rendered as something you can actually read — with smart highlighting and an interactive toolbar layered on top of 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.
There is also a provider integration layer sitting 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 smart highlighting and an interactive toolbar.
Service workers, offscreen docs
Background processing in a service worker, a popup UI, a full dashboard, and screenshot cropping via offscreen documents — modular by design.
AI-ready, not AI-dependent
A provider integration layer built as an interface, so intelligence can be added later without unpicking the extension.