Hi, there is no supported SDK for doing that, but...
See this Gist for info on how to install Node.js on the drone. From the comments:
The firmware is closed source so you still have to interface with the
drones flight control but being able to run node on the drone allows for
autonomous control rather than having to rely on wifi range
In summary, it's a lot of work but may be possible.
Note I've not tried any of the above so am unable to help you further.