Nathan Grigg

iPad ebooks with MapleRead and OPDS

For many years, my family and I have been using Kobo devices, and I have been managing our ebook library in Calibre. It is not my favorite app, but I have put in the effort to organize my books, and it does a good job of syncing metadata to our Kobos.

I recently bought a new iPad Mini and was curious about using it as an ereader, since it is about the same size as a Kobo Libra.

I ended up using the MapleRead iPad app. It is a quirky, feature-packed, and overall delightful app. In some ways it is very utilitarian, prioritizing functionality over beauty. But it is also whimsical and seems to have drawn on Delicious Library for interface inspiration. It has an almost retro Mac app feeling to it. Anyway, I’m really enjoying it, at least for now.

There are many ways to copy books to it, but my goal was to get as much of my Calibre metadata as possible, and ideally in a way that is easy to maintain as my library changes. Some reasonable options that I didn’t end up trying:

Custom OPDS “server”

I ended up using OPDS as the format. My understanding is that MapleRead uses version 1.2 of OPDS, which is based on Atom. All you really need is a folder full of ebooks and a single Atom XML file listing your books and their metadata. Then MapleRead can batch import the files and metadata.

So I wrote a script that:

Series metadata

It worked almost perfectly, except I lost series information, which makes a library very frustrating to navigate if it isn’t stored correctly.

I was stumped on this for quite a while.

GenAI suggested I use a series tag inside a calibre namespace, but that didn’t work for me, and besides, the Calibre OPDS server doesn’t even use this. As far as I can tell, Calibre doesn’t surface the series information at all, except that there is an XML file for each series. I doubt that MapleRead can use those to extract series information, but it is possible, and I didn’t test it.

OPDS 2.0 uses JSON instead of Atom/XML and does support series. But MapleRead doesn’t support 2.0.

I couldn’t find documentation anywhere and wasn’t sure how to debug.

The breakthrough came when I realized that MapleRead can also start up a temporary OPDS server, useful for passing books from one device to another. And of course, it would represent metadata in the way that it best understands.

Thus I discovered two non-standard tags in the Atom namespace that MapleRead uses to pass series metadata: bm_series for the name of the series, and bm_volume for the volume number in the series.