r/BestGitHubRepos • • 6d ago

⚡ Productivity t21dev/kitab: a fast, open-source desktop reader for PDF, EPUB, comics and Markdown, written in Rust with GPUI

Repo: https://github.com/t21dev/kitab

I'm the developer. Kitab is a native desktop reader for PDF, EPUB, MOBI, FB2, CBZ, XPS, TXT and Markdown that runs on Windows, macOS and Linux. I built it because most desktop readers are either slow or look a decade old.

Stack:

- Rust, with the interface drawn on the GPU by GPUI (the framework behind the Zed editor)

- MuPDF renders the pages

- No Electron and no browser engine inside, so it opens files in a blink and sits at near-zero CPU while idle

What it does:

- Tabs with session restore, and a Home library with covers, collections and full-text search

- Highlights, notes and drawings saved into the PDF, with export to Markdown or CSV

- Fill PDF forms, sign and verify locally, and merge, split or extract pages

- Markdown with code highlighting, Mermaid diagrams, math and live reload

- No account, no telemetry. The only network use is an update check

Install: Windows installer, Microsoft Store or `scoop install t21dev/kitab`; `brew install --cask t21dev/tap/kitab` on macOS; AppImage, .deb, .rpm or Flatpak on Linux.

License: AGPL-3.0. Site: https://kitab.t21.dev

It's still young and open for contributions. Bug reports for files that don't open or render wrong are the most useful thing right now, and PRs are welcome. If you find it useful, a ⭐ helps more people find the repo.

72 Upvotes

24 comments sorted by

2

u/oliver_a 4d ago edited 4d ago

That's really nice, thanks! It's a smooth experience, I like it!

2

u/TriptoAfsin 4d ago

Thanks! You can already pick the code font: Settings › Reading › Code font lists the monospace fonts installed on your computer, and it's used for code blocks, inline code and the Markdown editor.

For normal text, the choice is limited right now. Settings › Reading › Markdown typeface (or the Aa button in the dock) only switches between System, Serif and Mono. You can't pick any installed font yet, so you're right that it's missing. I'm considering adding a "choose any font" option for Markdown text !

2

u/oliver_a 4d ago

Thank you! Just as I posted my comment about changing the code font I found it in the settings and then edited my comment.

Sorry for the confusion and keep it up!

2

u/RecursiveReboot 4d ago

Can you please add this to Scoop? Scoop is well known package manager for Windows. This would enable easy install and update, portable version of your app.

https://scoop.sh/

https://github.com/ScoopInstaller

Almost 25k Stars in GitHub with thousands apps supported.

3

u/TriptoAfsin 4d ago

Hi, we support scoop as well, you'll find it in the GitHub readme

Thanks

2

u/RecursiveReboot 3d ago

Yes, I installed it now via Scoop.

And from some quick tests, I think yours is better. I used Oryx before, also tried mdr ☺️

I like kitab, it's fast, responsive and looks great. It has a few themes also.

For now, I will use Kitab for reading markdown. I use pdfcraft for PDF, and I don't read ebooks on my PC.

Are you planning to add "editing" for markdown? Currently, I'm using Paperling. Paperling is good for editing markdown but not as fast as Kitab.

2

u/TriptoAfsin 3d ago

Hi there great to hear!

Kitab already includes markdown editing, you should find an edit button upon opening a markdown file

1

u/RecursiveReboot 3d ago

Yes, I tried and I found something weird. The editor is using split view, which is normal for editing markdown. However, if I scroll the left view, the right view doesn't scroll. That is not good. The left and right views must scroll in sync.

Bonus point if the background highlight bar is also shown on the right view :)

2

u/TriptoAfsin 3d ago

Taking your feedback into the account would try to improve this UX

2

u/NeoWiseK69 3d ago

Great work. Love the name too brother

1

u/TriptoAfsin 3d ago

Thanks!

1

u/blue2020xx 5d ago

It would be great if it had full pwa offline support

2

u/TriptoAfsin 5d ago

Hi there, I made a separate project that might be useful to you, it's a markdown viewer/editor PWA: https://github.com/TriptoAfsin/md-viewer-pwa

1

u/mrsnzr 4d ago

I’m all for new and better open source apps but why would I use this over Sumatra? The measurements aren’t convincing me.

2

u/TriptoAfsin 4d ago

Well I was a long term Sumatra PDF user, I was a fan of it's lightweight nature, but the looks were quite outdated and missed certain modern features, moreover Kitab supports markdown files (viewing + editing) as well

The idea was to strike a balance between performance and modern aesthetics, and give it a try you'll feel the performance difference in day to day usage as well.

If it still can't convince you then it's alright, I respect your point of view

2

u/mrsnzr 4d ago

I’ll give it a try. But another factor is the long term support. Sumatra has been going on for 20 years. I hope you’ll be able to build a community to help maintain this program for as long as possible.

1

u/TriptoAfsin 3d ago

Well we all gotta start from somewhere

3

u/mrsnzr 3d ago

Yo I wasn’t trying to be discouraging in any way. Keep on trucking

2

u/TriptoAfsin 3d ago

Sure man, no worries

1

u/ALGS147 3d ago

people that tried it. is this fast enough to replace sumatraPDF? i know rust builds are fast and lightweight but i'm still hesitant about switching "the well known fast reader"

2

u/TriptoAfsin 3d ago

Well I was a long term Sumatra PDF user, I was a fan of it's lightweight nature, but the looks were quite outdated and missed certain modern features, moreover Kitab supports markdown files (viewing + editing) as well

The idea was to strike a balance between performance and modern aesthetics, and give it a try you'll feel the performance difference in day to day usage as well.

3

u/ALGS147 3d ago

installed it and i'm loving it so far. well done

2

u/saeidex 3d ago

Hey, I use WizRead(Windows) for epub and hoshi reader(android). Looking good, I'll definitely try it inshaAllah.

2

u/SISO71 3d ago

good job done. light weight and works fine