Skip to content

How data storage works

Diego Ballesteros edited this page Jan 6, 2022 · 3 revisions

TLDR

This app use's your primary browser's local storage to store the data from all the nuzlocke runs in the tracker. This does not manipulate, touch, or create files on your computer nor does it have any sort of access to anything on your computer or mobile phone! Think of it as cookies in the browser, however, this does NOT track anything either, the data stored is purely tracker related and is not sent to anyone or anything. Local, in this case, means it is local to the browser itself. Take a look at this link to better understand how local storage works:

https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

Side note

The app has always worked in this fashion even since its first iteration! But I decided to include a small informational message so users are aware of how it works so they don't accidentally delete their tracker data when clearing their browser's cache or that at least it's an informed decision

LocalStorage

localStorage has no expiration date in the browser's cache so it's perfect for storing the data of the nuzlocke tracker. This way if you close the app or the browser the data will remain! However, if you ever clear the cache of your browser. For example by selecting the following option in Google Chrome:

More tools > Clear browsing data...

In fact, the export/import features of the app directly use this localStorage! When exported and imported it looks at the data that is in localStorage.

Clone this wiki locally