Hefta

Downloads

The Hefta apps download exercise demo clips and food data from this server. They are our edited copies of openly licensed work, so we publish them here under the same licences. You can download, reuse and share them on the terms of each licence below.

Exercise demo clips

Clips by Goulart, from wger.de, licensed under CC BY-SA 4.0. We cut each one to a single loop, converted it to standard dynamic range, scaled it to 480p and removed the sound. Our edited clips are licensed under CC BY-SA 4.0 too.

Loading the list…

The exercise drawings come from Everkinetic (based on everkinetic.com by Greg Priday), licensed under CC BY-SA 4.0. We removed the white background and rewrote the path data without changing the shapes. Our edited drawings are licensed under CC BY-SA 4.0 too: exercise-drawings.json, one entry per exercise with its SVG path frames and credit.

Food data

Generic foods combine these sources:

Packaged products, one file per country, contain information from Open Food Facts, which is made available under the Open Database License (ODbL) 1.0. Each file is a derivative database: the products sold in that country, with fewer fields. We offer it under ODbL 1.0.

Loading the list…

  1. Keep a product when it has a barcode, a name, and energy, protein, carbohydrate and fat per 100 g (energy in kcal, or kJ divided by 4.184), and the values are plausible: 0–900 kcal, each nutrient 0–100 g, the three together at most 105 g, and the energy no further from 4 kcal per gram of protein and carbohydrate plus 9 per gram of fat than 40 kcal or 35 % of the larger of the two, whichever is more.
  2. Of those, keep a product that Open Food Facts' app has scanned (unique_scans_n above 0) or that is sold in Thailand, Singapore or Malaysia. The first row for each barcode wins.
  3. Keep these fields: barcode, name, first brand, countries (as ISO 3166 codes), energy, protein, carbohydrate, fat, sugars and sodium per 100 g (rounded to 0.1, sodium in mg; sugars and sodium only from 0 to 100 g), the serving in grams (rounded to 0.1, kept from above 0 up to 2,000 g), the serving size and quantity as written, the last-modified time, the scan count, and each country's best scan rank from 2023 on in popularity_tags (at most 20 countries). Names keep 200 characters, brands 100, the rest 64. Control characters are removed.
  4. Add two search keys made from brand and name: one in lower case with Thai and full-width digits as 0–9, × as x, only letters and digits kept and Thai tone marks removed; and, when that has no Thai letters, the same with these spelling rules applied in order: aow→ao, ow→ao, gr→kr, kh→k, ph→p, th→t, ch→c, g→k, kra→ka, kre→ke, w→o, ee→i, oo→u, r removed, then each run of a repeated letter written once (with Thai letters, the second key is the first).

For apps and scripts

Each list above is read from a manifest with every file's path, size and SHA-256: /media/manifest.json and /media/food/manifest.json. File names carry a hash of their content, so a name never changes meaning.