Personal fork of LeedPDF · runs locally · November to December 2026

Lectr - PDF Reader and Annotator

An open-source PDF annotator turned into a place to read: books stay in a local library, the app remembers where you were and a quiet game makes the habit visible.

RoleFork: design & development
Based onLeedPDF by Rudi K
StackSvelteKit, TypeScript, PDF.js, Electron
Runs onWeb build and Windows
Lectr library with sample books and the reading progress sidebar

1. Overview

Lectr is the PDF reader I wanted for long reading: open a book once, find it again where you left it and write in it freely. It started as a fork of LeedPDF, an annotation tool, and I rebuilt the reading side around it.

The books in these screenshots are invented samples with filler text, and the reading history shown with them is example data.

2. Where It Comes From

The annotation engine is not mine. LeedPDF by Rudi K and its contributors provides the drawing tools, text and sticky notes, stamps, templates, merging and export, under the AGPL-3.0 license, which Lectr keeps.

⚠️ What did not fit how I read

  • An opened PDF was only kept for two hours, so a book had to be found on disk again
  • Annotations could stop saving silently once the browser's small storage filled up
  • The home screen served a product: promos, banners and online services
  • Notes had a hard size limit and a font size the app chose for you

✓ The direction of the fork

Keep the annotating, remove the online layer, add the reading. Documents, annotations and progress stay on the machine.

What was kept from LeedPDF, what was removed and what was added
Inherited, removed and added

3. A Library That Remembers

The home screen is now the library. Each book shows its first page, how far you are, time read, notes, highlights and pace, and opens on the page where it was closed. Removing a book from the list keeps its annotations.

How books and annotations are stored
One key ties a file to its notes
The library in the dark theme
The same library in the dark theme

4. Reading

A two-page view lays the book open (cover alone, then facing pages), the side panel offers the chapters that the PDF already carries, zoom grows from the centre of the window and an optional paper grain takes the glare off without changing colours.

Two-page view with highlights and a sticky note
Book view: the page you write on stays interactive
Chapter list next to the page
Chapters, with the current one marked

5. Writing in the Margins

Sticky notes and text notes can now grow up to the page, with text that scales along, and be styled word by word with bold, underline and colour. The exported PDF uses the same layout rules as the screen. Pencil, highlighter and note settings are remembered between sessions.

A resized sticky note with its formatting bar
The formatting bar appears next to the note

6. Progress You Can See

Reading earns experience, with extra for notes, highlights and pages. On top of that there are daily and weekly quests (the daily ladder climbs to two hours), streaks, multipliers capped at three times, 56 literary badges and 10 animated avatars. While reading, the panel is hidden until the trophy button asks for it.

How active reading becomes experience and goals
From attentive minutes to the next goal
Quests, badges and avatars tabs
Quests, badges and avatars
Progress panel over the book in the dark theme
Progress opened over a book
Library sidebar with level, streak and daily goal
Level, streak and today's goal at home

7. Two Bugs Worth Telling

Progress that reset itself

Opening a second book in the same session inherited the page count of the first, jumped before the new file had loaded and then saved page one over the real position. The viewer now clears its state when closed, waits for the document and saves pending progress before the window closes.

Highlights that drifted

Resuming on a later page could skip the first render, leaving the page at one scale while the app believed another, so new marks reappeared shifted. The document now stays loading until its first render at the final scale is done. Both fixes came with desktop regression scripts.

8. Key Decisions

Local first

No account and no server. The cost is that a library lives on one machine, and the web and desktop versions each keep their own.

Electron over a local server

The Windows app serves the static build through a private protocol, so there is no port to open and no browser to launch. The cost is a much larger download than the web page it wraps.

Rename without losing anything

The project went from LeedPDF to Leed and then Lectr, while storage keys and the data folder kept their old names so existing books and notes carry over.

9. Outcome

20

commits on top of LeedPDF v2.35.0

56

badges to earn

10

animated avatars

2

ways to run it: web and Windows

Lectr is a personal tool, not a published product: my copy of the repository is private and there is no public build.

Key Takeaways

  • Forking is a design decision: Deciding what to remove shaped the app as much as deciding what to add.
  • Never lose the reader's work: Storage limits and load order are invisible until they erase something that took hours.
  • Reward attention, not open tabs: Counting only active time keeps the progress numbers meaningful to the one person reading them.

Next steps: Use it on real long reads and adjust the quests and multipliers to what actually keeps the habit going.