Chef Mixtral is an AI-powered recipe page that utilizes the Hugging Face AI Model Mixtral to generate and manage interactive recipes. Built with React and Vite, this project demonstrates the use of state, props, and other modern React concepts to create a dynamic user experience.
- AI-powered recipe suggestions using Hugging Face's Mixtral model.
- Users can add ingredients, and based on a minimum of 4 ingredients, the AI generates a recipe.
- Interactive and responsive design.
- Dynamic Markdown rendering for recipe content.
- Environment variable management using dotenv.
- Built with cutting-edge React features.
- Frontend Framework: React (Version 19.0.0)
- Build Tool: Vite
- State Management: React State and Props
- Packages Used:
@huggingface/inference(v3.0.0)dotenv(v16.4.7)react-markdown(v8.0.6)react(v19.0.0)react-dom(v19.0.0)
To run Chef Mixtral locally, follow these steps:
-
Clone the Repository:
[git clone](https://github.com/Priyanshu-Iron/Chef-Mixtral) cd chef-mixtral -
Install Dependencies:
npm install
-
Set Up Environment Variables:
- Create a
.envfile in the root directory. - Add your Hugging Face API key:
REACT_APP_HUGGINGFACE_API_KEY=your_api_key_here
- Create a
-
Run the Development Server:
npm run dev
-
Open http://localhost:5173 in your browser to view the app.
Chef Mixtral is deployed on Netlify. Check it out here: 👉 Chef Mixtral Live
- The app fetches recipe suggestions from the Hugging Face Mixtral model.
- Users can input ingredients into the app. When a minimum of 4 ingredients are provided, the AI generates a recipe suggestion.
- User input is handled dynamically with React state and props.
- Recipes are displayed in a beautifully rendered Markdown format.
This project was inspired by the lessons on Scrimba taught by [Bob Ziroll]. The primary focus was on learning interactive web development using:
- State management.
- Prop drilling.
- Integration of external APIs.
This project is licensed under the MIT License.
- Hugging Face for the Mixtral AI model.
- Scrimba for providing excellent learning resources.
- [Bob Ziroll] for his insightful tutorials.
For any inquiries or contributions, reach out at:
- Email: ps2894944@gmail.com
- GitHub: Priyanshu-Iron
Happy Cooking! 🍲

