[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113460":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":13,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":15,"starSnapshotCount":15,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},113460,"kitab","t21dev\u002Fkitab","t21dev","A desktop reader for PDF, books and Markdown, written in Rust and drawn on the GPU with GPUI. MuPDF renders the pages. There is no browser engine inside.","https:\u002F\u002Fkitab.t21.dev",null,"Rust",136,7,1,0,27,49,63.11,"GNU Affero General Public License v3.0",false,"main",[23,24,25,26,27,28,29,30,31,32,33,34],"epub","epub-reader","gpui","linux","macos","markdown","markdown-editor","markdown-viewer","pdf","pdf-viewer","rust","windows","2026-11-24 10:20:15","2026-11-23 23:56:53","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"assets\u002Fbrand\u002Fkitab-1024.png\" width=\"96\" alt=\"Kitab Reader\" \u002F>\n\n# Kitab Reader\n\n**Your library has a fast lane now.**\n\nRust underneath, a calm page on top. Kitab never makes you wait.\n\n\u003Csub>A desktop reader for PDF, books and Markdown, written in Rust and drawn on the GPU with GPUI. MuPDF renders the pages. There is no browser engine inside.\u003C\u002Fsub>\n\n\u003Cbr \u002F>\n\nA **[t21 dev](https:\u002F\u002Fgithub.com\u002Ft21dev)** project, by **[TriptoAfsin](https:\u002F\u002Fgithub.com\u002FTriptoAfsin)**, from the team behind [Turbo Reader](https:\u002F\u002Fgithub.com\u002Ft21dev\u002Fturbo-reader).\n\n[![Licence: AGPL-3.0](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicence-AGPL--3.0-blue?style=flat-square)](LICENSE)\n[![Latest release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Ft21dev\u002Fkitab?style=flat-square)](https:\u002F\u002Fgithub.com\u002Ft21dev\u002Fkitab\u002Freleases\u002Flatest)\n![Built with Rust and GPUI](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fbuilt%20with-Rust%20%2B%20GPUI-b7410e?style=flat-square)\n\n\u003Cbr \u002F>\n\n\u003Ca href=\"https:\u002F\u002Fapps.microsoft.com\u002Fdetail\u002F9P530F6TRMQ1\">\u003Cimg src=\"https:\u002F\u002Fget.microsoft.com\u002Fimages\u002Fen-us%20dark.svg\" width=\"200\" alt=\"Get it from Microsoft\" \u002F>\u003C\u002Fa>\n\n\u003C\u002Fdiv>\n\n---\n\n## Download\n\n**Windows:** the easiest way is the [Microsoft Store](https:\u002F\u002Fapps.microsoft.com\u002Fdetail\u002F9P530F6TRMQ1). The Store build is signed, sets up file types and Explorer thumbnails, and updates itself.\n\n\u003Ca href=\"https:\u002F\u002Fapps.microsoft.com\u002Fdetail\u002F9P530F6TRMQ1\">\u003Cimg src=\"https:\u002F\u002Fget.microsoft.com\u002Fimages\u002Fen-us%20dark.svg\" width=\"200\" alt=\"Get it from Microsoft\" \u002F>\u003C\u002Fa>\n\nFor every other system, or to install without the Store, get the latest version from [Releases](https:\u002F\u002Fgithub.com\u002Ft21dev\u002Fkitab\u002Freleases\u002Flatest).\n\n| System | Download |\n|---|---|\n| Windows 10 and 11 (Intel, AMD) | `Kitab_*_x64_setup.exe`, or `Kitab_*_x64_portable.zip` to run without installing |\n| Windows on Arm | The x64 downloads, which Windows runs through its emulation |\n| macOS, Apple silicon | `Kitab_*_aarch64.dmg` |\n| macOS, Intel | `Kitab_*_x86_64.dmg` |\n| Linux | `.flatpak`, `.AppImage`, `.deb`, `.rpm` or `.tar.gz` (x86_64; all but the Flatpak also for aarch64) |\n\nOr install with a package manager:\n\n```bash\n# Windows, winget (installs the Microsoft Store build)\nwinget install 9P530F6TRMQ1 -s msstore\n\n# macOS, Homebrew\nbrew install --cask t21dev\u002Ftap\u002Fkitab\n\n# Windows, Scoop\nscoop bucket add t21dev https:\u002F\u002Fgithub.com\u002Ft21dev\u002Fscoop-bucket\nscoop install t21dev\u002Fkitab\n```\n\nOr build and run it from the source with Cargo (see [Build from source](#build-from-source) for what you need first):\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ft21dev\u002Fkitab\ncd kitab\npython tools\u002Fpatch_gpui.py\ncargo run --release -p kitab\n```\n\n**Unsigned builds.** The downloads on Releases aren't code-signed yet (the Microsoft Store build is). Every release lists the SHA-256 checksum of each file.\n\nOn Windows, SmartScreen may say \"Windows protected your PC\": choose More info, then Run anyway.\n\nOn macOS, the first launch may say Kitab \"is damaged and can't be opened\" or \"cannot be verified\". It isn't damaged: macOS says this about any app that isn't signed. After dragging Kitab to Applications, either:\n\n- run this once in Terminal, then open Kitab as usual:\n\n  ```bash\n  xattr -cr \u002FApplications\u002FKitab.app\n  ```\n\n- or, on macOS 15 (Sequoia) and later: try to open Kitab once, then go to System Settings › Privacy & Security, scroll to Security and click Open Anyway.\n- or, on macOS 14 and earlier: right-click Kitab in Applications and choose Open, then Open again.\n\n**Flatpak.** Install the bundle with `flatpak install --user Kitab_*_x86_64.flatpak`; Flatpak fetches the Freedesktop runtime from [Flathub](https:\u002F\u002Fflathub.org\u002Fsetup). Kitab can read and save files in your home folder and on external drives, and has no network access: Flatpak brings the updates. To make it the default app for PDFs, use your system's Default Applications settings.\n\n**AppImage.** `chmod +x Kitab_*.AppImage` and run it. The `.deb`, `.rpm` and `.tar.gz` also install a thumbnailer, so file managers show page 1 of your documents.\n\n## Screenshots\n\n![Three tabs open, a PDF with its contents in the sidebar, the quick dock and the status bar](docs\u002Fscreenshots\u002Freader-pdf.png)\n\n| Books, set in your typeface | Math in Markdown |\n| --- | --- |\n| ![An EPUB in sans with wide margins and roomy lines](docs\u002Fscreenshots\u002Fbook-typography.png) | ![Fractions, an integral, a matrix and a sum, typeset](docs\u002Fscreenshots\u002Fmarkdown-math.png) |\n\n| Mermaid diagrams | Command palette |\n| --- | --- |\n| ![A flowchart drawn in the theme's colours](docs\u002Fscreenshots\u002Fmarkdown-mermaid.png) | ![The palette filtered to the zoom commands](docs\u002Fscreenshots\u002Fcommand-palette.png) |\n\n---\n\n## Why it is fast\n\nKitab is a native program. The window, the tabs and every page are drawn by [GPUI](https:\u002F\u002Fgithub.com\u002Fzed-industries\u002Fzed\u002Ftree\u002Fmain\u002Fcrates\u002Fgpui), the GPU UI framework the Zed editor is built on, and the pages come from [MuPDF](https:\u002F\u002Fmupdf.com\u002F), the engine behind SumatraPDF. Nothing in between is a web page.\n\n```mermaid\nflowchart LR\n    open([You open a file]) --> win\n\n    subgraph ui [UI thread: never waits]\n        direction TB\n        win[Window drawn off screen,\u003Cbr\u002F>shown with page 1 in it]\n        view[Only the pages in view\u003Cbr\u002F>are asked for]\n        frame[A frame is drawn only\u003Cbr\u002F>when something changed]\n        win --> view --> frame\n    end\n\n    subgraph work [Background threads]\n        direction TB\n        pool[MuPDF worker pool:\u003Cbr\u002F>a quick soft page first,\u003Cbr\u002F>then the sharp one]\n        tiles[Deep zoom: only the\u003Cbr\u002F>visible tiles, drawn sharp]\n        lib[Library, search index\u003Cbr\u002F>and file checks]\n    end\n\n    subgraph mem [Memory with a ceiling]\n        direction TB\n        cache[Page cache capped\u003Cbr\u002F>in megabytes]\n        idle[Background tabs let\u003Cbr\u002F>their pages go]\n    end\n\n    view -- render request --> pool\n    view -. very large page .-> tiles\n    pool --> cache\n    tiles --> cache\n    cache -- GPU texture --> frame\n    view -. saves and lookups .-> lib\n    cache --- idle\n```\n\n- **The page is in the window when it appears.** The window lays out and draws page 1 while hidden, then shows up with it. Update checks, keymaps, thumbnails and the library wait until after. With several tabs to restore, the one you were reading opens first and the rest follow.\n- **The UI thread never waits.** Opening, rendering, searching, indexing and saving run on other threads. Several threads render one document's pages at once, and a quick soft render stands in while the sharp one draws.\n- **Only what you can see.** Pages and thumbnails outside the view are skipped. A huge page (a map at 500 %) is drawn as a softer whole page with sharp tiles for just the part on screen.\n- **Bounded memory.** The page cache is capped in megabytes, not pages, so memory stays the same however long the document is. Tabs in the background let their pages go.\n- **Nothing runs while you read.** A frame is drawn only when something changed or an animation is playing, so an idle Kitab uses no CPU.\n\n### Measured\n\nAgainst SumatraPDF 3.6.1 on the same Windows 11 machine (Ryzen 9 9900X, RTX 5070), re-run for 0.6.0 on 15 November 2026: the 40-page `01-text-outline.pdf` in a 1200×800 window, timed from outside the app by [`kitab-bench`](crates\u002Fkitab-bench) and `tools\u002Fbench_reading.py`, each app in a fresh profile. The full runs are in [docs\u002Fperf\u002Fbaseline.md](docs\u002Fperf\u002Fbaseline.md).\n\n```mermaid\nxychart-beta\n    title \"Idle CPU with a document open (% of one core)\"\n    x-axis [\"Kitab, every refresh\", \"Kitab, frames on demand\", \"SumatraPDF 3.6.1\"]\n    y-axis \"CPU %\" 0 --> 3\n    bar [2.2, 0.0, 0.0]\n```\n\n| | Kitab 0.6.0 | SumatraPDF 3.6.1 |\n|---|---|---|\n| Window on screen | 241 ms, with the page already in it | 68 ms, blank at first |\n| Page first seen | 268 ms | by 359 ms |\n| CPU used to reach the page | 234 ms | 187 ms |\n| CPU while idle | 0 % | 0 % |\n| CPU while scrolling | about 8 % of one core | about 6 % |\n| Private memory, one document | 103 MB (117 MB after scrolling) | 16 MB |\n\nSumatraPDF starts sooner and is lighter: it draws with GDI, while Kitab first sets up the GPU (about 150 ms before its window exists), and about 88 MB of its memory is the GPU device, the graphics driver and DirectWrite, paid once whatever you open.\n\n## What it opens\n\n| Format | Notes |\n| --- | --- |\n| PDF | Password-protected files too. Links, contents, text selection, annotations already in the file |\n| EPUB | Flowing and fixed-layout, right-to-left books, every script your system has fonts for |\n| MOBI, FB2, TXT | Flow like EPUB, in your typeface and text size |\n| CBZ, CBR, CB7 | Comics, page by page, whatever archive they're really in (WebP pages too) |\n| DjVu | Scanned books at their own page size; search, select and read aloud when the scan has a text layer; contents from its bookmarks |\n| XPS | Pages at their own size |\n| Markdown | Tables, task lists, footnotes, code with syntax colours, math, Mermaid diagrams, frontmatter |\n\nKitab is a document reader, so it leaves image files to your image viewer.\n\n## Features\n\n**Reading**\n- Each page keeps its own size and shape, so mixed portrait and landscape PDFs look right\n- Fit width, fit page, actual size, Ctrl+wheel zoom and rotation; choose how new documents open\n- One page across, two side by side, or a book's spreads with the cover alone (Ctrl+6, Ctrl+7, Ctrl+8)\n- Page colour: the document's own, dark pages, or your theme's paper and ink\n- Smooth scrolling with the mouse wheel and the keys (it can be turned off)\n- Touch screens on Windows: drag to scroll, pinch to zoom\n- Remembers the page, zoom and layout of every file, and reopens your tabs after a restart (or starts on Home, or the last file)\n- Find (Ctrl+F) with match case and whole word, hits highlighted on the page\n- Read aloud (Ctrl+Shift+U) with your system's voices, Markdown too. The dock's speaker opens play, pause, a sentence back or on, and the speed, tone and voice, which change as it reads. The word being read is marked and the pages follow (or stay put)\n- Contents (with folding sections), page thumbnails, bookmarks (Ctrl+D) and your marks, all in the sidebar\n- PDFs reload by themselves when another program changes them\n- Back and forward through where you've been, with Alt+Left and the mouse's side buttons\n- Presentation mode (F5): one page at a time, full screen on black; type a page number to jump, B or W to blank the screen\n- Focus mode (F11) hides everything but the page; Esc brings it all back\n\n**Books**\n- Pages re-flow to fill the window, and zoom changes the text size\n- Typeface (the book's own, serif, sans or mono), line spacing and margins\n- Right-to-left books turn the other way, and fixed-layout books keep their spreads\n- Comics can read right to left, for manga\n\n**Markdown**\n- Reads like a document, not a code file, with an outline in the sidebar\n- Math typeset natively, Mermaid diagrams drawn in your theme's colours\n- Edit beside a live preview (Ctrl+E), and it reloads when another editor saves the file\n- Choose the typeface for code\n\n**Marks and notes**\n- Highlight, underline or strike through text, add notes and text boxes\n- Pen, highlighter, lines, arrows, rectangles and ellipses, in any colour you can type as hex\n- Ctrl+S saves marks into the PDF as standard annotations, which other readers show too, or save a copy with them and leave the original as it is\n- Fill in PDF forms: checkboxes, radio buttons, lists and text fields, with undo\n- Export your marks to Markdown or CSV\n\n**Library**\n- Home shows your books as covers or a list, on shelves: Recent, All, Favourites, In progress, Finished and your own collections\n- Watched folders bring in every document they hold\n- Library search finds words inside every document you've opened, and books by title, author or file name\n- Reading stats: time read today and this week, your streak, and a bar per day\n- Remove a book from Home, or Locate… one that moved (its place, bookmarks and marks follow it)\n\n**PDF tools, on your machine**\n- Print (Ctrl+P) through the system's own print dialog: all pages, this page or a range, fit to paper or actual size\n- Sign PDFs with a certificate file (.pfx, .p12), and see signatures checked when a PDF opens\n- Page tools: delete, move or turn pages, compress, add page numbers or a watermark\n- Save pages as a new PDF, merge PDFs, save a page as PDF, image or text\n- Split view: two documents side by side\n\n**Keyboard and look**\n- SumatraPDF's shortcuts where it has one, and a `keymap.json` for your own\n- A command palette (Ctrl+K) that finds commands, open tabs, recent files and headings\n- Ten themes (Dark, Gray, Light, Paper, Sand, Linen, Ink, Nord, Noctua, Vampire), any accent colour, three densities; it can follow the system's light and dark mode\n- A quick dock you can move to any edge, choose the buttons of, or tuck away\n- An optional menu bar (File, Edit, View, Go, Tools, Help) with Alt-key access, off until you turn it on; on macOS the same menus are in the system menu bar\n\n**Windows**\n- One window: double-clicking another file opens it as a tab\n- Page thumbnails in File Explorer, and Settings to make Kitab the default app per file type\n\n**Coming next:** an accessibility pass for screen readers, a short first-run tour, and code-signed downloads. The [roadmap](docs\u002FPLAN.md#12-roadmap) has the order.\n\n## Privacy\n\nYour files stay on your computer, and there is no account, no analytics and no telemetry. Kitab connects to one service on its own: GitHub, shortly after start-up and every six hours, to ask for the latest version number. Settings › About turns that off. Links you click open in your browser. The details are in [PRIVACY.md](PRIVACY.md).\n\n## Build from source\n\nYou need Rust stable (see `rust-toolchain.toml`), Python 3, and libclang for the MuPDF bindings (install LLVM and, if the build can't find it, set `LIBCLANG_PATH` to the folder that holds `libclang`). On Windows you also need the Visual Studio C++ build tools.\n\n```powershell\ngit clone https:\u002F\u002Fgithub.com\u002Ft21dev\u002Fkitab\ncd kitab\npython tools\u002Fpatch_gpui.py       # once: makes vendor\u002Fgpui-0.2.2, the patched GPUI the workspace builds against\ncargo run -p kitab -- tests\\fixtures\\pdf\\01-text-outline.pdf\ncargo test --workspace\ncargo clippy --workspace --all-targets -- -D warnings\npython tools\u002Fcheck_source.py     # licence headers, no colour literals outside kitab-theme\ncargo deny check\n```\n\nRelease packages: `python tools\u002Fbuild_release.py`, then `python tools\u002Fpackage.py \u003Cversion>` (an installer, portable zip, dmg, or on Linux the .tar.gz, .deb, .rpm and .AppImage). The Flatpak builds offline from `packaging\u002Fflatpak\u002Fdev.t21.kitab.yml`; its header lists the steps.\n\nThe tests read a corpus of PDF, EPUB and Markdown fixtures with an `expected.json` oracle. To rebuild it:\n\n```powershell\npython -m venv tests\\fixtures\\tools\\.venv\ntests\\fixtures\\tools\\.venv\\Scripts\\pip install -r tests\\fixtures\\tools\\requirements.txt\ntests\\fixtures\\tools\\.venv\\Scripts\\python tests\\fixtures\\tools\\generate_fixtures.py --large\ntests\\fixtures\\tools\\.venv\\Scripts\\python tests\\fixtures\\tools\\verify_fixtures.py\n```\n\n## Repository\n\n```\ncrates\u002F\n  kitab          the app: start-up, first frame, adapters\n  kitab-ui       GPUI views: shell, tabs, reader, sidebar, settings\n  kitab-mupdf    MuPDF on a pool of worker threads\n  kitab-md       Markdown parsing, sanitising, highlighting, math\n  kitab-store    the library database (SQLite), forward-only migrations\n  kitab-theme    colour tokens and the themes\n  kitab-os       Windows, macOS and Linux glue: data folder, file types, single instance\n  kitab-shell    the File Explorer thumbnail provider\n  kitab-bench    start-up and scroll benchmarks against SumatraPDF\ndocs\u002FPLAN.md     decisions, architecture, performance budgets, roadmap\ndocs\u002Fperf\u002F       benchmark runs against SumatraPDF\nDESIGN.md        the design system: tokens, depth, type, components, motion\n```\n\n## Contributing\n\nCommits follow [Conventional Commits](https:\u002F\u002Fwww.conventionalcommits.org\u002F), every user-visible change adds a line to [CHANGELOG.md](CHANGELOG.md), and a bug fix comes with a test that fails without it.\n\n## Support\n\nThis project is free and open source. If it saves you time, you can support [Team 21](https:\u002F\u002Ft21.dev) on [Patreon](https:\u002F\u002Fwww.patreon.com\u002Ftriptex). It pays for code signing, app store fees and servers. In Bangladesh? You can support in taka on [SupportKori](https:\u002F\u002Fwww.supportkori.com\u002Ftriptex).\n\n## Licence\n\nKitab is free software under the [GNU AGPL 3.0 or later](LICENSE).\n\nBuilt on [MuPDF](https:\u002F\u002Fmupdf.com\u002F) by Artifex (AGPL), [GPUI](https:\u002F\u002Fgithub.com\u002Fzed-industries\u002Fzed\u002Ftree\u002Fmain\u002Fcrates\u002Fgpui) by Zed Industries, [pulldown-cmark](https:\u002F\u002Fgithub.com\u002Fpulldown-cmark\u002Fpulldown-cmark), [syntect](https:\u002F\u002Fgithub.com\u002Ftrishume\u002Fsyntect), [mermaid-svg](https:\u002F\u002Fgithub.com\u002Fxmiksay\u002Fmermaid) and [resvg](https:\u002F\u002Fgithub.com\u002Flinebender\u002Fresvg). The Nord theme's colours come from [Nord](https:\u002F\u002Fwww.nordtheme.com\u002F). The full list is in [NOTICE](NOTICE).\n\nKitab Reader is made by [t21 dev](https:\u002F\u002Fgithub.com\u002Ft21dev) and [TriptoAfsin](https:\u002F\u002Fgithub.com\u002FTriptoAfsin).\n","Kitab 是一款轻量高效的桌面电子书阅读器，支持 PDF、EPUB 和 Markdown 格式。它基于 Rust 编写，使用 GPUI 框架进行 GPU 加速渲染，底层依赖 MuPDF 实现高性能页面解析与绘制，不依赖浏览器引擎，启动快、资源占用低。支持 Windows、macOS 和 Linux 三大平台，提供安装包、便携版及多种包管理器分发方式。适用于科研阅读、技术文档查阅、本地知识库浏览等对响应速度和格式兼容性有要求的离线阅读场景。",2,"2026-11-25 04:50:54","CREATED_QUERY"]