9 years ago, I built DHCP.js to solve a Raspberry Pi problem: setting up a Pi headlessly when I needed its IP to SSH in.
DHCP.js is a complete DHCP server and client written entirely in JavaScript. It’s still actively used and just got a major update: