Skip to content
Projetos

greywolf1499/opds_plus.koplugin

Ver no GitHub

Sobre

Enhanced OPDS catalog browser for KOReader with visual cover display, grid/list views, and extensive customization options

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+6
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

OPDS Plus Banner

GitHub release (latest by date) GitHub all releases GitHub Platform

OPDS Plus - Enhanced OPDS Browser for KOReader

Version: 1.6.0

OPDS Plus is a feature-rich enhancement of KOReader's built-in OPDS catalog browser, providing visual book cover displays, multiple viewing modes, and extensive customization options for browsing online book catalogs.

✨ Features

📚 Enhanced Catalog Browsing

  • OPDS 2.0 and OPDS 1 Catalogs: Reads both the Atom (OPDS 1) and the JSON (OPDS 2.0) feeds, such as Komga's, with nothing to set. OPDS 2.0 groups of books open as shelves, with their book count
  • Visual Book Covers: Browse catalogs with book cover images displayed alongside titles
  • Dual View Modes: Switch between List View and Grid View layouts
  • Multiple Display Options: Customize how books are presented
  • Book Info Dialog: Open an at-a-glance details dialog with improved cover handling, showing the publisher, publication date and language when the catalog gives them
  • Series and Authors: Every author of a book is listed. When the catalog provides it, the series and the book's number in it, such as ❖ Dune Chronicles #2, show in List View and in the Book Info Dialog (read from Calibre and Calibre-Web style descriptions, dc:series elements and Grimmory feeds)
  • Sync Gesture Actions: Trigger sync-related actions directly from configured gestures
  • Keyboard and D-pad Navigation: Browse catalogs on devices with hardware keys, without the touchscreen
  • Custom HTTP Headers: Send extra headers to a catalog's server, for catalogs behind Cloudflare Access (Zero Trust) or a similar gateway
  • Cover Quality + Cache: Improved cover rendering pipeline with disk-backed caching
  • Page-stream Resume and Sync: Remember displayed pages locally; optionally synchronize supported Kavita and Komga streams with per-catalog consent and conflict choices. See the streaming guide
  • Authentication Discovery: Explain catalog login methods without automatically opening advertised login endpoints; OAuth login remains unsupported

🖼️ List View

  • Book covers displayed alongside title and author information
  • Adjustable cover sizes with presets (Compact, Regular, Large, Extra Large)
  • Custom size option (5-25% of screen height)
  • Clean, readable layout optimized for e-readers

📊 Grid View

  • Display books in a grid layout for visual browsing
  • Flexible column options (2-4 columns)
  • Layout presets: Compact (4 cols), Balanced (3 cols), Spacious (2 cols)
  • Customizable grid borders:
    • No Borders: Clean, borderless grid
    • Hash Grid: Shared borders in a # pattern
    • Individual Tiles: Each book has its own border
  • Adjustable border thickness (1-5px) and color (Light Gray, Dark Gray, Black)

🎨 Customization Options

  • Font Selection: Choose from KOReader's built-in fonts or your custom fonts
  • Independent Font Settings: Separate customization for titles and details
    • Font family selection
    • Font size adjustment
    • Bold/regular weight toggle
    • Color options (Dark Gray, Black)
  • Same Font Mode: Option to use matching fonts for consistent appearance
  • Persistent Settings: All preferences are saved between sessions

📖 Default Catalogs Included

  • Project Gutenberg
  • Standard Ebooks
  • ManyBooks
  • Internet Archive
  • textos.info (Spanish)
  • Gallica (French)

📸 Screenshots

List View Grid View
List View with Covers Grid View with Covers
Classic list view with cover thumbnails Immersive grid layout for browsing
View Options Customization
View Toggle Menu Settings Menu
Switch views instantly via the menu Extensive customization options
Book Details Updates
Book Details Update Available
Author, series, language, formats and more Formatted release notes
OPDS 2.0 Shelves Facets
OPDS 2.0 Start Page Facets
Groups and shelves from an OPDS 2.0 start page Narrow a catalog with its facets

The screenshots come from a mock catalog of public-domain classics with generated covers (tools/e2e/catalog/screenshots.sh regenerates them).

📥 Installation

Method 1: Manual Installation (Recommended)

  1. Download the latest release:

    • Go to the Releases page
    • Download the opds_plus.koplugin.zip file from the latest release
  2. Extract to KOReader plugins directory:

    The location depends on your device:

    • Kindle/Kobo/PocketBook: Extract to koreader/plugins/ on the device's storage
    • Android: Extract to koreader/plugins/ on the internal storage
    • Linux: Extract to ~/.config/koreader/plugins/
    • Windows: Extract to %APPDATA%/koreader/plugins/
    • macOS: Extract to ~/Library/Application Support/koreader/plugins/

For complete platform-specific install/upgrade paths, see the KOReader wiki: KOReader Installation/Upgrading

The archive should extract to create an opds_plus.koplugin directory containing all plugin files.

  1. Restart KOReader: Close and reopen KOReader to load the plugin

  2. Verify installation:

    • Open KOReader's File Browser
    • Tap the menu icon (⋮ or ≡)
    • You should see "OPDS Plus Catalog" in the menu (KOReader may show it as "NEW: OPDS Plus Catalog" until you sort it into a menu)

Method 2: Git Clone (For Developers)

# Navigate to KOReader plugins directory
cd ~/.config/koreader/plugins/  # Adjust path for your system

# Clone the repository
git clone https://github.com/greywolf1499/opds_plus.koplugin.git

# Restart KOReader

The wiki has step-by-step guides for installing, updating, and setting up Calibre-Web, Kavita and Komga.

Updating (New in 1.4.0)

From 1.4.0 on, OPDS Plus updates itself: open OPDS Plus Catalog → Settings → Updates and tap Check for updates. It shows what is new and installs it when you tap Install; restart KOReader when asked. Roll back to previous version puts the version before the update back. Versions before 1.4.0 can't update themselves, so install 1.4.0 by hand once, as above.

From 1.6.0, release notes use headings, lists and emphasis, including on KOReader v2025.10. Use page keys or touch scrolling for long notes. Install, Skip this version and Later work as before. If formatting fails, choose View as plain text to read the original notes. Links and remote images in notes are not opened or fetched.

Update checks run in the background. A manual check shows a cancellable status; automatic checks yield to input without losing the key or gesture. Cancelled or watchdog-aborted checks do not change Last checked, and can be retried on the next catalog open. Automatic checks never turn Wi-Fi on. If background workers are unavailable, only a manual check offers an explicit, blocking foreground option.

A plugin folder that is a link, or has a .git folder in it (Method 2), is a development install: update it with git pull instead.

Troubleshooting Installation

  • Ensure the directory is named exactly opds_plus.koplugin
  • Verify all .lua files are present in the plugin directory
  • Check that you have write permissions to the plugins directory
  • If the plugin doesn't appear, check KOReader's crash.log for errors

🚀 Usage

Accessing OPDS Plus

  1. Open KOReader's File Browser
  2. Tap the menu icon (⋮ or ≡)
  3. Select OPDS Plus Catalog

Browsing Catalogs

First Time Setup

  • The plugin comes with several default catalogs pre-configured
  • Simply select a catalog to start browsing

Browsing Books

  1. Select a catalog from the list
  2. Navigate through categories and books
  3. Tap a book to view details and download options
  4. Downloaded books are saved to your configured download directory

OPDS Plus omits a duplicate leading Calibre-style SERIES: line from descriptions when its name and number match the book's series field. Other metadata and prose stay intact; descriptions already saved with downloaded books are not rewritten.

Keyboard and D-pad Navigation (New in 1.3.0)

On devices with hardware keys, you can browse without the touchscreen:

  • D-pad: moves the focus from item to item (cell by cell in Grid View). An underline shows where it is
  • Enter (the centre button of the D-pad): opens the focused item
  • Back: goes up one catalog level, and closes the browser from the top level. In the book info dialog it closes the dialog
  • Home: closes the browser

Catalog loading (New in 1.6.0)

Catalog requests, parsing and mapping run in a background process. While Loading catalog... is shown, tap or press a key to cancel; the current listing, page and navigation history stay in place. If background loading is unavailable, you can cancel or choose Load to try in the foreground. That fallback pauses input until the request finishes. This is separate from Parallel Cover Downloads.

Customizing Settings

Access settings from: OPDS Plus Catalog → Settings

Default Catalog (New in 1.3.0)

  • Default Catalog: Choose the catalog you use most and it opens as soon as you open OPDS Plus Catalog → Browse Catalogs (or its gesture), so you don't have to tap it every time. Press Back to return to the list of catalogs and pick another one. Choose None to always start from the list.

Display Mode

  • List View: Traditional list with covers on the left
  • Grid View: Visual grid layout with larger covers

List View Settings

  • Cover Size: Choose from presets or set custom size
    • Compact (8%): More books per page
    • Regular (10%): Default balanced view
    • Large (15%): Easier to see cover details
    • Extra Large (20%): Maximum cover visibility
    • Custom: Fine-tune between 5-25%

Cover Settings (New in 1.2.0)

  • Prefer Large Covers:
    • Enabled: prioritizes higher-quality cover sources when available.
    • Disabled: prefers faster thumbnail sources.
  • Enable Cover Cache:
    • Enabled: reuses previously downloaded covers.
    • Disabled: fetches covers from the server each time.
  • Parallel Cover Downloads:
    • Enabled (default): downloads several covers at once, in background processes, so pages of covers fill in faster and a slow server does not freeze the screen.
    • Disabled: downloads covers one at a time. Turn this off if covers stop loading or the device runs low on memory.
  • Prefetch Neighboring Covers (new in 1.6.0, off by default):
    • While the current page is ready and input is idle, cache covers for one neighboring display page in the last navigation direction (initially forward).
    • Requires Enable Cover Cache and Parallel Cover Downloads. It downloads bytes only, without decoding images or repainting, and shares the two-worker limit with visible covers.
    • Changing pages, views or catalogs, opening book details, or closing the browser cancels obsolete warming. It does not fetch another catalog page just to find covers.
  • Thumbnails on Navigation Entries:
    • Enabled (default): entries that open a list of books instead of being a book, such as a series or an author, show their thumbnail when the server provides one.
    • Disabled: only books show covers.
  • Advanced Cache Controls:
    • Cache Size (MB)
    • Cache TTL (minutes)
    • Clear Cover Cache

OPDS Plus limits retained decoded covers to 8 MiB per browser, independently of the disk cache size. Visible images and open dialogs keep their buffers even if they exceed that budget. Evicted covers are decoded again from the disk cache, or fetched again if disk caching is disabled. This is not a limit on KOReader's total RAM use.

Grid View Settings

  • Grid Layout:

    • Compact: 4 columns, more books visible
    • Balanced: 3 columns, good middle ground (default)
    • Spacious: 2 columns, larger covers
    • Custom: Manual column selection (2-4)
  • Grid Borders:

    • Style: None, Hash Grid, or Individual Tiles
    • Thickness: 1-5 pixels
    • Color: Light Gray, Dark Gray, or Black

Font & Text Settings

  • Use Same Font for All: Match title and detail fonts
  • Title Settings:
    • Font family
    • Font size (12-24pt)
    • Bold/regular weight
  • Information Settings:
    • Font family (independent if same font disabled)
    • Font size (10-20pt)
    • Bold/regular weight
    • Color: Dark Gray or Black

Updates (New in 1.4.0)

  • Check for updates: asks GitHub for the latest release, and offers Install, Skip this version (the weekly check then stays quiet about it) or Later.
  • Automatic update check (weekly): enabled by default. When you open OPDS Plus and the last completed check is at least a week old, it checks for a new release if the device is already online and tells you once with a short notice. It never installs anything by itself.
  • Roll back to previous version: available after an update. Puts the previous version back and keeps the newer one, so you can switch again.
  • Allow updating a development install: for a plugin folder that is a link or a git checkout. A linked folder is moved aside as the backup; the folder it points to is not changed.
  • About OPDS Plus, at the bottom of Settings, shows when the last check was made.
  • What a check sends: an update check is a request to api.github.com for the latest release of this repository, with the plugin version in the User-Agent. GitHub sees your IP address, as with any request. Nothing else is sent, and OPDS Plus has no server of its own. See SECURITY.md.

Downloads (New in 1.3.0)

  • Save Description with Downloads:
    • Enabled (default): the description a catalog gives for a book is saved with the downloaded file, so it shows in KOReader's Book information. A description the book already has, or one you edited yourself, is never replaced.
    • KOReader marks a description saved this way with its pencil icon, like any customized property. To remove it from a book, long-press the description in Book information and tap Reset custom.
    • Disabled: downloaded books are left as the server delivers them.

Sync Actions & Settings (New in 1.2.0)

  • Direct Sync Actions:
    • Sync all catalogs
    • Force sync all catalogs
    • Both only cover catalogs with Sync catalog ticked: long-press a catalog, tap Edit and tick it.
  • Gesture Integration:
    • Actions are registered in KOReader's dispatcher as:
      • OPDS Plus: Sync all catalogs
      • OPDS Plus: Force sync all catalogs
    • These can be assigned in KOReader's gesture/action configuration.
  • Catalog Sync Controls:
    • Per-catalog sync and force-sync via catalog long-press actions.
    • Sync folder selection: open the menu at the top left of the list of catalogs and tap Set sync folder. Sync needs a folder before it can start.
    • Maximum sync download count.
    • Filetype filtering for sync downloads.

Book Info Dialog (New in 1.2.0)

  • Tapping a book now opens a book info dialog before download.
  • Dialog includes cover preview and at-a-glance metadata for faster decisions.
  • Download actions are available directly from the dialog flow.

Adding Your Own Catalogs

  1. Open OPDS Plus Catalog → Browse Catalogs
  2. Tap the menu at the top left of the list of catalogs and select Add catalog
  3. Enter:
    • Catalog name
    • OPDS feed URL
    • Username and password, if the server needs them
  4. The new catalog will appear in your catalog list. Long-press it to edit or delete it

Inside a catalog, the same menu's Add catalog saves the page you are on as a catalog of its own.

Custom HTTP Headers (New in 1.3.0)

Some servers only answer requests that carry extra headers. A Calibre-Web, COPS or Kavita server behind Cloudflare Access (Zero Trust), for example, expects CF-Access-Client-Id and CF-Access-Client-Secret.

  1. Add a catalog, or long-press an existing one and tap Edit
  2. Tap Headers, in the row with Cancel and Save
  3. Write one header per line as Name: value, then tap OK and Save
CF-Access-Client-Id: <your client id>
CF-Access-Client-Secret: <your client secret>

The button shows how many headers the catalog has, such as Headers (2).

  • The headers go with everything the plugin asks that server for: catalog pages, covers, downloads, sync and Kavita page streaming.
  • Linked authentication-document discovery is deliberately anonymous: it sends neither catalog credentials nor custom headers.
  • They are only sent to the catalog's own server, meaning the same scheme, host and port. http and https, or two different ports, count as different servers. A request that is redirected to another server is followed without them. Catalogs on the same server share their headers: the first catalog in the list that has headers decides what is sent to that server.
  • Headers the plugin has to control itself, such as Host, Content-Length, Connection and Accept-Encoding, can't be set. A custom Authorization header replaces the catalog's username and password.
  • Treat headers like a password. They are saved as plain text in opdsplus.lua, so anyone who can read that file can read them.

From 1.6.0, the catalog's username and password are scoped to its scheme, host and port, including the first request to a linked feed, cover, download or stream. A foreign link does not inherit the source login, and saving it as a subcatalog does not copy that login. Destination-specific custom headers still apply. Older download-queue entries without a saved catalog origin withhold Basic credentials and show a notice; remove and re-add any entries that need authentication.

Feed and cover caches are separated by authentication context. Changing a login or custom headers can trigger fresh requests; old unscoped cover entries are no longer read. Header changes can invalidate caches for other catalogs too, because redirected requests may use those headers. Cache limits and cleanup remain unchanged, and credentials are not stored in cache names.

🔧 Technical Details

Requirements

  • KOReader v2025.10, minimum
  • Network connectivity for browsing online catalogs

File Structure

opds_plus.koplugin/
├── _meta.lua
├── main.lua
├── opds_plus_version.lua
├── config/
│   ├── settings.lua
│   └── settings_menu.lua
├── core/
│   ├── browser_context.lua
│   ├── catalog_manager.lua
│   ├── download_manager.lua
│   ├── feed_fetcher.lua
│   ├── navigation_handler.lua
│   ├── parser.lua
│   ├── state_manager.lua
│   ├── stream_progress.lua
│   ├── stream_sync.lua
│   ├── sync_manager.lua
│   ├── mappers/
│   │   ├── atom.lua
│   │   └── opds2.lua
│   └── parsers/
│       ├── atom.lua
│       └── opds2.lua
├── models/
│   └── constants.lua
├── services/
│   ├── authentication.lua
│   ├── catalog_loader.lua
│   ├── cover_cache.lua
│   ├── cover_loader.lua
│   ├── cover_memory.lua
│   ├── http_client.lua
│   ├── image_loader.lua
│   ├── kavita.lua
│   ├── ota_updater.lua
│   ├── stream_loader.lua
│   ├── stream_provider.lua
│   └── tls_hostname.lua
├── ui/
│   ├── browser.lua
│   ├── utils.lua
│   ├── dialogs/
│   │   ├── book_info_dialog.lua
│   │   ├── download_builder.lua
│   │   ├── menu_builder.lua
│   │   ├── release_notes.lua
│   │   ├── settings_dialogs.lua
│   │   └── update_dialog.lua
│   └── menus/
│       ├── cover_menu.lua
│       ├── grid_menu.lua
│       └── list_menu.lua
└── utils/
    ├── archive_paths.lua
    ├── auth_document.lua
    ├── button_dialog_builder.lua
    ├── catalog_utils.lua
    ├── debug.lua
    ├── file_utils.lua
    ├── json_decode.lua
    ├── request_headers.lua
    ├── result.lua
    ├── semver.lua
    ├── uri_template.lua
    └── url_utils.lua

The release archive holds exactly these files, plus README.md, CHANGELOG.md and LICENSE. The repository also has spec/ (automated tests), scripts/ (test tooling and the release build), tools/ (end-to-end checks in a real KOReader), docs/wiki/ (the source of the wiki) and .github/ (CI), which are not part of the archive.

Settings Storage

Settings are stored in: <KOReader data dir>/settings/opdsplus.lua

This file contains:

  • Catalog list, including each catalog's custom HTTP headers
  • Download history
  • Display preferences
  • Font settings
  • Grid layout configuration
  • Update settings: whether to check weekly, when the last check was, and a skipped version
  • Local page-stream positions and synchronization baselines, without API tokens

Cached covers are stored in <KOReader data dir>/cache/opds_plus/. To remove both, use KOReader's plugin manager and choose Disable plugin and delete settings or Delete plugin and settings. Downloaded books are never deleted.

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Report Bugs: Open an issue describing the problem
  2. Suggest Features: Share your ideas via GitHub issues
  3. Submit Pull Requests:
    • Fork the repository
    • Create a feature branch
    • Make your changes
    • Submit a PR with a clear description

Development Guidelines

  • Follow KOReader's Lua coding conventions
  • Test on multiple screen sizes if possible
  • Ensure compatibility with existing OPDS catalogs
  • Document new features in the README
  • Run luacheck . and scripts/test.sh before opening a pull request. CONTRIBUTING.md explains the test setup and the rest of the workflow

🔒 Privacy

OPDS Plus collects no analytics and sends nothing to its author. It talks only to the catalogs you add and, for the update check, to GitHub (which sees your IP address and the OPDSPlus/<version> user agent); the weekly check can be turned off under Settings → Updates. Catalog passwords, Kavita API keys in catalog addresses, and custom headers are saved as plain text in opdsplus.lua, and a password sent over an http:// address travels unencrypted. SECURITY.md has the details and explains how to report a vulnerability.

📝 Known Issues & Limitations

  • Covers show only when the catalog provides image URLs; some feeds have none
  • Large catalogs may take time to load initially, and Grid View performance varies with the device
  • OPDS Plus recognizes authentication documents and explains available methods without sending credentials to advertised login endpoints. Existing Basic and custom-header access remains supported. OAuth login is not implemented; see authentication discovery.
  • Local/PSE resume and opt-in Kavita/Komga page-stream synchronization are supported. Downloaded books are not synchronized, and the server APIs cannot guarantee atomic conflict detection.
  • The SERIES: line that Calibre and Calibre-Web add to descriptions stays in the description, next to the Series row
  • Update release notes are shown as plain Markdown text

🙏 Credits

  • Original OPDS Plugin: KOReader development team
  • Enhancement Development: greywolf1499
  • Built upon the excellent KOReader e-reader software

📜 License

This plugin is released under the same license as KOReader: GNU Affero General Public License v3.0 (AGPL-3.0)

See the LICENSE file for details.

📞 Support

🔄 Version History

See CHANGELOG.md for detailed version history.


Enjoy enhanced OPDS browsing with OPDS Plus! 📚✨

Explore projetos relacionados

Carregando…