Send the ebooks from your own Audiobookshelf library to a Kobo eReader over wifi, using the reader's own sync protocol.
pip install kobobridge
What it does
New epubs in Audiobookshelf appear on the reader after a sync.
Covers, authors, series and descriptions come across.
Reading progress from the reader is stored by the bridge.
Large libraries are sent in batches, so the first sync completes.
Runs on your own machine, next to the server you already run.
What it does not do
It never writes to your library. Every call to Audiobookshelf is a GET, and a test asserts it.
It does not touch any account on the manufacturer's store. No store credential, no user key, no device id. Setup points the reader at the bridge instead of the store, so while it is pointed here the reader does not sync with the store. Restoring one line in the reader's config file puts it back.
It does not convert anything. Only epub and kepub files are offered, and other formats are skipped.
Audiobooks and podcasts are skipped, because the reader cannot play them.
Highlights and annotations are not carried. The bridge serves no annotation address and never tells the reader about one, so nothing you highlight reaches it. The only things it keeps from what the reader pushes are the reading position, the read status and the reading statistics.
Shelves are not mirrored. One collection can be synced instead of the whole library with a paid key, see below.
It is not known to work on readers in general. One reader ran a complete sync of a three book library on a Libra Colour, firmware 4.46.23836, against version 0.1.4 and posted the trace in issue 6, and it was not the author, who owns no device. Another reader reports the opposite in issue 3, on a Clara B&W with the same firmware, 4.46.23836, and on a version of kobobridge they never stated. So one model and one firmware version are known to work for a small library, and nothing beyond that is.
No telemetry, no analytics. Nothing about your library leaves your machine. The only requests made to anything other than your Audiobookshelf are the key check, made only if you set a collection and a key, and not repeated once a key is activated.
Setup
You run the bridge on your own machine, then point the reader at it once: plug the reader into a computer over USB and change one line in its config file. The full setup steps are in the readme: setup steps.
Syncing one collection: a 15 euro key, once
Syncing the whole library is free, and so is every bug fix. A key, 15 euros once with no subscription, lets the bridge sync a single Audiobookshelf collection instead, so a sync only sends the books in that collection; books already on the reader stay there. This code is under the MIT licence like the rest of kobobridge, so you are free to read it, change it or remove the key check. The key is how you pay for this feature if you want it to work as shipped; it is not a permission you need. Sales are not open yet, and in version 0.2.0 no key unlocks it. To hear when sales open, subscribe to this issue, where the opening will be announced: tell me when sales open.
Status
Version 0.2.0. The sync protocol has been exercised over HTTP against a real Audiobookshelf library of 1,374 books, by a reader of this repository rather than by me: initialization, auth, paged sync to completion, downloads and covers. It has also been run against a physical device, and not by me, since I own none: one reader ran a complete sync of a three book library on a Libra Colour, firmware 4.46.23836, against version 0.1.4 and posted the trace in issue 6, fifty five requests with no failure and three files delivered at their advertised sizes. Another reader reports the opposite in issue 3: the books appear on the shelf and the files never arrive. That reader has a Clara B&W on the same firmware, 4.46.23836, so the firmware alone does not explain the difference; which version of kobobridge they ran was never stated. If you try it, an issue saying what happened is the most useful thing you can send, working or not.