{"id":29881402,"url":"https://github.com/kimhyeri/foundationmodelsplayground","last_synced_at":"2026-04-20T04:03:06.836Z","repository":{"id":306247378,"uuid":"1024302946","full_name":"kimhyeri/FoundationModelsPlayground","owner":"kimhyeri","description":"A collection of examples using Apple’s FoundationModels framework","archived":false,"fork":false,"pushed_at":"2026-03-11T01:58:14.000Z","size":950,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-11T07:40:59.054Z","etag":null,"topics":["apple","apple-ai","apple-foundation-models","apple-foundationmodels","apple-llm","apple-llm-examples","apple-ondevice","apple-ondevice-foundationmodels","apple-ondevice-llm","foundation-models","foundationmodels","llm","on-device-ai","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimhyeri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-22T13:42:56.000Z","updated_at":"2026-03-11T01:58:18.000Z","dependencies_parsed_at":"2025-07-24T15:58:07.582Z","dependency_job_id":"30d3f6fc-8c4a-44a1-a261-151502d80d67","html_url":"https://github.com/kimhyeri/FoundationModelsPlayground","commit_stats":null,"previous_names":["kimhyeri/foundationmodelsplayground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimhyeri/FoundationModelsPlayground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimhyeri%2FFoundationModelsPlayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimhyeri%2FFoundationModelsPlayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimhyeri%2FFoundationModelsPlayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimhyeri%2FFoundationModelsPlayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimhyeri","download_url":"https://codeload.github.com/kimhyeri/FoundationModelsPlayground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimhyeri%2FFoundationModelsPlayground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","apple-ai","apple-foundation-models","apple-foundationmodels","apple-llm","apple-llm-examples","apple-ondevice","apple-ondevice-foundationmodels","apple-ondevice-llm","foundation-models","foundationmodels","llm","on-device-ai","swift","swiftui"],"created_at":"2025-07-31T11:01:41.626Z","updated_at":"2026-04-20T04:03:06.830Z","avatar_url":"https://github.com/kimhyeri.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FoundationModelsPlayground\nA collection of on-device examples using Apple’s FoundationModels framework\n\n---\n\n## 🧪 Available Demos\n\n### 1. 💬 On-device Chatbot  \nA conversational chatbot that responds in a friendly tone.  \n\u003e ✅ Powered by `SystemLanguageModel`  \n\u003e ✅ Maintains short context history  \n\u003e ✅ Runs 100% locally on-device  \n\n[🗂️ ChatBot](./ChatBot/)  \n![ChatBot Demo](./Demos/chatBot.gif)\n\n### 2. 📝 Grammar Correction  \nAn English tutor that checks your sentence, explains grammar mistakes, and provides corrections.  \n\u003e ✅ Powered by `SystemLanguageModel`  \n\u003e ✅ Offers detailed explanations  \n\u003e ✅ Runs 100% locally on-device  \n\n[🗂️ GrammarCorrection](./GrammarCorrection/)  \n![GrammarCorrection Demo](./Demos/grammarCorrection.gif)\n\n### 3. 🍳 Recipe Generator  \nCreates cooking recipes with clear step-by-step instructions.\n\u003e ✅ Powered by `SystemLanguageModel`  \n\u003e ✅ Supports streaming output for recipe generation  \n\u003e ✅ Produces structured results (title, ingredients, steps)  \n\u003e ✅ Runs 100% locally on-device  \n\n[🗂️ RecipeGenerator](./RecipeGenerator/)  \n![RecipeGenerator Demo](./Demos/recipeGenerator.gif)\n\n### 4. 🏋️‍♀️ AI Workout Plan Generator\nGenerates personalized workout routines tailored to your goals, equipment, and experience level.\n\u003e ✅ Powered by FoundationModels (on-device)  \n\u003e ✅ Fully customizable inputs (goal, duration, equipment, level)  \n\u003e ✅ Produces clear step-by-step exercise lists  \n\u003e ✅ Runs 100% locally—no network required  \n\n[🗂️ WorkoutGuide](./WorkoutGuide/)  \n![WorkoutGuide Demo](./Demos/workoutGuide.gif)\n\n### 5. 🌙 CozyTales — Calm Storytelling for Children\nAn on-device storytelling app that generates calming, child-friendly stories in real time—designed to help children relax in stressful situations such as flights, bedtime, or unfamiliar environments.\n\u003e ✅ Powered by `SystemLanguageModel`  \n\u003e ✅ Generates safe, soothing stories entirely on-device  \n\u003e ✅ Adjustable story length (1–12 minutes)  \n\u003e ✅ Real-time text-to-speech playback using `AVSpeechSynthesizer`  \n\n[🗂️ CozyTales](./CozyTales/)  \n![CozyTales Demo](./Demos/cozyTales.gif)\n\n### 6. 🌤️ Weather Outfit Advisor\nAn on-device assistant that checks the weather for a city and suggests what to wear based on the conditions.\n\u003e ✅ Powered by `SystemLanguageModel`  \n\u003e ✅ Uses a custom `Tool` (`get_weather`) for weather lookup  \n\u003e ✅ Streams outfit advice in real time  \n\u003e ✅ Displays structured weather info (temperature, humidity, wind, condition)  \n\u003e ✅ Runs 100% locally on-device  \n\n[🗂️ WeatherOutfitAdvisor](./WeatherOutfitAdvisor/)  \n![WeatherOutfitAdvisor Demo](./Demos/weatherOutfitAdvisor.gif)\n\n---\n\n## 💡 About FoundationModels\n\n[FoundationModels](https://developer.apple.com/documentation/foundationmodels) is Apple’s official framework for running foundation language models on-device.  \nThese examples help developers explore capabilities like text generation, summarization, and natural dialogue — all without relying on cloud inference.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimhyeri%2Ffoundationmodelsplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimhyeri%2Ffoundationmodelsplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimhyeri%2Ffoundationmodelsplayground/lists"}