Bringing Node.js to IoT: Meet low.js
How low can you go?
On GitHub, it’s recommended to use use low.js with ESP32. ESP32 is low-cost, low-power, with Wi-Fi and Bluetooth capabilities. (The cost may vary depending on your location and availability, but prices hover around 12 USD, and can even drop into single digits.)
SEE ALSO: Top 5 IDEs and code editors for Node.js
For both hobbyists and professionals alike, this low cost is an attractive solution. Especially if you have to factor in unit cost for production, keeping materials affordable is key.
Bringing Node.js to the IoT
So, why should we care about such low requirements? It’s not like our computers are commonly chugging along on such low RAM. Except, there are still plenty of use cases where low.js shines. For instance: IoT devices.
The low.js website gives some more food for thought on its capabilities in the professional setting:
low.js for ESP32 adds the additional benefit of fast software development and maintenance. The complete software stack of an IoT product (microcontrollers, websites, servers) can be based on the same software base. No specialized software developers are needed for the microcontroller software.
Ready to begin?
There are two versions of low.js available depending on your needs. The community edition runs on POSIX-based systems (Linux, uClinux, or Mac OS X) and is open sourced on GitHub. All this version takes is a little simple programming knowledge to get it up and running.
Then, the ESP32 edition that is adapted for the ESP32 microcontroller is available for purchase. This version comes pre-flashed and is therefore available to use right out of the box, but other than this it is identical to the free, open source version.
Peruse through the documentation for more details about this project. According to the documentation, only half of the Node.js API is currently implemented. Currently, its creators are progressing on the other 50%. They state that “only non-depreciated, non-experimental APIs of Node.js will be implemented”. The status of each is reflected on the site.
What will you build?