I use and can recommend the chrome extension from https://sessionbuddy.com/
Even if you don't use it actively, it periodically saves the state of your windows and tabs (all locally), so you can restore sessions from months and years ago.
Even if you don't use it actively, it periodically saves the state of your windows and tabs (all locally), so you can restore sessions from months and years ago.
Although it is not open-source, it has customizable exports in a variety of text formats . Too tired to write more, but if you use chrome check it out.