As far as I can see the main issue with GDPR and cookies is that cookies may be tracked and the data may be shared against user’s wishes.
The JavaScript Web Storage API is a useful repository for settings and other user data, but this doesn’t leave the browser.
Would using Web Storage require user permissions?