Inquiry about Downloading and Executing Local Executables in Obsidian Plugins

Hello everyone,

I am currently developing an Obsidian plugin that aims to allow users to download a local executable file written in Go, which would then start a service for interacting with Obsidian. My goal is to provide a user-friendly interface that enables users to create sites, select themes, preview, and publish content without requiring any development knowledge.

I would like to ask if there are any documents or examples that explain how to implement the following functionalities within an Obsidian plugin:

  1. Downloading Executable Files: I would like to enable users to easily download the Go project’s executable file through the plugin interface.
  2. Executing Local Files: After downloading, can the plugin use Node.js or a similar method to execute the executable file?

I have searched through the official Obsidian documentation and the API documentation but haven’t found specific implementation examples. Any guidance or pointers from the community would be greatly appreciated.

Thank you for your help!

Moved to Devs: Plugin & API

I didn’t see it in the docs, but I did that in my plugin

downloading binary obsidian-fix-require-modules/src/esbuild.ts at a0a3914b9925eb4c0adcf611f1f575f2bfb8aa5e · mnaoumov/obsidian-fix-require-modules · GitHub

for executing binaries there is node:child_process.exec()

note, that this would work only on Desktop, on mobile you cannot use node modules

Awesome, thanks a lot!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.