A lot of code for Esp devices, Arduino clones and other embed computers is open source coming straight of china. This was also the case 15 years ago.