I've been streaming hardware driver development using node. If you've ever wondered what's involved when talking to hardware, but were put off by needing to know C or kernel internals, you might enjoy this

This page summarizes the projects mentioned and recommended in the original post on /r/javascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • serialport

    Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!

  • It really depends. The stuff I'm doing in this video for example is writing a driver stack for a device called the Bus Pirate. Communication is done over serial (which is easy in node with the serialport library). The bus pirate is a device that allows you to talk to other devices over different protocols, including SPI, I2C, and OneWire (as well as bit banging, where you control some electrical signals directly any way you want using software). So while it's not something you'd do directly in production, you can actually test communication with devices in JS in a fast, iterative, interactive way without having to use a microcontroller. You can actually figure out all of your design decisions there and port your code to the microcontroller later if you're building some kind of embedded system device, potentially saving a lot of time and debugging.

  • node-zwave-js

    Z-Wave driver written entirely in JavaScript/TypeScript

  • I second this - I've been doing it for the last 4 years in a library with over 10k active users. Node.js might not be as fast as C for some tasks, but when the hardware you're talking to is the limiting factor, it just doesn't matter that the driver could be 4x as fast.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts