#emacs package persist-state 0.3 available on (stable) MELPA.
This package regularly saves your Emacs state (bookmarks, history,
recent files, etc.) when idle for a brief moment. In case Emacs is
idle for a longer time, no state is saved.
Version 0.3 adds support for regularly saving your buffer positions using the builtin saveplace package.
https://stable.melpa.org/#/persist-state
@ambihelical it doesn't handle multiple Emacs instances, as answered it in this toot: https://emacs.ch/@bram85/110572377272454938