Currently I am storing all data in a javascript object that is then turned into JSON string and put into a text file when I want to export it.
However, storing the data in this format is inefficient and not true to the original project idea. Ultimately I want this to be a user checking out a profile from a web server and update the profile on that web server when necessary. I don't think storing the entirety of the profile data on the client side makes sense to meet that requirement, and I will be tracking enough data that using a database to store that data makes more sense.
Additionally, I am currently categorizing data by domain, but cookies because cookies are not unique to a websites subdomain but local storage is, trying to group profiles based on cookie domain names does not work. I originally formatted it like this to account for inefficient searches through the profile object, but if I am using a database and the profile object as just a key lookup, I think searching and extracting data will fast enough.
Currently I am storing all data in a javascript object that is then turned into JSON string and put into a text file when I want to export it.
However, storing the data in this format is inefficient and not true to the original project idea. Ultimately I want this to be a user checking out a profile from a web server and update the profile on that web server when necessary. I don't think storing the entirety of the profile data on the client side makes sense to meet that requirement, and I will be tracking enough data that using a database to store that data makes more sense.
Additionally, I am currently categorizing data by domain, but cookies because cookies are not unique to a websites subdomain but local storage is, trying to group profiles based on cookie domain names does not work. I originally formatted it like this to account for inefficient searches through the profile object, but if I am using a database and the profile object as just a key lookup, I think searching and extracting data will fast enough.