Save changed variable after interaction (flashcard UI)

I’d like to make a flashcard UI where people can upload their own terms.

As people practice, is there a way to save things like the number of times a card was answered correctly, or the box a card is sorted in (like boxes A-F for mastery)? I’d like it to be like how when you type code in an observable notebook, it autosaves.

Thanks
Andrew (Lao)

Each user could use Safe Local Storage / Mike Bostock / Observable

Or you would need something firebase.