Stockpiling

Why not all products are found using a barcode scanner - and where our data comes from

Matthias Schmid

July 19, 2021

In this article, we give you a look behind the scenes at how we process barcodes and where our product data comes from.

How does a barcode work?

A barcode, also known as a stripe code, is a machine-readable identification number. It makes products identifiable for commercial use and retail - ideally unique on a global scale.

The first barcode (Universal Product Code, abbreviated UPC) was introduced in 1973 in the USA. The commonly used UPC-A in the USA consists of 12 digits. It quickly becomes apparent that, aside from the country and the manufacturing company, not much information is contained within those 12 digits.

An EAN13 barcode - the machine-readable part on top, below the encoded 13-digit identification number. No more information is contained directly in the barcode. By VaGla - own work created in Inkscape based on the graphics by Grzexs, CC BY-SA 3.0

In Europe, three years later in 1976, the European Article Number (abbreviated EAN) was introduced. It is 13 digits long and compatible with the UPC system.

Identification scheme since 2015

Since 2015, the identification numbers used worldwide in commerce have been renamed to Global Trade Item Number (GTIN). It is 8, 12, 13, or 14 digits long and always contains a check digit to detect errors during machine reading.

How does one access the product data?

GS1 Germany GmbH based in Cologne is the only official provider of EAN8/EAN13 codes in Germany. Anyone who wants to sell a product with a barcode must purchase a unique barcode from there.
Up to 30 barcodes can be retrieved for free per day from there - however, without all the relevant sizes that are of interest for the storage of food. For example, the product name, the package size, and the nutritional values are missing.

As a test, I used the official barcode search of GS1 Germany called Gepir to look up a randomly selected item: A pack of Haribo from an Edeka in Munich. The barcode 8426617106201 immediately reveals the country that issued the barcode: The two digits on the left stand for Spain (84).

The search in Gepir yields the following result: Company name "HARIBO ESPAΓ‘A S.A.U." as well as an address.

Unfortunately, we can't do much with this yet. Commercial use of the service is costly and does not provide us with the data we are interested in. At a minimum, these would be: name, quantity, nutritional values of the food, and information on any allergens it may contain.

The first pantry app with product data: Crowdsourcing

When we launched the first pantry app in the App Store in 2013, there wasn't even a barcode scanner - and accordingly, no product data was stored.
Each user had to enter their items manually, which was quite laborious. In December 2015, the time had finally come: We created a product database for the pantry, with which users still had to enter food items, but these were then shared among all users! This way, at least common items were usually already in the database, and the recording of stock or shopping became much faster.

However, over time, weaknesses of the approach have become apparent:

Thus, there was only one field per article for the product name - even though the app was also used internationally. People then filled in the name sometimes in Swedish, sometimes in English, sometimes in German.

Although the app had storage locations, it seems that these were not sufficient for organizing items for some users. Thus, cryptic category names like "30 Juice", "31 UHT Milk" quickly emerged, which were only understandable to the respective user.

Some users have meticulously transferred all nutritional values - others have completely skipped this part. The level of detail of the products varied accordingly. Excerpt from the product database of the Pantry App, where product names have been entered by different users in various languages.

The current Pantry WebApp

Before we released our current WebApp for public beta in 2019, we spent a long time searching for the right model regarding the product database. We considered how we could improve the quality of the existing data.

Ultimately, we have actively decided to stop using our own product database and instead switch to the open model of OpenFoodFacts.org. Here too, product data is maintained by volunteer users and stored in a publicly accessible database. However, the project has several advantages, as we will see in the following section.

Products can be accessed directly from OpenFoodFacts and used for one's own purposes. The product data is licensed under the Open Database License - this ensures the data can be used for any purpose - as long as newly added product data is contributed back - thus the crowd-sourcing effect is ensured through the license.

A few facts about OpenFoodFacts

  • OpenFoodFacts was founded in France in May 2012
  • Meanwhile, there are 1,875,095 product data from all over the world listed with barcodes

Compared to our first database, OpenFoodFacts has a very extensive data schema. For instance, name fields are provided for any language.

Additionally, OpenFoodFacts allows for the uploading of photos of the product, the list of ingredients, and the nutritional value table. This enables automated machine quality control of the entered nutritional information, significantly improving the quality of the data.

Everything that can be found on OpenFoodFacts about the bag of Haribo from the example above can be found here.

Pantry App and OpenFoodFacts

Since October 7, 2019, we have been retrieving product data from OpenFoodFacts and, of course, also contributing back for the benefit of all users.

Since then, our users have created 10,184 articles from scratch and edited 20,441 articles, mostly to add missing attributes.

With this, our users have created 0.5% of all articles in the global database - that's an impressive sum, from which users in Germany benefit especially! A heartfelt thank you at this point for the careful entry of data, which will be very conveniently available to all future users.

Although it may happen that individual products are not found when scanning, we believe in the approach: A product database maintained by users is independent of the interests of food manufacturers, can be expanded as needed, and is unrestrictedly usable for all future purposes.

So if you come across an article that is not found, and you have to enter it yourself - think of the many users who will also scan the article, they will thank you for your product entry! 😊

The best kitchen tools to turn leftovers into delicious dishes 🍲✨

Hand on heart: Each of us has them – those little leftovers in the fridge or pantry that somehow never get properly planned for. But it's exactly these remnants that can often be turned into the most creative and delicious dishes! All you need are a few clever kitchen tools that make the work easier and get the best out of your ingredients.

Here are our favorites:

πŸ₯£ 1. The powerful blender

Smoothies, soups, dips – a good blender transforms leftover vegetables, fruit, or even bread into a new dish in seconds. Perfect when bananas are a bit brown or the vegetables no longer look crisp.

πŸ”ͺ 2. A sharp chef's knife

Sounds simple, but a really good knife is worth its weight in gold. It allows you to cut vegetable and meat scraps precisely and quickly. Moreover, cooking is just more fun when you have the right tools.

🍳 3. A cast iron skillet

The all-rounder in the kitchen: fried potatoes made from leftover boiled potatoes, frittatas with yesterday's vegetables, or crispy bread cubes from stale bread – everything tastes twice as good in a cast-iron skillet.

πŸ₯• 4. Vegetable Peeler & Grater

A modest tool with a big impact: grate carrot leftovers, turn zucchini into noodles, or finely shred cheese remnants. With a peeler and grater, you bring variety to your leftover cooking.

πŸ₯‘ 5. Storage Containers & Screw-top Jars

Without proper storage, nothing works. You can keep leftovers fresh, transport them, or even prepare them for the next meal prepping. Tip: Jars are also great for serving small amounts in style.

🌱 6. Kitchen Scale

It's practical to know exactly how much is left over, especially with leftovers. This way, you can adjust recipes and avoid waste.

πŸ₯„ 7. Personal Blender

The little brother of the blender – perfect for soups or sauces right in the pot. When only a small amount needs to be processed, it's super convenient.

How Smantry additionally helps you πŸ“²

With the Smantry App you can not only keep an eye on your supplies, but soon you'll also be able to discover recipes for your leftovers. This way, you'll immediately know which tool to take out of the cupboard to save your food and create something new.

πŸ‘‰ Because good tools and the right app are the perfect combo to combat food waste.

September 4, 2025
2 min read

New laws on food waste in Spain

Spain has recently passed a groundbreaking law to combat food waste. This law requires all actors in the food chain, from producers to retailers, to implement specific plans to prevent food loss.

Key provisions of the law:

Obligation to donate surplus food: Supermarkets with a floor space of more than 1,300 square meters are now required to form partnerships with non-profit organizations to donate surplus food that is still fit for consumption. These donations are exempt from value-added tax.

Offer of packaging for leftover food: Restaurants and bars are required to provide their guests with free, reusable or recyclable packaging so that they can take home uneaten food. The aim is to raise consumer awareness of food waste and encourage them to take leftovers with them.

Promotion of the sale of products with approaching expiration dates: Retailers should offer products that are nearing their expiration date or have aesthetic defects at reduced prices to encourage their sale and reduce waste.

Hierarchy of priorities for dealing with surplus food: The law establishes an order for handling surplus food. Priority is given to human consumption through donations. If this is not possible, the food should be used for the production of processed products. The last options include using it as animal feed or for energy generation.

Sanctions for violations:

Companies that violate the provisions of the law can expect fines ranging from 2,000 to 500,000 euros.

PortableText [components.type] is missing "image"

Critique and Outlook:

While the law is considered an important step in the fight against food waste in Europe, there is also criticism. Some voices argue that the strict framework of sanctions could disproportionately burden companies and that the law does not sufficiently address the role of consumers, who are responsible for a significant portion of food waste.

Nevertheless, the law is seen as a significant advancement in reducing food waste and promoting a more sustainable awareness in society.

Join in and reduce food waste! πŸŒ±πŸ“²

Spain's new law demonstrates: Sustainability starts in the pantry! With the Speisekammer App you can keep track of your groceries, plan meals efficiently, and avoid unnecessary waste.

πŸ‘‰ Download the app now and join the movement for less waste and more conscious consumption! πŸ’š Try it now!

August 27, 2025
2 min read

Sharing supplies together – why the Shared Economy is now moving into the kitchen

The concept of Shared Economy has long been more than a short-term trend – it's changing our everyday lives. More and more neighborhoods, shared apartments, and community projects are discovering how practical it is to organize groceries together and manage supplies transparently.

Why sharing supplies is becoming increasingly popular

  • Save on costs: Bulk purchases become cheaper when more people participate.
  • Save space: Not everyone needs their own package of rice or pasta.
  • Better organization: Digital tools make it easy to see what is available.
  • Experiencing community: Food brings people together – as does camping together.

From the flatshare to the neighborhood

Especially in shared apartments or families with multiple households it pays off to keep a communal stock of supplies. But neighborhood projects or small communities are also recognizing the added value: shopping, storing, and using together.

How Smantry helps

This is where Smantry comes into play:

  • Community Feature: Supplies can be managed collectively.
  • Transparency: Everyone can see which items are available.
  • Efficiency: Duplicate purchases are avoided, leftovers are used up in time.
  • Flexibility: Soon it will become even easier to manage entire communities (including new features such as categories or the option to completely delete communities).

πŸ‘‰ The shared economy doesn't stop with cars – it moves right into your kitchen. With Smantry sharing supplies becomes easier than ever.

August 27, 2025
1 min read

At last, it's here: The categorization of articles πŸŽ‰

Over the past few months, we have collected numerous feedback from you – and the request for better organization of supplies was one of the most frequent wishes. Soon, it will be possible to sort your items into individual categories, so that you can keep track of everything even more quickly.

Why categories are so practical

  • πŸ₯¦ More organization in your pantry: Instead of a long list, you can structure your products into categories such as "Vegetables", "Beverages", or "Household Goods".
  • ⏱️ Faster Finding: No more long scrolling – jump straight to the right category.
  • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Improved collaboration: In communities or family households, everyone can immediately see where things belong.
  • 🌍 Customization: You can create your own categories that suit your needs – whether for meal prep, stockpiling, or just your everyday life.

Your wish will become reality ✨

We know how important this feature is to you. That's why our development team has implemented categorization as a high priority. It will soon be available step by step in the app – fulfilling one of the biggest wishes of our community.

We are thrilled that we can make everyday life even easier for you with this. Stay tuned – as always, we will keep you updated on when the feature will be officially released.

πŸ‘‰ Do you already have ideas on how you want to structure your categories? Feel free to send us your suggestions or requests – your input might directly influence the ongoing development.

August 20, 2025
1 min read