-
-
A flyer with a photo of children: the photo is painted grey on the device, and only then does the cloud read the dates.
-
How Altwise decides what the cloud may see: rules, Gemini Nano, a pixel check, and a second look for people.
-
The Altwise side panel next to a school page. Every image is labelled with where it was read: on device or in the cloud.
-
From a file name to a sentence a parent can use. The page score goes from 0 to 100.
Inspiration
A town in Arizona posted its summer program for kids on its website. The details were in a flyer image, and the flyer's alt text was "Summer Recreation Program Flyer". A parent using a screen reader hears those four words. The ages, the dates, the hours and the fact that it is free are all inside the picture, out of reach.
This is normal. The WebAIM Million 2026 found missing alt text on 53.1% of the top million home pages. On school and town sites the person updating the page is usually a front-office secretary or a parks clerk, not a web developer. Now there is a deadline. Under the US Department of Justice's ADA Title II rule, state and local government websites, public schools included, must meet WCAG 2.1 AA. For governments serving 50,000 people or more, the deadline is April 26, 2027. That covers more than 90,000 local governments, 12,546 of them school districts.
The obvious tool sends every image on the page to a cloud vision model. On a school website that means uploading photos of children to fix their alt text. I wanted the opposite: a tool that looks at everything on the user's own computer first and only hands the cloud what is safe to send.
AI alt text tools do exist today, mostly as website plugins or coding agents. They need access to the site's admin or its code, and they send each image to a cloud model to look at it. A school's office manager usually has neither a code base nor a developer, only a web editor and a deadline. Altwise works on any page open in Chrome, needs no access to the site, and decides image by image what may leave the computer.
What it does
Altwise is a Chrome side panel. Open a page, click Scan this page, and every image gets labelled live on the page as it is handled.
- Rules first, no AI. Spacers, tracking pixels and hidden images are sorted out instantly. Existing alt text is graded: missing, a file name, a single word like "chart", or a label that names an image without saying what it says.
- Gemini Nano on the device classifies each remaining image (decorative, informative, link or complex), notes whether it shows people or text, and writes alt text that fits the text around it on the page.
- Gemini in the cloud reads what Nano cannot read well: charts, maps, infographics and flyers full of small text. It writes a short alt and a full long description with every value it can read.
The part I am proudest of is what decides whether an image may leave the computer.
- A pixel check runs locally. Drawings have mostly identical neighbouring pixels and photographs almost never do, so a chart or a map cannot contain a photo of a real person and may go to the cloud.
- Anything photographic gets a second, narrow question that only Gemini Nano is allowed to answer: is any person visible anywhere? Unsure counts as yes, and so does a failed check.
- If a flyer full of text has a small photo of children in the corner, Altwise paints that photo grey on the device, checks that nothing photographic is left, and only then lets the cloud read the event details. The card shows exactly what the cloud saw.
The summary leads with the number that matters: "No photo of a person was sent to the cloud."
Most school office computers cannot run Gemini Nano, so the promise cannot depend on it. Without Nano, Altwise asks first, and the default is Keep photos here: the pixel check needs no AI, so drawings and text still go to the cloud, flyers go with their photo painted grey, and images that are mostly a photo stay on the computer for a person to describe. The other choices are the cloud for everything, which the summary then reports honestly, or nothing at all.
Then you fix the page. Edit any suggestion, accept it or accept all, and the score goes from 0 to 100 with the fixes previewed on the live page. Listen plays what a screen reader says today ("IMG_2041.JPG, image") and then with the fix. Copy HTML gives markup to paste into the CMS, with charts as a <figure> and a linked long description. Export CSV gives a report for whoever signs off on compliance. Linked PDFs get structure checks on the device (tags, title, language, real text or a scan, "click here" links) and a content review in the cloud, since PDF input is cloud only.
How I built it
Everything AI goes through Firebase AI Logic (firebase/ai):
- One hybrid classifier with
InferenceMode.PREFER_ON_DEVICE(orONLY_ON_DEVICEin strict privacy mode). The same JSON schema, with an enum for the image kind, is passed asresponseConstrainton device andresponseJsonSchemain the cloud, so both sides return the same shape. response.inferenceSourcedrives every badge, counter and on-page label. Nothing about where an image was processed is guessed.- A privacy gate model that is
ONLY_ON_DEVICE, so the people check can never fall back to the cloud. - Two cloud-only models for long descriptions and PDF review.
initializeDeviceModel()runs from the Scan click, and the status chip shows the Gemini Nano download.
The README has a table that links to each of these calls in the code.
Other Firebase products:
- App Check: Chrome extensions cannot load reCAPTCHA, because Manifest V3 blocks remote code, so the extension uses the debug provider. The hosted web version uses reCAPTCHA through Google Cloud Fraud Defense, and its build fails if the debug token ever ends up in the public files.
- Remote Config holds the cloud model name, the image limit per scan, whether text images escalate, and the PDF size limit.
- Firebase Hosting serves the try-it page, which runs the same panel code as the extension next to two demo pages.
It is Vite and TypeScript with no UI framework and no backend server. The rules, the photo check and the PDF parsing are pure functions with tests, which run on every push.
Built during the submission period. All of Altwise was written for this hackathon, from 17 November 2026 (first test of Gemini Nano on a cloud VM) to the end of the submission period. There is no pre-existing code. It uses the Firebase JS SDK, Vite and TypeScript, and I wrote it with Claude Code as my coding assistant. The demo photos are from Unsplash, and the narration in the video is an AI voice.
Challenges I ran into
My laptop cannot run Gemini Nano, so I tested on a cloud VM with no GPU, where Nano takes about 13 seconds an image with 8 CPU cores (35 seconds with 4). On a computer with a suitable GPU it is much faster. Each test run surfaced something the demo page never would have:
- Chrome warned that Nano stretches every image to a square, which squashed logos and wide charts. Images are now padded to a square for Nano and sent in their natural shape to the cloud.
- My first privacy gate simply asked Nano "is anyone in this?", and it said yes to every chart and map. Nothing ever reached the cloud. That is what led to the pixel check.
- On a real town website, a scanned letter's JPEG noise looked photographic, so the letter stayed local and got a poor description. Printed text is two-tone (ink and paper), so tiles like that no longer count as photo.
- One on-device call hung for more than twelve minutes and stalled a whole scan. Every model call now has a time limit, and a failed people check counts as "person".
- My own laptop cannot run Gemini Nano, and neither can most school office computers. At first, without Nano the only choice was to send everything to the cloud. Now the pixel check, which needs no AI, keeps photos on the computer anyway.
Accomplishments that I'm proud of
- On the privacy test page, three school flyers hide a small photo of children. The cloud read all three, and their alt text now carries the event name and date, but not one photo of a child left the computer.
- Real pages found real problems, and each one became a rule or a fix: the label-only flyer alt, a logo whose alt was its file name, and the scanned letter.
- The panel is itself accessible. An axe audit comes back clean in light and dark mode, with keyboard focus kept while results update.
What I learned
A small on-device model is a good judge of "is this safe to send", as long as you ask it narrow questions and back it with plain code. The useful design work was deciding which question goes to which model, and making that visible to the person using it.
What's next for Altwise
- Scanning a whole site instead of one page.
- CSS background images and inline SVG.
- A WordPress plugin that writes the accepted alt text straight into the media library.
- Rollout through Google Admin, which already pushes extensions to every Chromebook in a school district.
Built With
- chrome
- claude-code
- firebase-ai-logic
- firebase-app-check
- firebase-hosting
- firebase-remote-config
- gemini
- gemini-nano
- prompt-api
- typescript
- vite
