11 comments

  • simon_luv_pho4 hours ago
    This is highly experimental right now, but here are some quick links for anyone wanting to dig deeper:<p>- GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;alibaba&#x2F;page-agent" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;alibaba&#x2F;page-agent</a><p>- Live Demo (No sign-up): <a href="https:&#x2F;&#x2F;alibaba.github.io&#x2F;page-agent&#x2F;" rel="nofollow">https:&#x2F;&#x2F;alibaba.github.io&#x2F;page-agent&#x2F;</a> (you can drag the bookmarklet from here to try it on other sites)<p>- Browser Extension: <a href="https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;page-agent-ext&#x2F;akldabonmimlicnjlflnapfeklbfemhj" rel="nofollow">https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;page-agent-ext&#x2F;akld...</a><p>I&#x27;d be really interested in feedback on the security model of client-side agents giving extension-bridge access, and taking questions on the implementation!
  • pscanf3 hours ago
    Very cool!<p>I&#x27;m particularly impressed by the bookmark &quot;trick&quot; to install it on a page. Despite having spent 15 years developing for the browser, I had somehow missed that feature of the bookmarks bar. But awesome UX for people to try out the tool. Congrats!
    • simon_luv_pho3 hours ago
      Thanks!<p>Bookmarklets are such an underrated feature. It&#x27;s super convenient to inject and test scripts on any page. Seemed like the perfect low-friction entry point for people to try it out.<p>Spent some time on that UX because the concept is a bit hard to explain. Glad it worked!
  • mentalgear2 hours ago
    &gt; Data processed via servers in Mainland China<p>Appreciate the transparency, but maybe you could add some European (preferably) alternatives ?
    • simon_luv_pho2 hours ago
      Please use your own LLM api instead!<p>The free testing LLM is Qwen hosted by Aliyun. Qwen and DeepSeek are the only ones I can afford to offer for free. It&#x27;s just there to lower the try-out barrier; please DO NOT rely on it.<p>The library itself does NOT include any backend service. Your data only goes to the LLM api you configured.<p>I tested it on local Ollama models it works fine.
    • simon_luv_pho2 hours ago
      I&#x27;m looking into a European testing endpoint. The legal and compliance requirements are quite hassle, and persuading my company to pay for that infrastructure is gonna be a tough sell.
  • general_reveal2 hours ago
    I’ve been thinking about something like this. If it’s just a one line script import, how the heck are you trusting natural language to translate to commands for an arbitrary ui?<p>The only thing I can think of is you had the AI rewrite and embed selectors on the entire build file and work with that?
    • simon_luv_pho1 hour ago
      Everything happens at runtime, on the HTML level.<p>It uses a similiar process as `browser-use` but all in the web page. A script parses the live HTML, strips it down to its semantic essentials (HTML dehydration), and indexes every interactive element. That snapshot goes to the LLM, which returns actions referencing elements by index. The agent then simulates mouse&#x2F;keyboard events on those elements via JS.<p>This works best on pages with proper semantic HTML and accessibility markup. You can test it right now on any page using the bookmarklet on the homepage (unless that page CSP blocks script injection of course).
  • dzink2 hours ago
    Is this Affiliated with the Chinese company Alibaba? Any chance data goes there too?
    • simon_luv_pho2 hours ago
      Full transparency: I work at Alibaba and published this under Alibaba&#x27;s open-source org. I sometines maintain it during work hours, so yes, Alibaba technically pays me for it. That said, this is my project — it&#x27;s MIT-licensed, includes no backend service, and is open for anyone to audit.<p>The free testing LLM endpoint is hosted on Alibaba Cloud because I happen to have some company quota to spend, but it&#x27;s not part of the library. Bring your own LLM and there is zero data transmission to Alibaba or anywhere else you haven&#x27;t configured yourself.<p>I highly recommend using it with a local Ollama setup.
  • MeteorMarc3 hours ago
    Confusing name because of the existence of pageant, the putty agent.
    • simon_luv_pho2 hours ago
      Darn. Pageant would&#x27;ve been a nice name though. Maybe `page-agent.js` is more relevant in web dev community.
      • graypegg43 minutes ago
        I think every successful Show HN post ends up with a &quot;thought this was about X&quot; or &quot;didn&#x27;t look up the name first?&quot; comment. Consider it a win! I don&#x27;t think anyone will mistake a tool for putty with your tool, but you might share a google search page with it.
      • mmarian1 hour ago
        I think page agent is good. I&#x27;ve never heard of putty&#x27;s pageant. And I think it&#x27;s better to distinguish it from general meaning of pageant (for beauty).
    • kirth_gersen2 hours ago
      Came here to say missed opportunity to call it &quot;PAgent&quot;. Rolls off the tongue better than Page Agent.
  • Mnexium2 hours ago
    Curious - how does it perform with captchas and other &quot;are you human&quot; stuff on the web?
    • simon_luv_pho2 hours ago
      I added in the system prompt that it should skip CAPTCHAs and hand control back to the user. Currently working on a proper human-in-the-loop feature. That&#x27;s actually one of the key advantages of running the agent inside your own browser.
      • Mnexium15 minutes ago
        Makes sense.<p>For curiosity&#x27;s sake, have you had it try to attempt captchas?<p>If so, what were the results?
        • simon_luv_pho0 minutes ago
          I haven’t. I don’t think it will work well.<p>I use a text-based approach. Captchas like “crossroad” usually need a screenshot, a visual model and coordinate-based mouse events.
  • coreylane2 hours ago
    Looks cool! Are you open to adding AWS Bedrock or LiteLLM support?
    • simon_luv_pho2 hours ago
      Thanks!<p>It supports any OpenAI-compatible API out of the box, so AWS Bedrock, LiteLLM, Ollama, etc. should all work. The free testing LLM is just there for a quick demo. Please bring your own LLM for long-time usage.
  • popalchemist2 hours ago
    Does it support long-click &#x2F; click-and-drag?
    • simon_luv_pho2 hours ago
      Not yet. Currently focused on the more common interaction patterns. PRs welcome though!
  • jauntywundrkind4 hours ago
    Not exactly the same but I&#x27;d also point to Paul Kinlan&#x27;s FolioLM as a very interesting project in this space. A very nice browser extension,<p>&gt; <i>Collect and query content from tabs, bookmarks, and history - your AI research companion. FolioLM helps you collect sources from tabs, bookmarks, and history, then query and transform that content using AI.</i><p><a href="https:&#x2F;&#x2F;github.com&#x2F;PaulKinlan&#x2F;NotebookLM-Chrome" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PaulKinlan&#x2F;NotebookLM-Chrome</a> <a href="https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;foliolm&#x2F;eeejhgacmlhjjoncbaikmjapoddabaai" rel="nofollow">https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;foliolm&#x2F;eeejhgacmlh...</a>
    • klueinc2 hours ago
      I&#x27;ve been trying to arrive to something like this with my own sidepanel extension called Klue but its more of a user notes + web page context approach. Nice to see another take on this! <a href="https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;cackjmmgcmnkjnffabkabapdkofggpjl?utm_source=item-share-cb" rel="nofollow">https:&#x2F;&#x2F;chromewebstore.google.com&#x2F;detail&#x2F;cackjmmgcmnkjnffabk...</a>
    • simon_luv_pho3 hours ago
      Thanks for sharing! We need more projects like this in the JS ecosystem.