There's no need for an "interface".
You may execute Node-RED flows on a Pico with node-red-mcu
& the node-red-mcu-plugin
. It's a different concept to what you are looking for - but offers endless options to access the Pico hardware.
Additionally you may look at the (pure) Moddable SDK - which is the foundation node-red-mcu
is based on.