{"by":"baalimago","descendants":84,"id":41284189,"kids":[41284248,41306509,41307113,41307326,41313313,41310476,41306899,41307478,41309175,41309556,41311150,41287547,41292203,41308675,41307054,41310506,41306771],"score":108,"text":"It works by injecting a websocket script which listens for file changes. The filechanges are detected using the go fsnotify package, which in turn uses the different OS&#x27;s equivalent to inotify.<p>I basically got bored with alt-tabbing and refresing when developing &#x27;vanilla-js&#x27;. The hot-reload in the modern frameworks are very nice, so  figured I&#x27;d recreate it.","time":1724005455,"title":"Show HN: Wd-40, a static webserver with automatic hot-reloads","type":"story","url":"https://github.com/baalimago/wd-40"}