openfaux / openfaux-client

Browser add-on for encrypting and masking internet traffic.
https://openfaux.org
GNU Affero General Public License v3.0
49 stars 25 forks source link

Abstraction layer for persistent storage #35

Open juzerali opened 10 years ago

juzerali commented 10 years ago

Browsers provide different APIs to persist user configuration settings which can sync across devices. Rather than writing methods for each and every platform we should use an abstraction which can detect the platform and use the available API.

zlatanvasovic commented 10 years ago

interesting idea.

juzerali commented 10 years ago

Before proceeding to write the extensions themselves we should identify the areas where same code will be repeated number of times because of different APIs exposed by browsers. For those browsers that allows writing extensions in javascript, we should write abstractions which will provide a uniform API for writing the business logic. Providing a way to persist configuration will be trivial after writing these abstractions. We can even write a generic library separate from the project. Otherwise writing code for each and every browser will be cumbersome.

If focus is on a single browser then we should proceed that way.

juzerali commented 10 years ago

I am thinking of starting an independent project that will act as an adapter to browser extension (chrome) APIs, @nb333 @ZDroid, do you think this library will have a place in this extension? Moreover, will you be interested in adopting that project once it reaches beta by openfaux? Or else we can start that project as part of openfaux organization only. Let me know.

zlatanvasovic commented 10 years ago

I'm ok with it, no problem to make new repository. If want, I can add it to #25.

juzerali commented 10 years ago

do add it. and also create a repo.

juzerali commented 10 years ago

See the api branch. Thoughts!