Inspiration

An accessibility barrier is often a blocked moment, not an audit report: “I am trying to pay, but my screen reader only says ‘button.’” The person encountering that barrier should not have to reverse-engineer the page, expose a private screenshot to cloud AI, or translate their experience into a developer ticket.

We built BarrierRelay to bridge the gap between experiencing a barrier and getting it repaired, while keeping the reporter in control of what leaves their device.

What it does

BarrierRelay is a keyboard-first Chrome extension and web app. Focus a blocked control and use the extension shortcut or toolbar action to capture its region. An in-page dialog asks what you were trying to do and which assistive context matters. An optional navigation trail records navigation key names and focus references, not typed characters.

The web app turns this local context into an editable report. Gemini Nano drafts on-device through Firebase AI Logic. If Nano is unavailable, a clearly labeled rules-only path keeps reporting usable without sending the raw capture to cloud AI. Review the draft, run self-check, and inspect the redacted JSON before requesting cloud work. The screenshot and original free-text note are not included in the cloud payload or stored ticket.

Cloud Gemini then produces a WCAG-informed fix plan: related criteria, a cause explanation, illustrative repair code, a verification checklist, and sources actually returned by the URL context tool. Create a shareable Firestore ticket, acknowledge it, mark it fixed, and request a scoped re-check. Synthetic broken/fixed examples let judges explore the workflow without installing the extension.

This prototype covers selected labeling, naming, keyboard-reachability, and focus problems. It is not a WCAG compliance certifier. Generated code is guidance, not an automatic patch. A fixed-fixture verification is synthetic, not proof that a live website was repaired.

How we built it

The Manifest V3 extension uses TypeScript, a shadow-DOM dialog, a shared DOM collector, axe-core, and local screenshot cropping. A one-time browser-local message hands the capture to an authorized web origin; the extension does not upload it to a server.

The Preact/Vite web app uses Firebase AI Logic with the Gemini Developer API backend. Private drafting explicitly selects InferenceMode.ONLY_ON_DEVICE, with text/image input and JSON Schema in onDeviceParams.promptOptions.responseConstraint. Application validation checks the result again. Self-check combines deterministic checks with an on-device consistency check when Nano is available. Preparing the model calls initializeDeviceModel() from an explicit user gesture.

For a different capability, fix planning explicitly selects InferenceMode.ONLY_IN_CLOUD. It receives only the reporter-reviewed, redacted payload. When enabled by Remote Config, URL context retrieves W3C WCAG Understanding pages selected deterministically from the barrier type. We retain sources only from successful, recognized URL-context retrieval metadata, not model-authored citation fields. This is fixed-reference retrieval, not open-ended web search.

The Hybrid routing table derives model location from response.inferenceSource, showing On-device, Cloud, or Local code, elapsed time, and approved-payload bytes. Those bytes are application-data accounting, not total network traffic. Private drafting does not silently fall back to cloud: unavailable Nano uses labeled local rules instead.

Firebase also supplies reCAPTCHA Enterprise App Check, anonymous Authentication, Firestore ticket storage and lifecycle rules, Remote Config, and Hosting. App Check is enforced for AI Logic in the supplied project. The prototype's sharing links are bearer-like: any anonymously signed-in user who knows a ticket ID can read it and advance permitted status changes. This is not verified site ownership or production-grade role separation.

Verification pass/fail is computed in the browser. A live re-check asks the original reporter to identify the same control in the new capture instead of comparing capture-local virtual refs. Firestore constrains status transitions and result shape, including no remaining target rule hits for pass; it does not run the check. Anyone anonymously signed in with the ticket link can advance allowed status transitions. verified is a client-reported, scoped check, not proof of repair or WCAG conformance.

Challenges we ran into

The network, not the GPU, blocked the first model download: Chrome refused to download Nano on a metered connection. Switching to an unmetered connection enabled real on-device evaluation; we kept preparation explicit rather than silently changing network policy.

Local and cloud structured-output configuration differed. Cloud response-schema settings alone did not constrain the installed SDK's local adapter, so we added an explicit local response constraint and application validation.

Cloud retrieval had to fit the project's quota. A search-tool request failed with HTTP 429, while URL context plus structured output succeeded. We chose deterministic W3C references rather than claiming unavailable open-ended search.

Privacy required an actual boundary. We construct a separate sharing payload and show it before cloud processing. Pattern-based redaction is not a guarantee that every personal detail is removed, so reporter review remains essential.

Accomplishments that we're proud of

We completed real Firebase AI Logic on-device drafting and a separate cloud URL-context fix plan, with execution-source reporting. A real SDK test drafted offline in an already-loaded tab with a prepared model, recording zero capture bytes to cloud and zero AI network requests. That does not mean the whole app or browser is network-free.

We also completed a real Firestore repair loop through a synthetic fixed-fixture verification, and an extension-to-app integration test with an honestly labeled rules-only draft. The gallery shows actual test screenshots, including On-device zero-cloud-byte entries alongside a Cloud payload-byte entry.

Most importantly, a report becomes a repair conversation: editable draft, explicit sharing preview, fix guidance, ticket status, and a scoped re-check. Automated tests and synthetic examples are not a substitute for disability-led usability testing.

Potential impact

The privacy boundary is measured, not asserted: the published receipt sends 1,892 bytes of approved application data to the cloud for a fix plan, while the 51,342-byte region image for the demo fixture stays on the device — 3.7% of that image (measurements and sources: docs/IMPACT.md). The same receipt records a 10,991 ms offline on-device draft, a 704 ms on-device check, and a 10,176 ms cloud plan; these are single-run values, not a benchmark. The WebAIM Million 2026 report found detectable WCAG failures on 95.9% of tested home pages, so this targets a common class of barrier. We have not measured time saved with real users: replacing manual issue writing, audit reports, or an email chain with capture → draft → plan → ticket → re-check is a structural claim, not a productivity result.

What we learned

Hybrid AI is useful when it separates capabilities and trust boundaries: sensitive observation stays local, while a reviewed description can benefit from cloud tools. Model readiness, model download, inference routing, and application connectivity are different states and need different UI language.

We learned to distinguish evidence from intent. A rules-only walkthrough proves the workflow, not Nano inference. A local rule re-check can show that a selected issue is no longer detected, but cannot establish accessibility or WCAG conformance.

What's next

Run disability-led screen-reader and keyboard usability sessions, strengthen live-control matching across captures, add authenticated collaboration roles and abuse controls, and implement consent-aware retention/deletion. Expand the synthetic evaluations and browser/device coverage. These are plans, not shipped features.

Built With

Share this project:

Updates

Submission history