In fact, this is what I did. By relying on the powerful editing capabilities of vscode, making a vscode plug-in to integrate the functions of the joplin client can make my daily use easier.
So, of course, you can also write a joplin client, use the joplin data api to communicate with joplin, and if you want, you can even integrate it into an electron application, and joplin is also an npm package.