I spent last night putting together this tool. You can try it out here: https://isitcanadian.cynber.dev/product-search

Some barcodes that you can try with:

  • 0673513001507
  • 0013000052528

It lets you search for a product by the barcode, and then using the Open Food Facts database, it will tell you where the product is from (origin of ingredients, location of manufacturing / processing, and where it is sold). You can then search for Canadian alternatives.

It uses the categories of the item to search for similar items in the database, and filters out items that aren’t Canadian in at least one of the ways above. You can further filter by those categories or by origin and manufacturing / processing location.

I chose Open Food Facts because it is an existing open source initiative, run by a non-profit, and already has lots of data. When a product is missing or incorrect, you can contribute it with their mobile app. This has the added benefit of improving the data for everyone, and there’s a lot more there than just the country of origin.

Some things I’d like to do:

  • Ability to search by name, not just barcode
  • Ability to scan a barcode instead of typing it in / pasting it
  • Gather articles and compilations from community members since the search alone would be tedious
  • Go through the mess I made of the code while trying to do it all in one night

I hope it’s helpful, and I’d love to hear feedback. It’s open source so if you want to contribute, you can find the code here: https://github.com/cynber/is-it-canadian

I’ll be back again tonight to respond to comments and feedback. Thanks you!

  • MeatsOfRage@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    22 hours ago

    Check out the app Yuka for a good inspirational basis. I think in particular one feature this really needs is the ability to scan a barcode. Typing them out at the grocery store is likely a non starter for most people. Great idea though and would love to see this catch on

    • The_Helmet_Stays_On@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      4
      ·
      21 hours ago

      Yeah the whole typing the barcode thing won’t work for most. My SO gets stressed enough when out shopping so having to stop and type in a barcode is a non starter. Even if you could search by the product name would help.

      • Cynber@lemmy.caOP
        link
        fedilink
        arrow-up
        4
        ·
        21 hours ago

        It’s the first thing I want to improve. I didn’t have time to explore how to do that last night, but I’m planning to.

        If someone else has experience there, I’d appreciate the help!