--- title: Soap Lab emoji: ๐Ÿงผ colorFrom: yellow colorTo: green sdk: gradio app_file: app.py pinned: false tags: - gradio - chemistry - soap - small-models - backyard-ai - tiny-titan - off-brand - codex - field-notes - sharing-is-caring - track:backyard - sponsor:openai - achievement:offgrid - achievement:offbrand - achievement:sharing - achievement:fieldnotes --- # ๐Ÿงผ Soap Lab Plain English soap chemistry for home makers โ€” recipes, substitutions, troubleshooting. ## The idea I was asking in a soap making community what people do when they can't find an oil for a recipe. Someone asked about palm oil. The answer? *"Tallow maybe?"* SoapCalc and Soapmaking Friend have been the only options for years. Both are form-based tools โ€” dropdowns, number fields, ten steps before you get an answer. Neither explains anything. Soap Lab fixes that. ## Track ๐Ÿก **Chapter One: Backyard AI** โ€” built for a real home soap maker who needed explanations, not just numbers. ## Badges targeting - ๐Ÿœ Tiny Titan โ€” Qwen2.5-3B-Instruct (3B parameters) - ๐ŸŽจ Off-Brand โ€” custom warm cream UI, visual progress bars - ๐Ÿ’ป Codex โ€” agentic optimiser and UI built with Codex - ๐Ÿ““ Field Notes โ€” blog post linked below - ๐Ÿ“ก Sharing is Caring โ€” agent traces linked below ## What it does Five modes, all plain English input: * **Recipe** โ€” lye calculation from verified SAP values + quality scores + AI explanation * **Substitute** โ€” fatty acid matching to find the closest oil replacement * **Goal** โ€” skin-targeted recipe suggestions from a description * **Diagnose** โ€” batch failure analysis and fix * **Pantry** โ€” best recipe from whatever oils you have * **Optimise** โ€” agentic 3-iteration recipe improvement loop with before/after comparison Plus: superfat slider, vegan filter, water hardness recommendations with sodium citrate amounts. ## Architecture The lye calculation is **deterministic Python โ€” not AI**. SAP values from the HSCG professional standard, verified against known recipes, 33 tests passing. The model only explains numbers the code already calculated correctly. ## Model `Qwen/Qwen2.5-3B-Instruct` via Featherless AI โ€” 3B parameters, Tiny Titan eligible. ## Links - ๐Ÿ“ Blog post: https://huggingface.co/blog/build-small-hackathon/soap-lab-tallow-maybe - ๐ŸŽฌ Demo video: https://youtu.be/10OhPgMqAKo - ๐Ÿ“ฑ Social post: https://x.com/flower56778/status/2066095227429961777 - ๐Ÿ’ป GitHub: https://github.com/tammy357/soap-lab - ๐Ÿ“ก Agent Traces: https://huggingface.co/datasets/tammy357/soap-lab-traces ## Built with - Codex for UI redesign, agentic recipe optimiser, and water hardness mode - Deterministic chemistry engine (SAP values from HSCG) - Qwen2.5-3B-Instruct via Featherless AI # ๐Ÿงผ Soap Lab Plain English soap chemistry for home makers โ€” recipes, substitutions, troubleshooting. ## The idea I was asking in a soap making community what people do when they can't find an oil for a recipe. Someone asked about palm oil. The answer? *"Tallow maybe?"* SoapCalc and Soapmaking Friend have been the only options for years. Both are form-based tools โ€” dropdowns, number fields, ten steps before you get an answer. Neither explains anything. Soap Lab fixes that. ## Track ๐Ÿก **Chapter One: Backyard AI** โ€” built for a real home soap maker who needed explanations, not just numbers. ## Badges targeting - ๐Ÿœ Tiny Titan โ€” Qwen2.5-3B-Instruct (3B parameters) - ๐ŸŽจ Off-Brand โ€” custom warm cream UI, visual progress bars - ๐Ÿ’ป Codex โ€” agentic optimiser and UI built with Codex - ๐Ÿ““ Field Notes โ€” blog post linked below - ๐Ÿ“ก Sharing is Caring โ€” agent traces linked below ## What it does Five modes, all plain English input: * **Recipe** โ€” lye calculation from verified SAP values + quality scores + AI explanation * **Substitute** โ€” fatty acid matching to find the closest oil replacement * **Goal** โ€” skin-targeted recipe suggestions from a description * **Diagnose** โ€” batch failure analysis and fix * **Pantry** โ€” best recipe from whatever oils you have * **Optimise** โ€” agentic 3-iteration recipe improvement loop with before/after comparison Plus: superfat slider, vegan filter, water hardness recommendations with sodium citrate amounts. ## Architecture The lye calculation is **deterministic Python โ€” not AI**. SAP values from the HSCG professional standard, verified against known recipes, 33 tests passing. The model only explains numbers the code already calculated correctly. ## Model `Qwen/Qwen2.5-3B-Instruct` via Featherless AI โ€” 3B parameters, Tiny Titan eligible. ## Links - ๐Ÿ“ Blog post: https://huggingface.co/blog/build-small-hackathon/soap-lab-tallow-maybe - ๐ŸŽฌ Demo video: https://youtu.be/10OhPgMqAKo - ๐Ÿ“ฑ Social post: https://x.com/flower56778/status/2066095227429961777 - ๐Ÿ’ป GitHub: https://github.com/tammy357/soap-lab - ๐Ÿ“ก Agent Traces: https://huggingface.co/datasets/tammy357/soap-lab-traces ## Built with - Codex for UI redesign, agentic recipe optimiser, and water hardness mode - Deterministic chemistry engine (SAP values from HSCG) - Qwen2.5-3B-Instruct via Featherless AI