BeadReader on three phones: the login screen, a chapter and the stats page
Back to projects
Personal project

BeadReader

BeadReader is a private online book reader for a few friends, where the admin publishes books in Markdown or as image webtoons and readers log in with one access code. The app remembers where each reader stopped, and readers can see who else is reading, send a wave or a short note, and compare progress on a shared stats dashboard.

Built with
Next.jsTypeScriptSupabaseTailwind CSSCloudflare R2

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.

The BeadReader login screen with one access code field
The login screen with its one access code field

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.

The reading view in the paper theme
The reading view in the paper theme
A book's contents with per-reader progress
The contents page with read tracking and a progress bar

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.

Online now
M
12
Marareading hereThis book, chapter 12
J
JaeThe Hobbit, chapter 3
S
SamBrowsing the library

Mara is on chapter 12 of the book you are reading, so her avatar has the green ring.

A green ring marks a reader in your book
The menu for sending a wave or a note
The menu for sending a wave or a short note

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.

Chapter 9

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.

The gate is enforced in the SQL query, so gated text never leaves the server.
A contents list with an explicit chapter marked
A contents list with an explicit chapter marked, as a reader with access sees it

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.

The admin books list
The admin books list with text and webtoon books, both draft and published
A webtoon chapter as a gapless vertical strip
A webtoon chapter as one vertical strip

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.

The reading-stats overview
The stats overview with reading streaks
A per-reader stats breakdown
One reader's time broken down by book and chapter

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 account and storage panel
The account page and on-device storage, with a clear-all button
The in-app changelog
The in-app changelog

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.

More to explore

Other projects

Personal
OCR Reader with DrumNet, an OCR water meter solution

OCR Reader

A battery-powered water meter reader where a 693K-parameter DrumNet pipeline on an ESP32-S3 reads the drums and reports over LoRaWAN, built on a custom KiCad PCB inside a 3D-printed shell.

Personal
Project June rover

Project June

A 5G rover with three live camera feeds, GPS, a laser pointer and seven sensors, driven from a web console.

Internship
Pip, a cyan desk pet, on the M5Stack Tab5

Pip

A desk pet on an M5Stack Tab5 whose brain is the DeepSeek Harness on my server, so it can drive a browser, build its own apps and watch my other agents.