Axel Rauschmayer on Nostr: Flash card web app: I’m considering two ways of storing the state of a card deck ...
Flash card web app: I’m considering two ways of storing the state of a card deck (which cards were already shown etc.):
1. User opens folder and selects card deck file in app. App stores state in sibling file.
Relevant API is well supported: https://caniuse.com/native-filesystem-api
2. User opens file. App stores state in IndexedDB.
Upside of #1: If the user opens a folder on Dropbox (etc.), the state is synced between devices.
Upside of #2: nicer UI
Any ideas or suggestions?
1. User opens folder and selects card deck file in app. App stores state in sibling file.
Relevant API is well supported: https://caniuse.com/native-filesystem-api
2. User opens file. App stores state in IndexedDB.
Upside of #1: If the user opens a folder on Dropbox (etc.), the state is synced between devices.
Upside of #2: nicer UI
Any ideas or suggestions?