calibre comes with a builtin Content Server from which browsers can search for and download books from your calibre library. See the Connect/Share toolbar icon.
I have never explored what options are available for creating a web-based ebook library, it is possible there are better programs for doing so, but I can certainly say with confidence that calibre
can be used for that purpose.