Native Qt6 · Wayland & Omarchy · Local-First

Read deeply. Think clearly.

A calm, fast EPUB and PDF reader for Linux — zero-flash page turns, natural read-aloud, an adaptive Study Companion, and a built-in local MCP server for your coding and research agents.

The Time Machine — Chapter I
Aa
Chapter I
Introduction

The Time Traveller (for so it will be convenient to speak of him) was expounding a recondite matter to us. His grey eyes shone and twinkled, and his usually pale face was flushed and animated. The fire burned brightly, and the soft radiance of the incandescent lights in the lilies of silver caught the bubbles that flashed and passed in our glasses.

“You must follow me carefully. I shall have to controvert one or two ideas that are almost universally accepted. The geometry, for instance, they taught you at school is founded on a misconception.”

“You know of course that a mathematical line, a line of thickness nil, has no real existence. They taught you that? Neither has a mathematical plane. These things are mere abstractions.”

“There I object,” said Filby. “Of course a solid body may exist. All real things—”

“So most people think. But wait a moment. Can an instantaneous cube exist?”

“Clearly,” the Time Traveller proceeded, “any real body must have extension in four directions: it must have Length, Breadth, Thickness, and—Duration.”

Emma Local voice · following sentence
3 min left in chapter Pages 3–4 of 148
Attention Is All You Need arXiv:1706.03762
Page 4 / 15
NIPS 2017 · Section 3.2 p. 4

3.2.1   Scaled Dot-Product Attention

The input consists of queries and keys of dimension dk, and values of dimension dv. We compute the dot products of the query with all keys, divide each by √dk, and apply a softmax function to obtain the weights on the values.

Attention(Q, K, V) = softmax ( QKT√dk ) V
(1)

For large values of dk, the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients. To counteract this effect, we scale the dot products by 1/√dk.

Attention Is All You Need Snip Mode · X
480 × 88 px

In practice, we compute the attention function on a set of queries simultaneously, packed together into a matrix Q. The keys and values are also packed together into matrices K and V:

Attention(Q, K, V) = softmax ( QKT√dk ) V
(1)

While for small values of dk the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of dk.

Local agents (MCP)
Read-only stdio · nothing leaves your machine
Ready
→ tools/call · search_passages
{
  "tool": "search_passages",
  "arguments": { "query": "why scale dot product by sqrt dk", "collection": "ML Papers" },
  "result": [
    {
      "book_id": "vaswani-2017-attention",
      "title": "Attention Is All You Need",
      "page": 4,
      "score": 0.94,
      "text": "For large values of d_k, the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients."
    }
  ]
}
01 Craft First

Paper stillness.
Native Qt6 speed.

Every surface is tuned for long, uninterrupted reading. Pages turn cleanly without white flashes or layout stutter, controls step out of the way, and your window adapts live to your Omarchy desktop palette and corner rounding.

  • Zero-flash double-buffered spreads — crisp EPUB columns and theme-recolored PDF pages with smooth directional glides.
  • Tactile hardcover page-turn sound — mastered Public Domain paper flip with an instant Aa toggle that auto-mutes while listening.
  • Adaptive 44px floating narration pill — rests quietly below the margin and expands smoothly for scrubbing, speed, and sleep timer.
  • Live desktop matching & 50 languages — follows Omarchy themes automatically and ships localized across 50 interface languages.
Appearance (Aa) Literata · Hyphenated · 5 themes
AaOmarchy
AaPaper
AaSepia
AaDusk
AaNight
Page-turn sound Public Domain hardcover flip · instant Aa toggle
Adaptive Narration Pill · 44px resting
Emma · Kokoro offline
☾ 15m 1.1×
⏮ Prev↺ 15sPause↻ 15sNext ⏭
1:42
−3:16 · Ch. I
Zero-flash double buffer 50 UI languages M4B audiobook export Ctrl+K Command Palette
02 Adaptive Companion

Quiet intelligence that knows what you’re reading.

Open a novel and Clothbound stays strictly spoiler-free. Open a textbook or research paper and the same C drawer shifts seamlessly into Study mode — with structured briefs, tracked mathematical notation, offline LaTeX math, and shelf-wide synthesis.

  • Story Mode for novels — spoiler-free Previously… recaps and Who’s Who character profiles capped strictly at your current page.
  • Study Mode for textbooks & papers — whole-document Brief, tracked Glossary & Notation with first-definition jumps, and offline LaTeX equations.
  • Cross-book “This Shelf” scope & Listen aloud — synthesize claims across an entire collection and hear any companion reply read aloud with one click.
Story · Spoiler-Free

The Time Machine

Previously (up to p. 38)
The Time Traveller demonstrates a brass miniature to Filby and the Psychologist, then vanishes into the year 802,701 and encounters the Eloi.
Who’s Who
Filby — Argumentative guest with red hair who doubts a fourth dimension. First seen Ch. I.
Never reads past your bookmark
Study · This Shelf

Attention Is All You Need

Brief · Core Claim
Multi-head self-attention replaces recurrence and convolutions, achieving 28.4 BLEU on WMT14 EN-DE in 3.5 days.
θ Params · p. 2 ℒ Loss · p. 7 ∇ Grad · p. 4 dk Head · p. 4
Offline LaTeX · 6 books Listen aloud ▸
03 Research PDFs

Equations, figures, and citations — without losing your place.

Academic PDFs shouldn’t force constant jumping between pages and reference lists. Clothbound pairs visual region snipping with Quick-Look peeks and automatic bibliographic detection, running on Gemini or local Ollama vision models.

  • Visual Snip & Explain (X) — drag over any equation, chart, or table to explain, copy LaTeX, or extract tables via Gemini or local Ollama VLMs (Gemma 3 / Qwen2.5-VL).
  • Zero-Jump Citation & Figure Peek — Apple Quick-Look style floating preview for references and figures right beside the paragraph you’re reading.
  • Auto DOI & arXiv Detection — recognizes paper identifiers automatically with 1-click BibTeX and APA copy in the reader header.
arXiv:1706.03762 DOI detected

We call our particular attention “Scaled Dot-Product Attention” (). The two most commonly used attention functions are additive attention , and dot-product attention, scaled by 1/√dk to prevent gradient saturation.

Quick-Look · Figure 2 (Page 4) Zero-jump peek · click [2] or Figure 2

Scaled Dot-Product & Multi-Head Attention: MatMul(Q, K) → Scale (1/√dk) → Optional Mask → SoftMax → MatMul(·, V). Eight parallel heads project into dk = 64 subspaces before concatenation.

Snip (X) Vision Routing
Gemini Vision Ollama · Gemma 3 Qwen2.5-VL
04 Local MCP Server

A private knowledge hub for your coding & research agents.

Point Antigravity, Claude Code, Cursor, or Codex directly at clothbound mcp. Your agents can search passages, inspect book outlines, read verbatim pages, and quote your margin notes over pure local stdio — with zero open ports and zero cloud uploads.

list_books Browse titles, formats, collections, and progress.
search_library Fast local SQLite FTS5 keyword search with snippets.
search_passages Hybrid semantic + BM25 cited passage retrieval.
get_book_outline Metadata, full TOC, and print/PDF page map.
read_passage Verbatim EPUB chapter or PDF page with citation header.
list_marks Your highlights, bookmarks, and margin notes.
{
  "mcpServers": {
    "clothbound": {
      "command": "clothbound",
      "args": ["mcp"]
    }
  }
}
Drop into your Antigravity MCP config · pure local JSON-RPC 2.0 over stdio 6 read-only tools · 0 network
05 Local-First Guarantee

Your books belong on your computer.

Clothbound never uploads your library, never mutates your EPUB or PDF files, and gives you full control over what stays strictly offline.

Offline sdcv Dictionary

Look up definitions instantly inside your own StarDict dictionaries with zero network calls and zero latency.

Local Neural Voices

Free, private narration synthesized right on your machine with Kokoro, Pocket TTS, and Piper across 42 languages.

Ollama & LM Studio

Automatically detects Ollama, LM Studio, llama.cpp, MLX, and vLLM for private Study Companion and vision snipping.

Strict $0 Cloud Budget Cap

Bring your own Gemini key if you want cloud voices or vision, with upfront cost previews and a hard $0 strict ceiling.

Zero Telemetry

No accounts, no trackers, no background sync. Annotations stay in local SQLite and export cleanly to Obsidian Markdown.

MIT & OFL-1.1 Open Source

Transparent Qt6/C++ source code under the MIT License, shipping bundled Literata and Inter fonts under SIL OFL-1.1.

06 Install & Quickstart

Up and reading in under a minute.

Native x86_64 and aarch64 Arch package for Omarchy and Linux desktops. Every CLI command works headless with --json.

Step 01 · Arch / Omarchy

Build & install the package

Run inside pkgbuild/ (or run bin/install from the repo root) to install Clothbound, its desktop entry, and icon.

$makepkg -si
Step 02 · AI Agents

Start the local MCP server

Runs read-only JSON-RPC 2.0 over stdio for Antigravity, Claude Code, Cursor, and Codex. Diagnostics go cleanly to stderr.

$clothbound mcp
Step 03 · Terminal CLI

Query your library headless

Instant local SQLite FTS5 search across every EPUB and PDF — no display server required. Also try clothbound list and clothbound notes.

$clothbound search "attention" --json
Dependencies: Qt6 (qt6-base, qt6-declarative, qt6-wayland, qt6-webengine). Optional: ffmpeg, sdcv, ollama. Open Full Interactive Prototype →