Private access
BeadReader is a private library for one admin and a few readers, and it has no passwords and no sign-up. Instead, a single access code is your identity, which decides whether you are the admin or a reader and whether you can see explicit chapters, and once you enter it, a signed cookie keeps you logged in.
The admin creates each reader and hands them a code, and if the admin revokes that code, the reader is logged out on their next request.

Resume and themes
Opening a book jumps back to the chapter and scroll position you last reached. The position is stored as a fraction of the chapter rather than a pixel offset, so it still holds after a font size change, and if you stop mid-paragraph on your phone, you land in the same place on a laptop.
BeadReader saves each reader's own background and text colour, font size and choice of a scrolling or paginated layout. The contents page marks each chapter you have opened, shows a progress bar on the one in progress and lets you mark a chapter as unread.


Reading together
From the library you can see who else is online, and inside a book the avatars of online readers sit at the top, each with a green dot. If a friend is in the same book, their avatar also gets a green ring and their chapter number.
Tapping the avatars lets you send a wave or a short note, which shows on the other reader's screen for a few seconds and is never saved. Everyone can upload a profile photo, which is cropped and compressed in the browser, and anyone can turn on a privacy toggle to read invisibly.
Mara is on chapter 12 of the book you are reading, so her avatar has the green ring.

The spicy gate
Some chapters, or passages inside a chapter, are marked explicit, and access to them is set for each reader and enforced in the database query. A reader without access never receives the gated text, not even hidden in the response, so it cannot be pulled from the raw API.
The same chapter looks different depending on the reader: with access you get a blurred passage that clears when you tap it, without access you see a locked preview with a note to request it, and in cal mode every explicit passage is removed, with no markers and no pepper icon.
They had circled each other all evening. When the last guest finally left, the room went quiet.
Morning came far too soon.
This reader has access, so a tap clears the blurred line.

Text and webtoons
Each book is either text or a webtoon, which the admin chooses when creating it. Text books are written in Markdown with a side-by-side preview, and each chapter has its own draft and published state.
For a webtoon, the admin picks a numbered folder of images, previews their order and uploads them straight from the browser to Cloudflare R2 with short-lived signed URLs. Readers then scroll through one gapless vertical strip, with the same resume, tracking and gating as a text book.


Reading stats
Readers who share their activity appear on a common dashboard that shows their total hours, books finished and reading streaks. A histogram shows what time of day people read, day by day, and tapping a reader opens a per-book, per-chapter breakdown of their time.
Reading time only counts while you are actually reading, so it pauses when the tab loses focus or you go idle.


Offline and updates
A service worker caches covers, artwork and static files on the device, never HTML or API responses, and the reader preloads the next chapter, so pages open fast and use less data. The Account page shows what is cached and how much space it uses, with one button to clear it.
A public changelog and a what's-new popup, shown once for each version, explain new features, and a prompt to refresh appears whenever a newer build is deployed.


The stack
BeadReader is a Next.js App Router app with Tailwind CSS v4, Supabase for Postgres and storage, and Cloudflare R2 for webtoon images, while the login uses my own short HMAC-signed cookie instead of Supabase Auth.
Because the login is custom, all database access runs on the server with the Supabase service role, and every table has row-level security turned on with no policies, so the public key can read nothing. The explicit-content gate lives in the SQL query, and the one-click Vercel deploy sets up Supabase through the integration and runs the migrations during the build.




