Live data from Hacker News

Show HN: Stagehand – an open source browser automation framework powered by AI

github.com

61–70 of 89 posts

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#62

Does this open up the possibility of automating an existing open browser tab? (Instead of a headless or specifically opened instance of chrome?)

Have you looked into agentic chrome extensions like MultiOn? They use a similar class of AI model, but work on top of existing open browser tabs.

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#63
post #3

I've been playing around with Stagehand for a minute now, actually a useful abstraction here. We build scrapers for websites that are pretty adversarial, so having built in proxies and captcha is delightful. Do you guys ever think you'll do a similar abstraction for MCP and computer use more broadly?

Thanks so much! Our Stagehand MCP server actually won Anthropic's Claude MCP hackathon :) Check it out: https://github.com/browserbase/mcp-server-browserbase/tree/m... We're working on a better computer use integration using Stagehand, def a lot of interesting potential there

The MCP server is useful, I built a demo of converting bug reports into Playwright tests using it - https://qckfx.com/demo

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#64

Any attempt on doing something similar but as a browser extension?

That's definitely compelling, but not something we have in mind for the immediate future. Let me know if you end up building something here!

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#65

wow. It's like cursor vs vscode movement but for browser automation and scrapping. Kudos to the author. Are there any other similar tools?

Thanks so much! Crawlspace is pretty sick too, as is Integuru. A lot of people have different takes here on the level of automation to leave up to the user. As a developer building for developers, I wanted to meet in the middle and build off an existing incumbent that most people are likely familiar with already

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#66

Earlier quoted context omitted.

Yes, you can certainly use Ollama! However, we strongly recommend using a more beefed up model to get sustainable results. Check out our external_client.ts file in examples/ that shows you how to setup a custom LLMClient: https://github.com/browserbase/stagehand/blob/main/examples/... >

It doesn’t look like accessing the llmclient for this is possible for external projects in the latest release, as that example takes advantage of being inside the project. (At least working through the quick start guide).

We accidentally didn't release the right types for LLMClient :/ However, if you set the version in package.json to "alpha", it will install what's on the main branch on GitHub, which should have the typing fix there

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#67
post #32

Cool to see another open source AI browser testing project! There’s a couple of others I’ve heard of as well: Skyvern: https://github.com/Skyvern-AI/skyvern Shortest: https://github.com/anti-work/shortest I’d love to hear what makes Stagehand different and pros/ cons. Of course, I have no complaints to see more competition and open source work in this space. Keep up the great work!

Yes! These are both phenomenal projects, and kudos to their authors as well. Stagehand is different in that it makes fine-grained control a first-class citizen. Often times, you want to control the exact steps a web agent takes. Our experience using other tools was that the only control you have over these steps in other tools is in the natural language prompt.

However with Stagehand, because it's an extension of Playwright, it allows you to confirm each step of the underlying agent's workflow, making it the most customizable option for engineers who want/need that

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#68

Does this open up the possibility of automating an existing open browser tab? (Instead of a headless or specifically opened instance of chrome?)

Afaik no. But if it's access to authenticated resources that you want, you can do so by copying over cookies.

Yes^ this is what we suggest. Stagehand is meant to execute isolated tasks on browsers; we support using custom contexts (cookies) with the following command:

    npx create-browser-app --example persist-context

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#69

Cool! Before building a full test platform for testdriver.ai we made a similar sdk called Goodlooks. It didn't get much traction, but will leave it here for those interested: https://github.com/testdriverai/goodlooks

This is sick! Starred, thanks for sharing :)

Re: Show HN: Stagehand – an open source browser automation framework powered by AI

#70
post #52

Earlier quoted context omitted.

It's funny you mentioned "deterministic Playwright code," because in my experience, that’s one of the most frustrating challenges of writing integration tests with browser automation tools. Authoring tests is relatively easy, but creating reliable, deterministic tests is much harder. Most of my test failures come down to timing issues—CPU load subtly affects execution, leading to random timeouts. This makes it diffic…

I was working on a side project over the holidays with the (I think) same idea as mpalmer imagined there too (though my project wouldn't be interested to him either, because my goal wasn't automating tests) Basically, the goal would be to do it like with screenshot regression tests: basically you get 2 different execution phases: - generate - verify And when verify fails in CI, you can automatically run a generate an…

This is super interesting, is it open source? Would love to talk to you more about how this worked
Post reply on HN