Edit: actually, that's a Node.js-specific API. For browsers, it seems like they should have a platform-independent JavaScript/TypeScript API that includes a WebAssembly file (if needed) instead of expecting you to compile WebAssembly yourself.
iroh is a peer to peer networking technology so the project example of controlling a fan isn't so much about the fan but rather that it's controllable from anywhere through an esp32 microcontroller that can maintain a resilient connection endpoint even through power cycles and so on. I think iroh was posted about on HN a few weeks ago and I had a similar reaction of like...what in the world is this blog post even saying haha. But I found their docs page and found it pretty fascinating learning!
https://docs.iroh.computer/what-is-iroh
https://docs.iroh.computer/languages/javascript
Edit: actually, that's a Node.js-specific API. For browsers, it seems like they should have a platform-independent JavaScript/TypeScript API that includes a WebAssembly file (if needed) instead of expecting you to compile WebAssembly yourself.
It links to my Google Home installation and responds to voice commands.
https://us.store.tapo.com/products/tapo-h110-smart-ir-iot-hu...
Someone with too much time on their hands might benefit from the iroh solution....
There’s a lot that comes for free by adding all these libraries and crates and steps. But from what I can tell it comes down to:
let _ = if fan_on { fan.set_high() } else { fan.set_low() };
Somebody wanted to do something, and they did it; it doesn't have to be any more complicated than that :-)
> Don't be curmudgeonly. Thoughtful criticism is fine, but please don't be rigidly or generically negative.
Sincerely, HN Guidelines Police :-)
https://news.ycombinator.com/newsguidelines.html