Hi, thanks for the question!
Logseq Sync is designed for scalability (millions of graphs) and performance, we used AWS lambda && gateway a lot, DynamoDB, Postgres, which are very complex and not designed for self-hosted.
We’re not going to open-source Logseq Sync for both business and the above reasons, but we plan to design a protocol for self-hosted usage so that the community can implement different solutions on top of it.