I vibecoded something like this a little while ago, but haven't had the time to actually run it to see if it works yet..