OPDS (Open Publication Distribution System) is protocol in the background. Jellyfin has a plugin for OPDS and works by simply dropping a file in specified directory, but it doesn't support multiple catalogues (i.e. one per library/directory).
Protocol is atom based, chatgpt was able to make a custom OPDS server for my needs within minutes, it took another hour or two to fix and customize generated code.
Also, turning pages is faster than with the stock reader of the device.
https://github.com/janeczku/calibre-web