Post

Extensions can talk to native applications over stdin/stdout developer.mozilla.org/en-US/docs/M... Electron's main process uses Node so I just needed to spawn the process and connect that to the extension background script. So far I've mostly seen this with password managers.

developer.mozilla.orgNative messaging - Mozilla | MDNNative messaging enables an extension to exchange messages with a native application, installed on the user's computer. The native messaging serves the extensions without additional accesses over the ...

Interesting. Sounds like a perfect solution for interfacing with CLI tools like FFmpeg and SQLite. Didn’t know it derived from browser extensions – I’ll have to read up on this!

Yep, the only caveat is that it's limited to json so typically a small helper utility is used. I'm guessing this is how some extensions integrate with Anki too.