forked from omer-faruq/appstore.koplugin
-
Notifications
You must be signed in to change notification settings - Fork 2
3. Usage
Jimmy Pautz edited this page Jul 19, 2026
·
12 revisions
- Unified browser for both plugins and user patches with persistent filters and paging.
-
Offline-friendly cache stored under
data/cache/Storefrontso existing results remain accessible when you lose connectivity. -
Per-entry README viewer that fetches
README.mddirectly from GitHub and displays it in the plugin. -
Install/update pipeline that handles
.kopluginarchives, verifies metadata, and copies files todata/pluginsordata/patchesaccordingly. - Update tracking for installed plugins and numbered patch files, complete with SHA comparisons and refreshable summaries.
- Optional authentication through a GitHub Personal Access Token (PAT) to increase API rate limits.
The UI is built around four dedicated dialogs:
-
- Lists repositories tagged as KOReader plugins.
- Actions per entry: Install / Update / Remove, View README, open detail dialogs with description, stars, last updated timestamp, and repo owner.
- Toolbar actions: switch to patches tab, refresh cache, adjust filters (
search text,owner,minimum stars), change sorting (stars desc/asc, updated, name), and jump into the installed plugins page. - Gear icon (⚙️): Access settings including Install plugin from URL to manually install plugins by entering GitHub owner/repo.
-
- Lists repositories tagged as KOReader user patches and enumerates files matching
^[number]-*.lua. - Actions per patch: Install patch, retry downloads, or open the repo README for full instructions.
- Toolbar actions: mirror the plugin tab plus shortcuts to the installed patches page and a "matching patch" banner when reconciling installed files with remote entries.
- Gear icon (⚙️): Access settings including Install patch from URL to manually install patches by entering GitHub owner/repo.
- Lists repositories tagged as KOReader user patches and enumerates files matching
-
- Summarizes every installed plugin, both linked (matched with a repository) and unlinked.
- Actions: Check all updates, toggle between "Only outdated" and "Show all plugins," and jump straight back to the Plugins browser.
- Each row shows the local version, cached remote version/SHA (for linked plugins), last checked timestamp, and provides Update or Reinstall buttons when differences are detected.
- Per-plugin actions: Disable/Enable, Delete, Match from List or Match with URL (for unlinked plugins), Unlink the repo (for linked plugins).
-
- Works just like the installed plugins page but focuses on numbered patch files under
data/patches. - Actions: Check all updates, toggle between "Only outdated" and "Show all patches," and jump straight back to the Patches browser.
- Each row shows the patch filename, cached remote version/SHA (for linked patches), last checked timestamp, and provides Update or Reinstall buttons when differences are detected.
- Per-patch actions: Disable/Enable (renames with
.disabledsuffix), Delete, Match from List or Match with URL (for unlinked patches), Unlink the repo (for linked patches).
- Works just like the installed plugins page but focuses on numbered patch files under
- Open KOReader → Tools → Storefront.
- Pick Plugins or Patches tab. Use the filter dialog to narrow by owner, name, topics, or star threshold.
- Tap an entry for a quick action menu. Choosing Install downloads the repo ZIP (
/zipball/<ref>), extracts it to a temp folder, validates_meta.lua, then copies it todata/plugins/<name>.koplugin. - After installation, KOReader prompts for a restart so the new plugin becomes available in the Tools menu.
- For patches, selecting an item downloads the raw
.luafile from the default branch and stores it underdata/patches/while retaining the numbered filename used for KOReader’s patch loader. - Return anytime to the Updates dialogs to check for newer commits. The plugin compares cached SHAs with the installed files and highlights items needing attention.
- Use View README to fetch the upstream documentation and open it in KOReader’s file viewer. Files are cached under
data/cache/storefront/readme/owner_repo_README.mdfor offline rereads.
- Repository metadata is stored in SQLite under
data/cache/storefront.db(automatically created). - The browser always reads from the cache first, keeping scrolling smooth even when the network is slow.
- When cached data is older than 7 days, the banner reminds you to trigger Refresh cache.
- README files, download archives, and installed SHAs are cached so subsequent operations reuse existing data whenever possible.
The Storefront plugin is fully usable on devices without a touchscreen. The browser and updates dialogs follow KOReader's standard non-touch conventions:
- Up / Down — move focus between list rows; the list scrolls automatically when the focused row would otherwise be off-screen.
- Left / Right — move focus across the title-bar buttons (gear / close) and the pagination row (Previous / Next), or between the top control buttons in the Updates dialog.
- Press (centre key on the 5-way) — activate the focused entry, equivalent to a tap.
- Hold / Long-press (where supported) — open the secondary action of the focused entry, equivalent to a tap-and-hold.
- Page-forward / Page-back keys — flip to the next / previous page in the browser.
-
Back — close the dialog. On few-keys devices that do not provide a Back key (e.g. Kindle 4 NT), Left acts as the close shortcut, mirroring KOReader's built-in
Menuwidget.