Is it possible to manipulate the graph externally, without using the frontend application? It would be nice to be able to aggregate external data and feed it into logseq automatically.
On Desktop or Android? Of course! That’s a benefit of using file-based storage. It’s a common usage to combine Logseq with other markdown-based softwares.
Things are trickier on iOS, due to it’s limitation on permission: Logseq on iOS says "Please choose a valid directory" on setup graph
I meant more like a server/headless interface. Like some kind of cli or library that allows me to add/edit pages and blocks programmatically.
There is an HTTP API server, which call plugin APIs. There is a createPage API.
Documentation of the API server
-
https://docs.logseq.com/#/page/local%20http%20server
Plugin API documentation -
https://plugins-doc.logseq.com/logseq/Editor/createPage
https://plugins-doc.logseq.com/logseq/Editor/deletePage
With that, you can interact with your graph from external applications.
In addition, there’s the GitHub - logseq/nbb-logseq: nbb with features enabled for logseq project
There is an HTTP API server, which call plugin APIs. There is a createPage API.
Documentation of the API server
But this API server needs the GUI interface to work. How can we use the api without the GUI application if the Logseq notes are hosted on a remote server?