Refrain – Generate browser automations with AI, replay them without AI
Refrain – Generate browser automations with AI, replay them without AI
Hey HN, I'm timakin. Refrain is a CLI that uses an AI agent to generate browser automation runbooks, then replays them deterministically with no LLM calls. You give it a URL and a goal ("log in and export the sales dashboard"). An AI agent explores the site in a headless browser, records each action, and outputs a YAML runbook. After that, the runbook replays on its own. When UIs change and selectors break, multi -stage recovery pipeline kicks in — tries deterministic fixes first, falls back to AI only when needed, then patches the runbook so the next run is deterministic again. I built this because I was using AI agents for recurring browser tasks but couldn't justify the per-run cost and non-determinism. Traditional RPA didn't fit either — I wanted something I could npx and iterate on in my editor. `npx @refrainai/cli generate --url https://example.com --goal "..." --context context.md --output runbook.yaml` `npx @refrainai/cli execute --runbook runbook.yaml --context context.md` Runbooks are plain YAML — version-controllable, reviewable in PRs. BYOK (Anthropic, OpenAI, Google, Azure, Bedrock, Vertex). LP: https://therefrain.ai Docs: https://docs.therefrain.ai/
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Build browser automations with AI
Generate Colorful Fractals in the Browser
WebhookHub – Instantly inspect and replay webhooks
Trip Replay – Generate animated travel maps in the browser for free
Skyrim like skilltree for gumloop's AI automations
AI Automations and Workflows
Replay Iconic HN Stories
Automations
I made an in-browser code editor with code replay and REPL
Semi-Conductor - Conduct an AI orchestra in your browser