I actually have the same idea @secure77. I think it should be simple as dropping in a folder of mark down file and have it published on your own server.
I made similar solution using NextJS with some basic feature like Obsidian Publish
NextJS
I’d love to hear more feedback to improve it.
Thanks.