2 hours ago · Tech · 0 comments

I hack on hardware a whole bunch, at Inanimate and at home. AI is in the cloud. Interaction is in my room and in my hands. The job always begins by wiring together those two ends. So the second thing I do, every single time, is bring up real-time messaging using JSON over websockets so I can connect my new device to a server, and have it emit events and listen for commands. (The first thing I do is bring up the hardware and get basic blinkenlights.) I want my on-device websockets client to have a super easy interface: give me an onMessage handler to deal with incoming messages. I need built-in wi-fi config (so I can carry my prototype around to different places). And I don’t want to have to choose which libraries I’m going to use each time, I want good defaults. That’s what Courier does, in just a handful of lines. Honestly this isn’t rocket science. It’s no biggie. But it’s decisions I make and boilerplate I have to write for every new project, and I find Courier useful personally.…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.