Inspiration

WebAIM checked the home pages of the top one million websites in February 2026. 95.9% had accessibility errors they could detect automatically, 56.1 per page on average (WebAIM Million 2026). Four of the six most common errors are the same kind of bug: something on the page has no name. An image with no alt text (53.1% of pages), a form field with no label (51%), a link with no text (46.3%), a button with no text (30.6%). A screen reader user who lands on one of these hears "button" or "link" and nothing else.

Tools like axe-core already find these. They can't fix them, because the fix is a few words that depend on what the element is for: "Search the shop", "Quantity of mugs", "Download the dinner menu as PDF". Someone still has to read the page and write each one. Pasting the page into a cloud chatbot is a problem when the page hasn't launched yet: agencies and in-house teams often can't send unreleased product pages to a third-party AI service.

So I wanted two things. The page text should stay on the developer's machine, and nothing the model writes should reach the page unless a checker has passed it.

What it does

  1. Load a page: one of 16 sample sites (fictional, labelled as demo data), an uploaded .html file, or pasted HTML.
  2. axe-core finds every element with no accessible name. Fixproof covers six rules: image-alt, input-image-alt, label, select-name, link-name, button-name.
  3. For each one, the model gets a short description of the element and its surroundings (its form's heading, action and other fields, the link's destination, the text right before and after it) and proposes a name, plus the words on the page that the name is based on.
  4. Fixproof applies the name to the live page and runs axe again on that element. It also refuses names that technically pass but help nobody: "click here", "image", "button", the file name, anything that starts with "image of". A refused fix is rolled back and listed with the reason. If the model gives no evidence, or evidence that isn't on the page, the name is kept but marked for a person to confirm.
  5. For every issue the table shows what a screen reader hears before and after, for example "button" before and "button, Search site" after. Numbered markers on the before and after page previews match the table rows, and selecting a row or a marker highlights the element on both. You can download the fixed HTML or copy a report.

How we used Firebase AI Logic

All model calls go through one getGenerativeModel() call from firebase/ai with a hybrid mode (src/ai.js). Fixproof picks the mode per element, based on what the data is:

  • Page text, page marked unreleased: ONLY_ON_DEVICE. The text never leaves the laptop. If Gemini Nano isn't ready, the fix waits instead of going to the cloud.
  • Page text, public page: PREFER_ON_DEVICE. Free and fast on device, cloud if the device can't.
  • Images, cloud allowed: PREFER_IN_CLOUD. Alt text for charts needs the numbers read correctly. Only the image and its surroundings are sent.
  • Images, cloud not allowed: ONLY_ON_DEVICE with image input. Stays local.

Every result records response.inferenceSource, and the table shows it per fix: On device or Cloud. App Check protects the Firebase project (reCAPTCHA Enterprise in production, a debug token locally). On device, Fixproof passes a JSON schema as the Prompt API responseConstraint, which is expected to hold Gemini Nano's reply to the shape {name, decorative}. We have not yet seen it run on device.

Does it work, and are the names any good?

We checked two things. First, does every flagged element end up with a name axe-core accepts? We compared Fixproof with a baseline on the same model (Gemini 3.5 Flash-Lite): the model reads the whole page HTML and lists the problems and fixes itself, with no detector and no re-check. Second, is the name right? axe can't tell, so Claude (Anthropic), a different AI model from the one that wrote the names, scored every name against a rubric written before any scoring and not changed since (eval/name_rubric.md): it says what the element is for, it isn't generic, it has a reasonable length, and it matches the page. This is not a human review. Every name, its score and a one-line reason are in the CSV files in eval/.

Baseline Fixproof, first prompt Fixproof, current prompt
16 sample pages, 79 elements
Problems pointed at correctly 67 of 79 79 of 79 (axe-core) not re-run
Fixes that pass the axe re-check 70 of 79 79 of 79 not re-run
Names that pass the rubric not scored 61 of 79 not re-run
4 held-out pages, 23 elements
Fixes that pass the axe re-check 22 of 23 22 of 23 23 of 23
Names that pass the rubric not scored 13 of 23 (57%) 18 of 23 (78%)

On the sample pages the baseline falls short at finding the problems: on one page (clinic booking) it returned none at all, and 8 of its reports pointed at the wrong element or at nothing. Fixproof doesn't ask the model to find anything.

The first prompt's 18 rubric misses on the sample pages were mostly buttons named after their icon (the bank page's send button became "Download statement"), images inside a link described as pictures instead of destinations, and details the page doesn't support ("Close dialog" on a page with no dialog). The current prompt gives the model more of the page (the form's heading, action and fields, whether the button submits it, the link's destination, nearby text) and asks it to quote its evidence. No rule mentions a specific page.

Because that prompt was written after reading those misses, we did not test it on the same 79 names. Before changing it we wrote 4 new pages in other fields (an insurance claim, a pharmacy refill, a flat to rent, a city parking permit), committed them and froze them (git tag eval-holdout-freeze; npm test fails if they change). Both prompts ran on them with the same cloud model. With the first prompt, one image in a link was proposed as decorative; the re-check refused it, so that element stayed unnamed.

The original 79: we have not re-scored the 16 sample pages with the current prompt. The re-run was stopped on 2026-11-24 by the cloud free tier's rate limit. Even when it runs, it won't count as a clean test, because the current prompt was written after reading those misses. The held-out pages are the clean test.

What the current prompt still gets wrong, 5 of 23: an X button outside the claim form named "File a car insurance claim"; a store map whose alt text repeats the heading and drops the address drawn in it; a delivery-or-pick-up dropdown named after the next heading; a bin button named after the flat on the page; and an unlabeled field named like the plate field next to it. The evidence check marked 2 of the 23 names for a person, and only 1 of the 5 misses. 23 names on 4 small fictional pages is a small sample, so read 57% to 78% as a direction, not a precise rate.

Next round, not run yet. We wrote a third prompt aimed at those 5 kinds of miss. Before writing it, we wrote and froze a second set of 4 held-out pages (car servicing, museum tickets, council waste collection, a food bank; 29 unnamed elements; git tag eval-holdout2-freeze). The run is waiting on the cloud free tier, so this submission has no score for the third prompt.

Where the names came from: the 16-page run was recorded 2026-11-22 on Windows 11, Chrome 157, while Gemini Nano was still downloading; the held-out runs on 2026-11-24 used a headless Chromium without Gemini Nano. So every name in the table was written by the cloud model. With the page marked unreleased, the 16-page run sent the 15 image fixes to the cloud and held the 64 text fixes, so nothing from those pages' text was sent anywhere. We have not yet recorded a run where Gemini Nano wrote the names, and this submission makes no claim about on-device quality or speed. Raw output is in results/.

Fixproof is accessible too

A tool for screen reader users' benefit should not fail them itself. The app UI has 0 axe-core violations (WCAG 2.0, 2.1 and 2.2 A and AA, plus best practice) at desktop and phone widths, works with the keyboard alone, and shows a visible focus ring on every stop. Status is never color alone: passed, refused and not fixed each have an icon and a word.

How we built it

Vanilla JavaScript and Vite, no framework. axe-core runs inside a same-origin iframe, so the page being fixed is the live DOM, not a copy of its text. The pipeline is in src/pipeline.js: detect, describe, route, ask, parse, quality check, apply, re-check, keep or undo. The model never decides whether its own fix is good enough.

The sample sites are generated by scripts/make_fixtures.py, and each one says it's fictional in a banner. npm run compare runs the evaluation in your own Chrome (where Gemini Nano is installed) and writes the results table.

Challenges

  • We send one element at a time, with a few hundred characters of context, because on-device models have small context windows. That was a design choice, not something we measured on Nano. In the cloud comparison the same split helped: given the whole page, the cloud model missed or mis-pointed at 12 of 79 problems; given one element at a time, it named all 79.
  • A logo image inside a link is easy to get wrong. If the model calls it decorative (alt=""), the image passes but the link loses its only name. The re-check covers the parent link or button as well as the element, so this gets caught.
  • The on-device model only downloads after a user click, so the app has a "Download on-device model" button instead of failing quietly. While it is downloading, an on-device-only request would wait for the whole download, so Fixproof checks availability first and marks the fix as waiting.

What's next

  • Run the third prompt on the second set of held-out pages and publish the score, good or bad.
  • A Chrome extension that runs Fixproof on the page you're working on in localhost.
  • Output as a source patch (git diff) for React and plain HTML templates, not only fixed HTML.
  • Remote Config switches so a team can set which rules may use the cloud.

Built during the submission period

Everything in this repo was written from November 22, 2026, during the submission period. Open-source code used: axe-core (MPL-2.0), Firebase JS SDK (Apache-2.0), Lucide icons (ISC), Geist fonts (OFL-1.1).

Testing instructions

  • Live demo: https://fixproof-omega.vercel.app. No sign-in.
  • It opens on a Recorded run of the first sample site: the model text recorded on 2026-11-22 (written by the cloud model, as the page says), with axe-core detection and every re-check running live in your browser. Pick another sample site to replay it, or select a row to see the element on the page.
  • Tick Page is unreleased to see the routing: text fixes are kept on device and wait, because that recording was made without Gemini Nano.
  • If your Chrome has Gemini Nano, switch the Run menu to Live (Firebase AI Logic) and press Find and fix issues. Live mode on the deployed site uses the current prompt (the one scored 18 of 23); the third prompt is in the repo only, not deployed and not run.
  • To run it yourself: npm install, copy .env.example to .env, then npm run dev.

Built With

Share this project:

Updates

Submission history