Changes

Jump to navigation Jump to search
Javascript library
Line 91: Line 91:     
The openfoodfacts dart package has been extended to add support for the new [[Product Attributes]] created for the Personal Search project. It also contains functions to manage user preferences, and filter and rank products according to those preferences.
 
The openfoodfacts dart package has been extended to add support for the new [[Product Attributes]] created for the Personal Search project. It also contains functions to manage user preferences, and filter and rank products according to those preferences.
 +
 +
* openfoodfacts Dart package on pub.dev
 +
* openfoodfacts Dart package source code on GitHub
    
== Example Flutter app with personalized search results ==
 
== Example Flutter app with personalized search results ==
Line 98: Line 101:     
[[File:Flutter-smoothie-preferences.png|200px]]
 
[[File:Flutter-smoothie-preferences.png|200px]]
 +
 +
= Javascript library =
 +
 +
The Javascript library can be used on websites and browser extensions. It is used in particular on the [https://world.openfoodfacts.org Open Food Facts website] to display personalized search results.
 +
 +
* library to display, select and store user preferences on the browser using localstorage: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/html/js/product-preferences.js
 +
* library to match, filter and rank search results according to user preferences: https://github.com/openfoodfacts/openfoodfacts-server/blob/main/html/js/product-search.js
    
[[Category:Project:Personalized_Search]]
 
[[Category:Project:Personalized_Search]]
 
[[Category:ProductOpener]]
 
[[Category:ProductOpener]]

Navigation menu