Skip to content

abhilipsasahoo03/hunger-games

 
 

Repository files navigation

Hunger Games: One-click categorizer for Open Food Facts

Hunger Games is a series of mini-apps that let users contribute data to Open Food Facts, in a rather fun way using React. You are very welcome to write the game you want.

Try it

The production website is available at https://hunger.openfoodfacts.org

Why Hunger Games?

  • Because we are sympathetic to Katniss' fight against Panem.
  • Open Food Facts generates a lot of photos, and we need to turn them into reliable data about food and cosmetics, at very large scale.
  • We process all pictures using top OCR techniques and get a lot of raw text and entities (logos) about the products.
  • We then need to let users leverage this data to easily complete products, in a fun way, on their mobiles.

The main goal is: Every OpenFoodFact user can annotate products in a few minutes.

Who do I talk to?

Requirements:

Setup:

Libraries:

  • React
  • MUI (UI library based on material design)
  • Axios (HTTP calls)

APIs:

OFF APIs and Robotoff

Build

  • yarn build

Use a simple webpack config to bundle in a single file (build/bundle.min.js) and facilitate integration in OFF main site

Countries list

  • yarn countries

Generate the JSON file src/assets/countries.json which contains all the countries available on OFF taxonomy. Data are obtained from static.openfoodfacts.org

Taxonomy auto-complete

  • node update-taxonomy-suggestions.js

Fetch categories and labels taxonomy from OpenFoodFacts static files, and generate JSON files used by the Autocomplete fields.

How you can help

For developers, you can have a look at good first issues or ask on slack in hunger-games channel.

You can also help by improving translation in your language, Or the wiki page of the project

About

One click Mini-Games for Open Food Facts

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.5%
  • TypeScript 18.9%
  • HTML 1.5%
  • Shell 0.1%