https://github.com/wcochran/calfoo
I just create my own "refrigerator" by manually adding foods I eat (no bar code scanner or online database).
BTW, someone actually took forked my code and placed a version in the App store without ever asking me. I was sort of dumbfounded that someone would do this.