Morsel - Something Impactful with Cloudinary & Firebase
And in every kitchen there is a strange silence, a quiet place where forgotten things slowly lose their names beneath frost, fading color and the indifferent passing of days. We open the refrigerator for something familiar and find instead a small archeology of intentions: half a meal wrapped in yesterday, a fruit surrendering its brightness, vegetables past their moment, portions prepared with care now awaiting a verdict. Somewhere between hunger and haste, abundance and neglect, we have learned to throw away what we once promised ourselves to save. But waste seldom makes its presence known. It gathers up softly, behind closed doors, under the common routines, until what was once nourishment becomes another shadow in a growing flow of discarded possibility. The oddity is, the answer isn’t always more food, more money, or more resources. Sometimes it’s just seeing what’s already there, really seeing it before it goes away. And possibly, in a world ever more told to ask machines what the future might look like, we should first tell them to look closely at what it is we are about to lose today.
What We planned
Introducing Morsel, an AI-powered consumer food-waste intelligence platform designed to help households reduce unnecessary food disposal through visual intelligence and personalized recommendations. Users can photograph leftover, stored, or potentially spoiled food, with Cloudinary serving as the core media intelligence layer for secure image storage, optimization, transformations, automated tagging, metadata management, image analysis, and intelligent media delivery.
Advanced computer vision techniques can detect, segment, classify, estimate portions, detect visual anomalies and analyze image similarity of food, with Gemini interpreting the visual information to provide contextual guidance, recipe suggestions, storage recommendations, food-reuse ideas and personalized waste reduction strategies. Firebase handles authentication, user profiles, food entries, history, preferences, and impact information. The application for consumers is built with Next.js, TypeScript and Tailwind CSS.
Morsel can also generate custom sustainability reports that display recurring waste patterns, estimated food saved, and household-level environmental impact.
The platform converts everyday food photos into actionable decisions, directly addressing SDG 12: Responsible Consumption and Production, specifically the goal of reducing consumer-level food waste. It demonstrates how Cloudinary, computer vision and generative AI may be integrated to develop practical technology for social good.
How the idea of Morsel came?
In an Indian home food seldom begins as mundane. It starts with someone’s hands. Someone’s time. Usually someone’s love. A mother’s extra bowl of curry in case someone comes home late, a grandmother saved yesterday’s rice for the next morning, vegetables bought at the weekly market, or an elaborate festival meal. Days go by, containers are moved to the back of the fridge, fruits begin to soften and leftovers are silently forgotten. And then there’s the familiar moment when someone opens the refrigerator, looks at something that’s been sitting there too long and just throws it away. Not only food vanishes, but money, labor, and care that put it on the table.
It was this daily schedule that made the problem intriguing. Most households don’t waste food because they want to waste it. They don’t remember what they have, they underestimate quantities, they don’t know how to use leftovers, they simply can’t tell if something is still acceptable to use. Imagine if the refrigerator could be a little touch of a source of intelligence. A photo could let the system know what’s inside, artificial intelligence could understand the context, and instead of judging the user, it could suggest what could be cooked, what should be eaten first, how something could be stored or when it might actually be better to throw it away.
That was the seed of Morsel. The idea is straightforward. Provide food a second chance to become something useful before it becomes waste. Morsel converts a normal photo into a small decision-making tool for everyday households using computer vision, generative AI and intelligent media processing. This isn’t another sustainability lecture that tells people to waste less. It’s about helping them to notice what they already have, to appreciate it a little more, and maybe save one more meal from becoming tomorrow’s waste.
What Can Morsel Actually Do?
Morsel takes a simple photo of your food and turns it into actionable intelligence. The user can take a photo of leftovers, fruit, vegetables, packaged food or ingredients sitting in their kitchen and Morsel taps into the media intelligence power of Cloudinary to analyze and understand the image before Gemini interprets the visual context. The system can recognize food items, estimate portion sizes, detect visible signs of spoilage, categorize items into a personal food inventory and suggest which items might need attention first.
But recognition is just the beginning. Morsel can suggest recipes based on what’s already in the fridge, offer ways to reuse leftovers, provide tips on storage and help users decide what to eat first. Instead of “What should I cook today?” users can ask “How can I save what I already have?” The app can track the history of wasted and re-used food, making it possible for users to learn about their consumption habits.
These individual decisions, over time, become important knowledge. Morsel can produce customized waste reports, emphasize ingredients that are frequently wasted, calculate savings on food and resources, and show how small household decisions contribute to a larger sustainability goal. What we get is not just an AI that can recognize food from images, but an intelligence layer that faces the consumer and helps turn seeing food into understanding it and understanding it into action.
How Can Morsel Achieve the SDG-12?
SDG 12 is all about changing our consumption patterns and food waste is right at the heart of that challenge. Target 12.3 seeks to halve global per capita food waste at the retail and consumer levels by 2030, and Target 12.5 aims to significantly reduce waste through prevention, reduction, recycling and reuse. The household matters particularly because of the size of the problem. An estimated 1.05 billion tons of food was wasted globally in 2022, with households responsible for some 60 percent of that waste. The intervention of Morsel targets precisely this consumer level, where everyday decisions can stop food from becoming waste in the first place.
So the relationship is not just that Morsel is an app about sustainability. The core actions are directly in accordance with the logic of SDG 12. A photograph shows a household what it already has. Prioritizing food encourages eating food before throwing it away unnecessarily. Suggestions for reuse (recipes). Prevention supported by storage guidance Tracking wasted and saved food builds real awareness. Personalized reports can help households to recognize recurring patterns and change their consumption behavior gradually. This turns SDG 12 from a distant global goal into something that can be achieved within the walls of a daily home kitchen, a single decision at a time. UNEP emphasizes measurement as one of the primary foundations needed to understand food waste and find opportunities for decreasing it.
The most important thing is that Morsel does not measure success by how much food it acknowledges. Its measure is the measure of its contribution to the reduction of needless waste. Each ingredient eaten before it is forgotten is a small step toward the ambition of SDG 12.3. Reuse is the idea that whatever is leftover transforms into another meal. Every household that finds its own waste pattern is closer to responsible consumption. So the application is a simple loop of see, understand, reuse, measure, improve. These tiny choices, can be part of the more widespread global movement to reduce food waste. Morsel’s purpose is ultimately simple. To bring one of the world’s largest sustainability issues into the most tiny sphere where change can begin, the home.
How Morsel Gets Its Memory?
Firebase quietly becomes the memory of Morsel. Every user’s journey is preserved through their profile, food entries, consumption history, preferences and personal waste records. A photograph becomes a decision, that decision does not simply disappear. It becomes part of a growing story that helps Morsel understand the household better over time.
Get Megh Deb’s stories in your inbox
Join Medium for free to get updates from this writer.
This memory gives Morsel its ability to show progress rather than just provide suggestions. Users can look back at what they saved, what they wasted, which ingredients repeatedly slipped away, and how their habits changed. Firebase keeps these moments connected, turning scattered daily choices into a personal journey towards more conscious consumption.
How Morsel Teach Images to Tell Their Story?
Cloudinary constitutes more than a place to store food and photographs. It becomes the visual intelligence layer between the user’s camera and the understanding of the application. While Cloudinary’s AI capabilities analyze what is in the image, every image can be uploaded, optimized, transformed, securely managed, and efficiently delivered. The image of a forgotten bowl or half-eaten vegetable can be organized using visual information before it passes through the explanation layer of Morsel.
The ability to make the media itself savvy is where the real advantage lies. Cloudinary can identify objects and categories, apply relevant tags, comprehend the quality of an image, create captions and even keep important objects when an image has to be cropped or transformed. To Morsel, that means a food photo can be read beyond its pixels. The system may recognize what is visible, structure the visual information and pass on a richer understanding so that the application can figure out what deserves the user’s attention.
For Morsel, we bring these capabilities together through Cloudinary AI Content Analysis. Content Analysis gives us object and category detection, automatic tagging, AI image captioning, image quality analysis, and object aware cropping. AI Vision adds a more flexible layer where Morsel can define its own food related visual categories or ask open ended questions about an image. Together, these capabilities allow the application to move from simply storing a food photograph to actually understanding its visual content, while Gemini takes that visual context further into recipes, reuse suggestions, storage guidance, and personalized decisions.
Describing the Core Technical Methodology
Morsel is engineered as a modern full stack web application using Next.js with TypeScript as the primary application framework, Firebase as the backend data platform and Tailwind CSS for the interface layer. The Next.js application handles the consumer interface, authentication flows, image submission workflows, food inventory management, recommendation interfaces and sustainability dashboards. TypeScript provides static typing across the application and establishes stronger contracts between the user interface, application logic, external services, and stored data. The architecture is organized around reusable components and service boundaries so that visual processing, AI inference, user data, and presentation logic remain independently maintainable.
The AI pipeline begins when a user submits a photograph of food. Computer vision is used to extract structured information from the image, including food identification, object localization, segmentation, visual classification, portion estimation and visible anomaly detection. This visual information is then provided to Gemini as contextual input rather than asking a generative model to perform the entire perception pipeline alone. Gemini acts as the reasoning layer that interprets the detected food, understands the user’s context, generates recipe and reuse suggestions, provides storage guidance, prioritizes food items and produces personalized sustainability insights. The separation between perception and generative reasoning allows Morsel to follow an AI architecture where specialized image intelligence produces evidence and the language model converts that evidence into consumer facing decisions.
Cloudinary and Firebase form two distinct infrastructure layers within the system. Cloudinary handles the media lifecycle, including image ingestion, secure storage, optimization, transformation, delivery, and AI powered visual analysis. Its AI capabilities can support object detection, automatic tagging, image captioning, image quality analysis, object aware cropping, and AI Vision based image understanding. Firebase manages authentication, user profiles, food inventory records, preferences, historical activity, reused and wasted food records and impact information. The application therefore separates media processing from structured application data while allowing both layers to work together through stable identifiers and metadata.
From a system engineering perspective, Morsel follows a modular and service oriented approach rather than coupling every operation into a single application workflow. Image ingestion, visual analysis, generative reasoning, persistence, recommendation generation, and impact calculation are treated as separate logical stages connected through well defined interfaces. The system follows a pipeline of capture, validate, process, analyze, reason, persist, recommend, measure and learn. Validation occurs before expensive AI operations, structured outputs are stored alongside relevant metadata, and asynchronous processing can be introduced for computationally intensive image analysis without blocking the consumer interface. This architecture also provides clear opportunities for observability, error handling, caching, rate limiting, model replacement, and future horizontal scaling. The result is a system where Cloudinary provides the visual intelligence infrastructure, Gemini provides contextual reasoning, Firebase provides persistent application state, and Next.js coordinates the complete consumer experience.
The Ripple Beyond Your Home Kitchen
Morsel is meant to make an impact by connecting each sustainability outcome to something a household can actually do inside the app. A photo becomes recognition, recognition becomes a recommendation, recommendations become action and repeated actions become habits. Morsel doesn’t make social impact an abstract promise, but rather ties its features to the everyday moments where food waste starts.
- Less household food waste : Food recognition and priority alerts help users consume items before they are forgotten.
- Smarter consumption : Personal food inventory shows users what they already have before they buy more.
- Better use of leftovers : AI recipe generation transforms existing ingredients into new meal possibilities.
- Reduced household expenses : Waste tracking reveals frequently discarded groceries and helps users make better purchasing decisions.
- Resource conservation : Impact tracking estimates the resources preserved through food that users successfully save and reuse.
- Greater food awareness : Consumption history reveals patterns that are difficult to notice during everyday routines.
- Sustainable behavior : Personalized reports turn individual waste patterns into practical goals for improvement.
- Measurable environmental impact : Morsel’s impact dashboard visualizes food saved, waste reduced and household sustainability.
No one will ever know the true impact of Morsel in the number of photos it can understand. It will be measured in what happens after the picture is taken. A meal is a forgotten vegetable, awareness is a repeated pattern of waste, and slowly awareness becomes a habit. When those small decisions are repeated in thousands of homes, the kitchen is more than a place to eat food. It becomes the place where responsible consumption starts. Morsel simply provides every household a way to get that start.
The thing about food waste that hurts most? We don’t usually see what we’re throwing away. We see a forgotten container, a bruised fruit, rice left on a plate. We don’t see the rain that fell on the field, the soil that grew the crop, the hands that harvested it, the truck that carried it through the nite, the mother who cooked it, or the money someone counted before bringing it home. Someone somewhere worked for this food to get to us. Someone somewhere may be going to sleep tonight wishing they had enough of it. Then we open the bin without a second thought and throw the whole journey away. Morsel is created because perhaps we have forgotten how precious an ordinary meal truly is. It does not ask us to become perfect. It asks us to pause for one second before something becomes waste and wonder whether it still has a life left to give. Maybe that is all change ever asks of us. One pause. One photograph. One meal saved. Because if technology can help us remember the value of what we already possess, then perhaps its greatest achievement will not be intelligence at all. Perhaps it will be helping us become human enough to care. And when the world eventually asks what we did with everything we were given, I hope our answer is not that we consumed it all, but that we remembered to save some for tomorrow.







