Show HN: Selector Forge – browser extension for AI-generated resilient selectors

Hacker News
Published
Show HN: Selector Forge – browser extension for AI-generated resilient selectors

The short version

  • Today, we're releasing and open-sourcing Selector Forge ( https://selectorforge.ai/ ), a browser extension that generates reliable CSS/XPath selectors using AI.
  • You can use it to create a selector for a single element or for an array of elements.
  • The selectors it creates are meant to be "semantic" and more resilient to page changes than what Chrome DevTool’s “Copy Selector” (and other similar extensions) give you.
  • Those tend to hand you something brittle like `#top > div.w-100.ph0-l.ph3.ph4-m > h1 > span`, which can break with a minimal page change.
  • Selector Forge aims for selectors that don't break as easily.

The story

Hi HN, I'm Ahmad from the Intuned (https://intunedhq.com) team. Today, we're releasing and open-sourcing Selector Forge (https://selectorforge.ai/), a browser extension that generates reliable CSS/XPath selectors using AI.

You can use it to create a selector for a single element or for an array of elements. The selectors it creates are meant to be "semantic" and more resilient to page changes than what Chrome DevTool’s “Copy Selector” (and other similar extensions) give you. Those tend to hand you something brittle like `#top > div.w-100.ph0-l.ph3.ph4-m > h1 > span`, which can break with a minimal page change. Selector Forge aims for selectors that don't break as easily. Here are some selectors that Selector Forge created: `//div[@aria-label="Showing weekly downloads"]//p[@aria-live="polite"]` (item selector) and `//*[local-name()='svg' and @aria-label="Download statistics"]/following-sibling::div` (list selector).

Here is a video demo of using the extension: https://www.youtube.com/watch?v=8IjjeDQkKmo

Selector Forge on Chrome: https://chromewebstore.google.com/detail/lbendfnlmhdakbeblaj...

Selector Forge on Firefox: https://addons.mozilla.org/en-US/firefox/addon/selector-forg...

Selector Forge code: https://github.com/Intuned/selector-forge

Backstory: For the past couple of years we've been building Intuned Agent, a coding agent for building and maintaining browser automations. We quickly figured out that the most fragile part of any browser code is usually the selectors and that creating good selectors can go a long way towards improving the quality and reliability of the automation itself.

So we abstracted selector creation into its own agent, wrapped it as a tool, and let our codegen agent call it. LLMs by default don't do a great job generating good selectors, so this turned out to be really useful and improved the code our agent generates.

We recently thought that this piece (the selector agent/creation) is useful on its own (outside our platform) so we packaged it as a browser extension. That’s this post!

Selector Forge is open source, and the version in the browser stores (Chrome and Firefox) is free for up to 200 selectors/month. Unlimited usage is part of our paid plans.

We realize most developers aren't writing this kind of code by hand anymore, so the next step is exposing this functionality in a way coding agents can call directly, over a CLI or MCP. Here's our roadmap: https://github.com/Intuned/selector-forge#roadmap

Excited to hear your thoughts, questions, and feedback!


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

Points: 15

# Comments: 0

Read the full story at Hacker NewsOriginal

Related Markets

All Markets
View full chart →
View Full Chart

Market data may be delayed. Not financial advice.

Powered by Gab AI

The Story At A Glance

Reading this article now — analysis appears below

Reading the article

💡 AI analysis provides alternative perspectives on current events

More to read

Recent stories from across the outlets Alto indexes.

Questions Alto can answer

From this story — each link opens a live data page or a tool already filled in.

  1. What is $100 from 1990 worth today?CPI-adjusted dollars — result on the next page
  2. Where does a $75,000 household income rank nationally?Census percentile — national and state
  3. What's Alto covering on the Tech & AI desk?Latest headlines on this beat

All toolsAll topicsSource directoryStory timelinesHeadline comparisonSearchMost read

From Gab Shop

Official merchandise. Every order funds free speech infrastructure.

Shop all products

Install Alto on your phone

Add Alto to your home screen for breaking news — no app store, no account.

  1. Step 1Open alto.gab.com in SafariMust be Safari — not Chrome or in-app browsers
  2. Step 2Tap the Share buttonSquare with an arrow, at the bottom of Safari
  3. Step 3Tap "More"If you don’t see Add to Home Screen yet
  4. Step 4Tap "Add to Home Screen"Scroll the share sheet if you need to
  5. Step 5Tap "Add"Alto appears on your home screen like any other app.
gab

Talk Big Tech Where Big Tech Can't Reach

AI, surveillance, and censorship, covered by the people the platforms removed first.

What Makes Gab Different

We're not just another social network. We're a platform built on principles that matter.

Freedom of Speech & Reach

All First Amendment protected speech is welcome. No algorithmic throttling or shadow banning.

Family-Friendly Platform

We maintain a clean environment. Explicit adult content is strictly prohibited.

Western Nations Only

Third-world IPs are blocked. No scammers, no spam farms. Built for Western civilization.

Funded By Users

Our users are our investors and customers. You're not the product being sold.

Battle Tested

A decade of standing strong. Banned from app stores, banks—and still here.

American Owned & Operated

We reject foreign censorship demands. Built by Americans, for free people.

Support Alto & Gab

Alto is funded entirely by readers like you. Your donation helps us continue delivering curated news from a right-wing Christian Nationalist perspective, powered by Gab AI.