● Health OS
πŸ₯

Health OS Integration

Recipes you save here are automatically synced to your Family Health OS via shared storage. Open Health OS in the same browser to access them.

🎬 Extract Recipe from YouTube
Paste any cooking video URL β€” AI will extract the complete recipe and fill the form automatically.
Analyzing video and extracting recipe...
🍽️
🏷️
⏱
🍽
🌍
πŸ”₯
πŸ§‚ Ingredients
Amount Unit Ingredient
🏷️ Tags
πŸ“Š Nutrition (per serving)
Calories
kcal
Protein
grams
Carbs
grams
Fat
grams
Fiber
grams
πŸ“‹ Instructions
πŸ’‘ Health Notes & Benefits
πŸ”— Source
πŸ“Έ Photos & Video
πŸ“·
Add Photo
Click or drag & drop
JPG, PNG, WEBP
πŸ”„ Change Photo
🎬
Video / 2nd Photo
Extract from YouTube above
or upload directly
πŸ”„ Change
`); win.document.close(); setTimeout(()=>win.print(), 500); } // ───────────────────────────────────────── // TOAST // ───────────────────────────────────────── function showToast(icon, msg) { const t = document.createElement('div'); t.className = 'toast'; t.innerHTML = `${icon} ${msg}`; document.getElementById('toasts').appendChild(t); setTimeout(()=>t.style.animation='toastIn .3s ease reverse',2700); setTimeout(()=>t.remove(), 3000); } // ───────────────────────────────────────── // DRAG & DROP // ───────────────────────────────────────── function setupDragDrop() { ['photo-slot-1'].forEach(id=>{ const slot = document.getElementById(id); if(!slot) return; slot.addEventListener('dragover', e=>{e.preventDefault();slot.style.borderColor='var(--orange)'}); slot.addEventListener('dragleave', ()=>slot.style.borderColor=''); slot.addEventListener('drop', e=>{ e.preventDefault(); slot.style.borderColor=''; const file = e.dataTransfer.files[0]; if(!file?.type.startsWith('image/')) return; const dt = new DataTransfer(); dt.items.add(file); const inp = slot.querySelector('input[type=file]'); if(inp) { inp.files=dt.files; inp.dispatchEvent(new Event('change')); } }); }); } // ───────────────────────────────────────── // INIT // ───────────────────────────────────────── function init() { load(); if(recipes.length) { currentId = recipes[0].id; recipeToForm(recipes[0]); } else { const r = newRecipe(false); recipeToForm(r); // Add sample starter ingredients & steps addIngredient({amount:'',unit:'',name:''}); addStep(''); } renderSidebar(); checkHOSLink(); setInterval(checkHOSLink, 3000); setupDragDrop(); } init();