That’s awesome. I’m on mobile and can’t tell what tech you’re using but I bet you can just calculate day night geometries and draw them onto a Leaflet or OpenLayers map.
I can’t commit atm but I might poke at this and I’ll flag you if I come up with something or find an existing solution. A leaflet plug-in for this sounds like a fun little project.