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

Hi HN! I’m Anirudh — longtime lurker, first time poster, and I couldn’t be more excited to show you Stagehand.

Stagehand is a TypeScript project that extends Playwright with three simple AI methods — act, extract, and observe. We’d love for you to try it out using the command below:

    npx create-browser-app --example quickstart
Here’s a sample workflow:

    const stagehand = new Stagehand();
    await stagehand.init();
    // Stagehand overrides the Playwright Page and Context classes
    const { page, context } = stagehand
    await page.goto("instadash.com") // Regular Playwright
    // Take action on the page
    await page.act({ action: "click on taqueria cazadores" })
    // Extract relevant data from the page
    const { price } = await page.extract({
        instruction: "extract the price of the super burrito",
        schema: z.object({
            price: z.number()
        })
    })
We built Stagehand because we loved building browser automations using Playwright and Selenium, but we grew frustrated at how cumbersome it is to just get started and write simple browser automations. These frameworks, while incredibly powerful, are built for QA testing and are thus notoriously prone to fail if there are minor changes in the UI or underlying DOM structure.

The goal of Stagehand is twofold:

1. Make browser automations easier to write 2. Make browser automations more resilient to DOM changes.

We were super energized by what we’ve been seeing with vision-based computer use agents. We think with a browser, you can provide even richer data by leveraging the information in the DOM + a11y tree in addition to what’s rendered on the page. However, we didn’t want to go so far as to build an agent, since we wanted fine-grained control over each step that an agent can take.

Therefore, the happy medium we built was to extend the existing powerful functionalities of Playwright with simple and extensible AI APIs that return the decision-making power back to the developer at each step.

Check out our docs: https://docs.stagehand.dev

We’d love for you to join and give us feedback on Slack as well: https://stagehand.dev/slack


Comments URL: https://news.ycombinator.com/item?id=42635942

Points: 274

# Comments: 56

https://github.com/browserbase/stagehand

Created 6mo | Jan 9, 2025, 9:20:06 PM


Login to add comment

Other posts in this group

Ask HN: Who wants to be hired? (July 2025)

Share your information if you are looking for work. Please use this format:

  Location:
  Remote:
  Willing to relocate:
  Technologies:
  Résumé/CV:
  Email:
Please onl
Jul 1, 2025, 9:20:21 PM | Hacker news
Show HN: Core – open source memory graph for LLMs – shareable, user owned

I keep running in the same problem of each AI app “remembers” me in its own silo. ChatGPT knows my project details, Cursor forgets them, Claude starts from zero… so I end up re-explaining myself d

Jul 1, 2025, 9:20:19 PM | Hacker news
Show HN: Arch-Router – 1.5B model for LLM routing by preferences, not benchmarks

Hi HN — we're the team behind Arch (https://github.com/katanemo/archgw), an open-source proxy for LLMs written in Rust. Today we're releasing Arch-

Jul 1, 2025, 9:20:17 PM | Hacker news
1KB JavaScript Demoscene Challenge Just Launched

I just launched JS1024 — a creative coding challenge with a strict limit: 1024 bytes of JavaScript.

No libraries. No frameworks. Just raw code.

You can submit visual effects, generative art, t

Jul 1, 2025, 9:20:15 PM | Hacker news