There’s something called opds. Sort of like a file that defines a library and its contents.
https://standardebooks.org/opds/
I’ve never really been able to get it to work with calibre, pretty much the standard go to piece of software for all things ebooks.
I would be interested in hearing about any tips for getting an opds working.