Is it possible to run Express server with Node.js in plugin?

Basically I want to create a local host that can be opened in the browser so that the user can do some stuff with their Artboards.

Hi @talkaboutdesign,

This – unfortunately – isn’t possible. Although some aspects of the APIs kind of resemble NodeJS things, there isn’t an accessible node runtime (and since plugins aren’t able to run system commands of any kind except for openExternal(), we’re also not able to create one).

You could try having a HTML file on a server in which you use JavaScript to communicate with your plugins via a WebSocket and open it with openExternal() (I don’t know if this could work – it’s just an idea which you could try), but other than that, there isn’t any way to do this with XD plugins.

I hope this helps :wink: