Calories food packs: open data
The Calories app can download a food database for your country, so packaged products are searchable and scannable offline. Each one is built from open data and is itself open data.
Licence
Each food pack is made available under the Open Database License (ODbL) 1.0. Its individual contents are under the Database Contents License (DbCL) 1.0. Every pack carries this notice inside it.
Sources
- Product data from Open Food Facts, available under the ODbL. The packs use its public CSV export.
- In the United States pack, also USDA FoodData Central Branded Foods, in the public domain (CC0 1.0).
How the packs are made
For each country, the builder keeps the products sold there that have a valid barcode, a name, energy, protein, fat and carbohydrate, and plausible values. Every product someone has scanned is kept, and the rest of the pack, up to 250,000 products, holds the most recently updated ones (in the United States, USDA records first). Each product gets an emoji from its category or name, and its name and brands are indexed for search. A pack ships only after it passes checks on its size, its counts and known products.
Packs are rebuilt from the current export when the app is released. The app downloads only your country's pack, and only when you ask for it.
Get the databases
The builder below reproduces every pack from the public Open Food Facts export. It is a Swift package: with Swift 6.2 or later on macOS, run, in the unpacked archive, swift run --package-path tools/FoodCatalog food-catalog packs build --work-dir <dir> --output-dir <dir> and it downloads the sources, builds the packs as SQLite files and checks them.
Builder source
- 2026-11-15: packs for LV, IE, DE, GB, US, FR, ES, IT, PL, PT, BR, MX, CA, TR, UA, NL, BE, from the Open Food Facts export of 2026-11-15. Builder source: food-catalog-2026-11-15-717675a30.tar.gz (8268549 bytes, commit
717675a30), SHA-25675d0296a e46cc609 cfcad18d 73acdc3d aa488300 aae7778f e6b9ea0b 480a4748. - 2026-11-13: packs for LV, IE, DE, GB, US, FR, ES, IT, PL, PT, BR, MX, CA, TR, UA, NL, BE, from the Open Food Facts export of 2026-11-13. Builder source: food-catalog-2026-11-13-f0ea21410.tar.gz (6019517 bytes, commit
f0ea21410), SHA-256b43fd3a8 9d033d75 8df7668c 5afec09b ed048f2c 93df08fc 43345231 5513e2c6. - 2026-11-03: packs for LV, IE, DE, GB, US, FR, ES, IT, PL, PT, BR, MX, CA, TR, UA, from the Open Food Facts export of 2026-11-03. Builder source: food-catalog-2026-11-03-80158d2fa.tar.gz (186676 bytes, commit
80158d2fa), SHA-2561ae41b3e 9534243f 17d40013 94a0f3c4 024d9220 b324c444 d3d90b0e 676ccb25.