| Home Screen | Repository Browser |
|---|---|
![]() |
![]() |
A plugin for KOReader that lets you browse GitHub repositories, view code, and download files — all directly from your e-reader.
- 🔓 Public Repos: Browse any public GitHub repository without authentication.
- 🔐 Private Repos: Access private repositories using GitHub Personal Access Tokens.
- 📂 File Browser: Navigate directories, view text/code files, and download documents.
- ✏️ Edit & Commit: Edit files and commit changes directly from your device.
- 🔑 Multi-Token: Manage multiple GitHub tokens, set defaults, and assign per-repo tokens.
- 📌 Pin & Bookmark: Pin frequently used repos to the home screen and bookmark favorites.
- 📜 History: Track recently visited repositories with configurable history limits.
- 🎯 Gesture Support: Assign a gesture shortcut to launch the plugin instantly.
- Copy the
githubbrowser.kopluginfolder to your KOReaderplugins/directory:- Kobo:
/mnt/onboard/.adds/koreader/plugins/ - Kindle:
/mnt/us/koreader/plugins/ - Android: Wherever your KOReader data directory is located.
- Desktop (AppImage):
~/.config/koreader/plugins/
- Kobo:
- Restart KOReader.
- The plugin will appear in the Search menu (4th column in the top menu).
Open the plugin from the KOReader top menu under Search > Github Browser:
- Browse public repo...: Enter
owner/repoor a full GitHub URL to browse any public repository. - Browse private repo...: Same as above, but you'll be prompted to select a token for authentication.
To access private repositories or perform write operations (edit, create, delete files):
- Go to Settings > Manage GitHub Tokens.
- Add a token manually, or import multiple tokens from a
.txtfile.- File Format: The text file must contain exactly one token per line:
github_pat_11ABCD... github_pat_22EFGH... - Tip: Use Import Tokens (File Picker) to browse for your
.txtfile visually. - Fallback: If the File Picker crashes on your device (common on some Kobo firmware), use Import Tokens (Type Path) and simply enter the path to the file (e.g.
/mnt/onboard/token.txt).
- File Format: The text file must contain exactly one token per line:
- Set a default token, or assign specific tokens to individual repositories.
How to get a GitHub token: Visit github.com/settings/tokens and create a Personal Access Token with
reposcope.
Once inside a repository:
- Tap a folder to navigate into it.
- Tap a file to view its contents (text files) or download it (binary files).
- Long-press a file/folder for additional actions (delete, download).
- Use Bookmark, Pin, and Change Token options at the top of the repo view.
You can assign a gesture to open Github Browser directly:
- Go to KOReader Settings > Gestures.
- Find Github Browser in the action list.
- Assign any gesture (tap zone, swipe, etc.) to it.
| Setting | Description |
|---|---|
| Manage GitHub Tokens | Add, rename, delete, or import tokens. Set a default token. |
| Download Folder | Choose where downloaded files are saved (uses KOReader's folder picker). |
| Device Name | Shown in commit messages when editing files. |
| Max History Entries | Limit how many recent repos are tracked (default: 20). |
| Clear History / Bookmarks | Remove all history entries or bookmarks at once. |
githubbrowser.koplugin/
├── _meta.lua # Plugin metadata (name, version, author)
├── main.lua # Entry point, menu & gesture registration
├── api.lua # GitHub REST API client
├── browser.lua # Full UI (home, bookmarks, history, settings, repo browser)
└── settings.lua # Persistent settings management
Author: right9code
Version: 1.0
License: Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)

