frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

AI Soap (the bar, not the API)

https://github.com/mikewolfd/soap-calc
2•mikewolfd•1h ago

Comments

mikewolfd•1h ago
I built a Python library for saponification chemistry so LLMs can help formulate soap recipes without hallucinating the dangerous parts.

Ask an LLM to formulate soap and you'll get something that looks reasonable. The oils sound right, the superfat percentage is sensible. But the lye amount? It could be hallucinated. In soap making, a wrong lye calculation isn't a bug, it's caustic soap that burns skin.

Saponification requires precise NaOH or KOH amounts calculated from SAP values specific to each oil. Get it wrong by a few percentage points and your soap is either caustic or a greasy mess. No room for "close enough."

This is exactly where LLMs are dangerous alone and useful with the right tooling.

RECIPES AS CODE

Web calculators lock your formulas in form fields. soap-calc treats recipes as JSON/YAML you can version in git and pipe through a CLI:

    soap-calc calculate recipe.yaml
    soap-calc validate recipe.yaml
    soap-calc scale recipe.yaml 1500 -o scaled.yaml
A recipe looks like this:

    {
      "name": "Lavender Dream",
      "lye_type": "NaOH",
      "superfat_pct": 5.0,
      "total_oil_weight": 800,
      "oils": [
        { "oil": "Olive Oil", "percentage": 40 },
        { "oil": "Coconut Oil, 76 deg", "percentage": 30 },
        { "oil": "Palm Oil", "percentage": 30 }
      ]
    }
Structured, diffable, and something an LLM can generate while a deterministic program validates the chemistry.

HOW THIS WORKS WITH LLMS

Ships with a Claude Code skill and JSON schemas. An LLM can:

1. Select oils from a verified database (~40 common oils with real SAP values and fatty acid profiles). No hallucinated chemistry.

2. Generate recipe JSON, then call calculate() for exact lye amounts. Math lives in code, not model weights.

3. Get validation feedback on property ranges, safety limits, missing fields. Structured errors it can fix.

Example workflow:

    User: "Make a conditioning bar for dry skin"
      ↓
    LLM: Picks high-oleic oils, writes recipe.json
      ↓
    soap-calc validate + calculate → NaOH: 142.3g, Water: 284.6g
      ↓
    LLM: Returns recipe with verified measurements + property analysis
The LLM handles formulation (which oils for dry skin, how to balance fatty acids). The library handles stoichiometry.

WHY SOAP MAKING?

It's a sweet spot for AI-assisted chemistry: well-characterized reactions (base hydrolysis of triglycerides), bounded input space (few dozen common oils), deterministic calculations, but formulation decisions—balancing hardness vs. conditioning, choosing for skin type—genuinely benefit from reasoning.

WHAT IT DOES

• Lye calculations (NaOH, KOH, dual-lye)

• Soap property prediction from fatty acid profiles (hardness, lather, longevity, iodine value, INS)

• Three water calculation modes

• Mold-based batch sizing

• Recipe scaling

• Markdown export with instructions

Supports cold process, hot process, and liquid soap.

Tech: Pure Python, typed models, extensible oil database, MIT licensed. Built with Claude Opus 4.6 and Gemini 3 Pro.

    pip install soap-calc
GitHub: https://github.com/mikewolfd/soap-calc PyPI: https://pypi.org/project/soap-calc/

Show HN: AgentScore – Lighthouse for AI Agents

https://github.com/xiongallen40-design/agentscore
1•agentscore•3m ago•0 comments

Show HN: PlanOpticon – Extract structured knowledge from video recordings

https://github.com/ConflictHQ/PlanOpticon
1•ragelink•6m ago•0 comments

Discord Distances Itself from Peter Thiel's Palantir Age Verification Firm

https://kotaku.com/discord-palantir-peter-thiel-persona-age-verification-2000668951
2•thisislife2•16m ago•0 comments

Flashpoint Archive – Over 200k web games and animations preserved

https://flashpointarchive.org
1•helloplanets•32m ago•0 comments

The AGI gap might be epistemological, not technical

https://executelater.substack.com/p/we-dont-know-what-were-looking-for
1•NarratorTD•33m ago•0 comments

Show HN: Remote-OpenCode – Run your AI coding agent from your phone via Discord

https://github.com/RoundTable02/remote-opencode
1•remocode•35m ago•1 comments

Stop Saying Boredom Is Good for Kids

https://www.fast.ai/posts/2025-12-03-boredom/
1•tkazec•36m ago•0 comments

Understanding Std:Shared_mutex from C++17

https://www.cppstories.com/2026/shared_mutex/
2•jandeboevrie•36m ago•0 comments

I gave my AI drugs

https://github.com/nich2533/just_say_no
1•nich2533•43m ago•1 comments

America Isn't Ready for What AI Will Do to Jobs

https://www.theatlantic.com/magazine/2026/03/ai-economy-labor-market-transformation/685731/
8•helloplanets•54m ago•0 comments

Show HN: Bond – Persistent memory and governance framework for Claude AI

https://github.com/moneyjarrod/BOND
1•J-Dub•55m ago•1 comments

You do not need an ORM [video]

https://fosdem.org/2026/schedule/event/F9Y7ZY-you-do-not-need-an-orm/
2•0x54MUR41•58m ago•0 comments

Show HN: Nucleus MCP – Forensic deep-dive into agent resource locking

https://www.loom.com/share/843a719cbcc2419b8e483784ffd1e8c8
1•NucleusOS•58m ago•0 comments

Anime text-to-image generator (2 free tries, no login)

https://www.radanimegenerator.com/
1•changttt•1h ago•2 comments

Distillation, Experimentation, and Integration of AI for Adversarial Use

https://cloud.google.com/blog/topics/threat-intelligence/distillation-experimentation-integration...
2•nsoonhui•1h ago•0 comments

Jikipedia: The encyclopedia of people, places, and events from the Epstein files

https://jmail.world/wiki
2•0x54MUR41•1h ago•0 comments

Watch Men

https://worksinprogress.co/issue/watch-men/
3•trojanalert•1h ago•2 comments

How actor Edward Norton is related to Pocahontas

https://www.bbc.com/news/world-us-canada-64158055
1•thunderbong•1h ago•0 comments

What Lies Beneath

https://newhumanist.org.uk/articles/6505/what-lies-beneath
3•kawera•1h ago•0 comments

DeepWiki and Increasing Malleability of Software

https://twitter.com/karpathy/status/2021633574089416993
1•sabareesh•1h ago•0 comments

AI Soap (the bar, not the API)

https://github.com/mikewolfd/soap-calc
2•mikewolfd•1h ago•1 comments

Show HN: Snaprookies a unified orchestrated layer for 27 generative AI workflow

https://snaprookies.org/
1•RichardOdds•1h ago•1 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•coonr•1h ago•1 comments

"I built a site to explore and analyze all 18,500 Pitchfork reviews"

https://old.reddit.com/r/indieheads/comments/1r4watg/i_built_a_site_to_explore_and_analyze_all_18...
1•surprisetalk•1h ago•0 comments

Token Anxiety

https://writing.nikunjk.com/p/token-anxiety
5•sshh12•1h ago•0 comments

Show HN: I got tired of applying to ghost jobs, so I built a BS detector

https://www.thesubspace.io/
1•viveknar•1h ago•0 comments

Show HN: Repy – Terminal ePub reader with built-in TTS and dictionary lookup

https://github.com/newptcai/repy
3•dawdler-purge•1h ago•0 comments

India doubles down on state-backed venture capital, approving $1.1B fund

https://techcrunch.com/2026/02/14/india-doubles-down-on-state-backed-venture-capital-approving-1-...
4•vednig•1h ago•0 comments

Show HN: Google Maps in Your Terminal

https://github.com/Luthiraa/ascii-map
1•luthiraabeykoon•1h ago•0 comments

The allegations against a San Francisco social climber accused of sex crimes

https://sfstandard.com/2026/02/12/mickey-gerold-sex-crimes-investigation/
2•_delirium•1h ago•0 comments