Hello,
Turning an EPUB document into a streamable Web Publication in realtime is
something that we do as well in every implementation of the Readium-2
streamer: https://github.com/readium/readium-2/tree/master/streamer
We have full implementations in the following languages for now:
- Go: https://github.com/readium/r2-streamer-go
- TypeScript/JS: https://github.com/edrlab/r2-streamer-js
- Swift: https://github.com/readium/r2-streamer-swift
- Kotlin: https://github.com/readium/r2-streamer-kotlin
All these streamers output a Readium Web Publication Manifest:
https://github.com/readium/webpub-manifest
It would be extremely easy to output any other manifest format as well.
They're also capable of injecting JS/CSS in realtime, this is how we inject
Readium CSS for example: https://github.com/readium/readium-css
Best,
Hadrien