HealthCode banner

HealthCode

3 devlogs
8h 2m 43s

HealthCode is an ai powered health and safety checker that uses an image of a barcode from a food product. which then gets information about the product such as the ingredients and an ai checks if theres any unsafe or unhealthy ingredients and giv…

HealthCode is an ai powered health and safety checker that uses an image of a barcode from a food product. which then gets information about the product such as the ingredients and an ai checks if theres any unsafe or unhealthy ingredients and gives the products a health and safety score based off of that!

This project uses AI

The whole base of this project relies on ai to summarize the food information but heres what i used ai for with coding:
Ive used ai to help me with fetching hackclub api in php so i can bypass their cors restrictions, fetching openfoodfacts data, and with the barcode scanning boilerplate. also for minor questions like css animation help and other small things.

Demo Repository

Loading README...

Tom

Shipped this project!

Hours: 8.05
Cookies: 🍪 95
Multiplier: 11.75 cookies/hr

I built a webapp that scans barcodes and sends that to openfoodfacts api which returns information about the product then it gets sent through an ai which makes a summary with information about how healthy it is, Allergens in the ingredients, alternative products, and per ingredient how healthy it is I learned alot from this project and im super proud and excited to ship it

Tom

Finally! Healthcode is done and im so so so proud of it im super excited to release it for everyone to view and see. The only problem is that the barcode scanning is a little bad so the barcode has to be the only thing in the picture i might add a way for users to add a barcode number manually but i would have to get someone complaining from people before i do the backend works and the frontend looks exactly like i had it in mind. I had some spare time so i added an about me page just for funsies.

Attachment
0
Tom

I added some responsiveness so the website can be viewed on mobile! I tried to scan some barcodes on my phone after but sadly it didn’t work im currently working hard trying to fix this. I have a feeling its an issue with my phone because i have an iphone and iphones suck! But lets hope i get this figured so i can keep working on other things!!

Attachment
0
Tom

Uhm i don’t know what happened to my last devlog.. Its gone but i created a ui for uploading a barcode image which then gets the barcode number using the library “html5-qrcode” Then it sends that barcode number to the openfoodfacts api which returns the ingredients and product name. Then it goes to my own sites webhost which calls the hackclub ai api in php to bypass CORS. that returns all the data for the summary but its still not done the backend still needs alot of improvement. im happy with how the current ui looks though!

Attachment
0