Show HN: Libretto – Making AI browser automations deterministic

Libretto promises reliable AI web bots — fans cheer, skeptics ask if it's just Playwright

TLDR: Saffron Health open-sourced Libretto, a toolkit to make AI-driven browser tasks more predictable and faster by recording actions and turning them into direct requests. Commenters are split between excitement and “Isn’t this just Playwright?”, with a flagged post adding spice—highlighting the real question of novelty versus practical polish.

The Show HN crowd just met Libretto, an open-source toolkit from Saffron Health that aims to make flaky AI browser bots finally behave. Think: a real, live browser your AI can use; the ability to record your clicks and replay them; and a way to peek at the site’s behind‑the‑scenes traffic to swap clicky flows for faster direct requests. It’s all on GitHub, with docs and a Discord for the brave.

The vibe? Split between “at last!” and “wait, isn’t this just Playwright?” One early bird simply nodded “this is interesting,” while another burst in with the big question: how is this different from Playwright’s command‑line tools (the popular browser automation framework). Fans rallied behind the promise of fewer crashes and more repeatable results, with one user practically giddy about finally getting a tool they’ve wanted “for ages.” Meanwhile, a mystery comment got flagged, adding a sprinkle of forum drama to the launch.

Supporters say Libretto’s secret sauce is its AI‑friendly workflow: quick screenshots + page HTML for smarter analysis, recording real user actions, and auto‑converting button‑clicking scripts into direct API calls for speed. Skeptics wonder if it’s just a shiny wrapper. The peanut gallery joked about teaching robots to do LinkedIn chores and finally taming hospital software. Popcorn, anyone?

Key Points

  • Saffron Health open-sourced Libretto, a toolkit to build robust web integrations with a live browser and token-efficient CLI.
  • Libretto supports page inspection, network traffic capture to reverse-engineer APIs, action recording/replay, and interactive debugging.
  • Setup via npm includes downloading Chromium and pinning a default snapshot analysis model, with provider detection and configuration for OpenAI, Anthropic, Gemini, and Vertex.
  • Designed as an agent skill, Libretto supports use cases such as scraping LinkedIn, generating Playwright scripts from user workflows, converting UI automation to direct API calls, and fixing broken integrations.
  • A CLI is provided for direct use, including commands for setup, status, launching a browser, snapshot analysis, executing Playwright TypeScript, and running scripts with session management.

Hottest takes

"this is interesting" — devstatic
"how does it differ from playwright-cli?" — messh
"I've wanted something like this for ages, excited to try this out!" — seagull
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.