Welcome to Gourmet-Formalog-Standalone, a powerful, open-source meal planner that puts you in control of your nutrition! 🥗 Built on a robust Prolog backend, Gourmet-Formalog-Standalone integrates a wealth of food-related data to help you create personalized, healthy meal plans tailored to your unique needs and preferences. 🍎
Gourmet-Formalog-Standalone is part of the Free Life Planner (FLP) project, which aims to create a free, open-source AI system to help people manage various aspects of daily life. The meal planner aims to improve nutrition, taste, cost, and convenience for individuals and families.
- 📊 Comprehensive food databases, including Food Data Central, Open Food Toxicity DB, SOAR Recipe Archive, Prolog WordNet, and FODMAP DB
- ⚡ Lightning-fast data loading using the Quick Load Format (QLF)
- 🍳 Intelligent meal planning algorithms tailored to your preferences and health needs
- 🖥️ Intuitive web interface for scanning barcodes, viewing nutrition info, and more
- 🌐 Accessible via various Pengines libraries from multiple languages
- 🔍 Powerful food ontology with knowledge of substitutions, properties, and similarities
- 🧪 Integration with health data to support specialized diets (GERD, diabetes, etc)
- 🤝 Community ownership via free/libre/open-source license (GPL)
As free software that can be copied and redistributed at near-zero cost, Gourmet-Formalog-Standalone and the FLP have the potential to help alleviate hunger, disease, and other problems at a global scale. By packaging a comprehensive set of AI capabilities into an integrated system and releasing it under a free software license, we aim to create a universal tool that can adapt to serve the needs of people worldwide.
Some key philosophical and technical points behind the project:
- Separate software components can be integrated to create more powerful systems
- Free software is non-rivalrous and can be copied endlessly to benefit more people
- Modeling reality symbolically and reasoning over digital twins can help manage real-world complexity
- Releasing under a free/libre/open-source license (GPL) enables community ownership, adaptability, and broad distribution to help the most people
- Clone the Gourmet-Formalog-Standalone repository:
git clone https://github.com/aindilis/gourmet-formalog-standalone.git
cd gourmet-formalog-standalone
- Build the Docker image:
docker build .
- Run the Docker container:
docker images
docker run -it <IMAGE> bash
- Inside the container, start Gourmet-Formalog-Standalone:
./run.sh
If the build fails due to issues with food_nutrient.qlf
or other files, try the following:
- Find the running Gourmet-Formalog container:
docker ps -a
docker container exec -it <CONTAINER> bash
If there are no running containers, start a new one:
docker images
docker run -it <IMAGE> bash
- Inside the container, compile the problematic files and update permissions:
cd /var/lib/myfrdcsa/codebases/minor/gourmet-formalog/data/source/food-data-central/ && swipl -g "qcompile('food_nutrient.pl')."
chown andrewdo.andrewdo /var/lib/myfrdcsa/codebases/minor/gourmet-formalog/data/source/food-data-central/food_nutrient.qlf
- Restart Gourmet-Formalog-Standalone:
cd /home/andrewdo && ./run.sh
Once Gourmet-Formalog-Standalone is running, you can interact with it using Prolog queries. Here are a few examples:
-
List all available schemas:
findall(X,schema(X),Xs),write_list(Xs).
-
Search for a specific food item in the Food Data Central database:
search_food_data_central('611269716467',Res),write_list(Res).
-
Count the number of recipes in the database:
findall(1,rec(_,_,_),Recs),length(Recs,Len),write_list([Len]).
-
Test the food data parsing functionality:
testParseFooddata.
Gourmet-Formalog-Standalone supports pengines on port 9883, allowing you to interact with the system using various clients, such as:
To query the pengines server, follow these steps:
- Inside the Docker container, navigate to the formalog-pengines directory:
cd /var/lib/myfrdcsa/codebases/minor/formalog-pengines/formalog_pengines/ && swipl -s formalog_pengines_client.pl
- Load the ports configuration:
consult('/var/lib/myfrdcsa/codebases/minor/formalog-pengines/attempts/pengines/1/ports.pl').
- Enter a query, for example:
query_formalog_pengines_agent(gourmet,'172.17.0.2',search_food_data_central('611269716467',Res),Result),print_term(Result,[]).
For more information on meal planning and related resources, please visit:
- Barcode scanning and nutrition lookup for 100,000s of products
- Rapid loading of comprehensive food, recipe, and nutrition databases
- Temporal metric planning for nutritionally tailored meal plans
- Interactive cooking assistant to walk through recipes step-by-step
- Support for specialized medical diets (diabetes, GERD, etc)
- Comprehensive food ontology with knowledge of substitutions and properties
- Natural language recipe parsing and normalization
- Recommender system for recipes and ingredients based on preferences
- Multi-user meal planning that factors in schedules, transport, budgets
- Modeling of food spoilage, inventory, and shopping needs
- Detailed nutrition tracking and empirical analysis
- Integration with telemedicine, symptom tracking, and health records
The broader vision of the FLP is to end the "information dark ages" where critical knowledge doesn't reach the people who need it in time. Whether it's knowing which foods are safe for a medical condition or having step-by-step guidance in an emergency, we believe AI can democratize access to life-saving information and planning abilities.
Gourmet-Formalog-Standalone is one component of this mission, focused on the universal need for healthy, affordable, and tailored nutrition. By modeling each individual's situation, integrating diverse data sources, and generating optimized plans, we hope this libre meal planner can help improve health outcomes for people worldwide.
We welcome contributors to join us in realizing this vision! As a free/libre/open-source project, Gourmet-Formalog-Standalone will always remain community-owned and adaptable to local needs. Financial support can also help accelerate development. Together we can build AI that empowers people everywhere to live better.
We would like to thank all the contributors and open-source projects that have made Gourmet-Formalog-Standalone possible, including the developers of the various food databases and libraries we rely on.
Gourmet-Formalog-Standalone is proudly released under the GNU General Public License v3.0 as free/libre/open-source software.
🍽️ Here's to healthy eating for everyone with the power of AI! 🥦🥑🍗🍚🥕