School Meal Planner banner

School Meal Planner

3 devlogs
4h 54m 35s

Tells you what meals to get for the school week using the nutrislice api and hackai!

This project uses AI

So obviously it uses Hack Club AI in the backend to generate the responses, and I used copilot a bit for debugging.

Loading README...

shn

Shipped this project!

I built an app that plans your lunches for the week based on what is available at school on that day! The most challenging part was dealing with the Nutrislice API, because it was unofficial and didn’t have any docs at all. I am most proud of how I fine tuned the prompt and model to make the AI response perfect

shn

So I just worked on the Readme mainly today, but I also made an adjustment to the history part. Before, I was storing it on a json file, which is hella jank and also doesn’t save between sessions. This time, I used Streamlit’s session state property, which is basically just storing info as cookies(I think) so that it saves between different tabs and stuff. I also made a logo for my project! It’s just a mash up of all the different stuff I used in my project. That’s the attachment cuz the demo is pretty much the same as last time :pf:

Attachment
0
shn

So this is most likely gonna be the final devlog before shipping? During this one I added:

  • History
  • AI responses
  • Secret handling via streamlit itself
    First up: history. This one was pretty ez to implement, basically it was just putting prompts and responses into a json file and then retrieving it and putting it back in the prompt when we need it
    Second: AI responses. This one was kind of harder because this required some actual logic and app flow. I made it so that after you enter your info with the dropdown, the ai responds and then there’s a text box you can enter stuff in.
    Third: Secret handling via streamlit. Pretty self explanatory
    One thing I want to do after is maybe make it so that it uses Streamlit’s own session state property to store history and past messages. Would be cool. Attachment is my demo(again) See y’all on the other side!

P.S Speed I need these votes my project is kinda homeless

1

Comments

developergirishgiri

nice plz give me vote also and follow me

shn

So this is prob gonna be the biggest devlog, spent most of my time working on getting the nutrislice api to work. It’s really unofficial and has no docs, so had to dig through some really old reddit threads to get it to work. Rn it only works for my school, maybe will make it work for whatever school you select in the future but no promises. The json response it gives is giant and is in the format of a week, so it took some time to figure out what was worthwhile info and how to get it. After that it was smooth sailing, using hack club ai was pretty ez cuz of the docs. Using streamlit is cool cuz I can do everything in python with like no work(I hate web dev with my whole heart) So yea that’s the end of my yap the attachment is me using it :D

0