RxBook

Introduction

As a vibe coder, I have the autonomy to continuously refine my PWA tools - whether that means enhancing features or redesigning the underlying logic.

  • While RxReader allows users to upload TXT, PDF, EPUB, or DOCX files for a custom reading view, RxBook serves a different purpose.
  • Powered by a Node script that leverages the Mammoth library, RxBook seamlessly converts heading-styled Word documents into a polished web layout.
Unlike RxReader, RxBook functions as a digital library for sharing my own personal works rather than hosting user uploads.



Features

Even though the source Word documents are inherently secure since I am the sole contributor, safety remains a priority.

  • Content is sanitized against an explicit allowlist using isomorphic-dompurify, parsed into static JSON files, and optionally encrypted via AES-256 (validated through a strict Zod schema).

To discourage unauthorized redistribution, the client side incorporates light defensive measures:

  • CSS rules disable text selection (select-none),
  • right-click context menus (onContextMenu) and copy events (onCopy) are intercepted, and
  • @media print rules hide the main content during print attempts.



Summary

Currently, all digital books in RxBook are encrypted and locked.

  • However, I am offering free temporary access to The Pharmacist Insider through 30 September 2026, after which the password will expire.
  • As a token of appreciation for supportive readers who provide constructive feedback, the access password will be revealed after you submit the Google Form - simply click "View Accuracy" on the confirmation page.
Whether I will have the time to write additional eBooks and make them freely available in this library remains to be seen.

Comments