When Logseq is running locally, you can use its [local http server](https://docs.logseq.com/#/page/local%20http%20server) to do this. https://github.com/logseq/nbb-logseq is useful for automations and is already used to create github actions e.g. https://github.com/logseq/publish-spa. In the upcoming database version, nbb-logseq is able to read and write Logseq graphs completely independent of the app - https://github.com/logseq/docs/blob/feat/db/db-version.md#sc...