BEACON
AI-Powered Web Accessibility & Security Audits
Created on 26th March 2026
•
BEACON
AI-Powered Web Accessibility & Security Audits
The problem BEACON solves
BEACON (Benchmarking & Evaluation of Accessibility Compliance Optimization Node) addresses the critical and growing accessibility gap in modern web applications, where dynamic, feature-rich websites often unintentionally exclude users with disabilities—such as those with visual impairments, motor limitations, or cognitive challenges. Despite established standards like WCAG 2.2, developers frequently lack practical, intuitive tools to identify, contextualize, and resolve accessibility issues across entire websites. Traditional auditing solutions typically deliver raw, overwhelming reports without meaningful visualization, historical tracking, or actionable guidance, making compliance feel like an afterthought rather than an integrated part of development workflows.
This results in:
- Poor user experience for millions of users who rely on assistive technologies.
- Legal and reputational risks from non-compliance with accessibility regulations (e.g., ADA, Section 508).
- Inefficient development cycles where accessibility is treated as a separate, burdensome task instead of a core quality metric.
BEACON transforms accessibility auditing from a reactive, manual chore into a proactive, automated, and insightful process. By combining rule-based scanning (axe-core, Lighthouse, custom WCAG checks) with AI-powered semantic analysis, it catches not just surface-level violations but also complex cognitive and contextual issues that rule engines miss. The platform enables users to:
- Automate comprehensive audits: Scan entire websites for accessibility, security, and performance issues with multi-page crawling and real-time monitoring.
- Gain contextual insights: Visualize issues directly on pages, track scores over time, and receive AI-generated explanations and code fix suggestions.
- Integrate seamlessly: Use browser extensions for live overlays, VS Code extensions for development-time checks, dashboards for project management, and CI/CD integrations (e.g., Lighthouse CI) for continuous compliance.
- Achieve compliance effortlessly: Generate branded PDF reports, compliance certificates, and even auto-create GitHub pull requests with AI-recommended fixes.
For developers, QA teams, and accessibility specialists, BEACON makes auditing easier by eliminating manual testing, providing clear guidance, and offering benchmarking against industry standards. It makes processes safer by ensuring inclusivity, reducing legal exposure, and fostering a culture of accessible design from the start. Businesses can use it to maintain compliance, improve user satisfaction, and demonstrate commitment to diversity—turning accessibility from a checkbox into a competitive advantage. Whether you're building inclusive web experiences or retrofitting existing sites, BEACON bridges the gap between identification and resolution, making the web more accessible for everyone.
Challenges we ran into
Building BEACON as a multi-layered, AI-enhanced accessibility auditing platform presented several significant hurdles, from integrating complex technologies to debugging runtime issues. As a full-stack project combining Python backends, React frontends, browser extensions, and AI systems, we encountered challenges that tested my problem-solving skills and forced me to deepen my understanding of web development, accessibility standards, and system architecture. Below, I'll detail some key bugs and obstacles, along with how we overcame them.
1. API Error Handling Leading to Cryptic Console Errors
- The Hurdle: During frontend development, API requests to the FastAPI backend were throwing generic
"[object Object]"errors in the browser console. This occurred because the error response from the server contained a JSON object in thedetailfield (e.g.,{ "message": "Invalid URL", "code": 400 }), but the frontend's error handling code was directly passing this object tonew Error(), which converted it to a meaningless string representation. - Impact: Users saw unhelpful error messages, making debugging difficult and degrading the user experience during scans or project management.
- Solution: We modified the error handling in
frontend/lib/api.tsto check the type oferror.detail. If it was a string, use it directly; otherwise, stringify the object withJSON.stringify(). This ensured meaningful error messages like"{"message":"Invalid URL","code":400}"or custom fallbacks. We also added logging to capture raw responses for better debugging. This fix improved error visibility and helped identify server-side issues faster.
2. JSX Parsing Errors in Complex Dashboard Components
- The Hurdle: A build error
"Expected '</', got '{'"appeared in the Next.js dashboard (app/dashboard/[projectId]/page.tsx), pointing to a comment line. The root cause was an unclosed<div>tag in a grid layout containing conditional rendering for charts and auth-detected pages. The parser expected a closing tag but encountered the opening brace of a conditional block, causing the entire component to fail compilation. - Impact: The build process halted, preventing deployment and testing of new features like score history visualization.
- Solution: We carefully audited the JSX structure, counting opening and closing tags. The issue was a missing
</div>to close the grid container after the AI Analysis section. Adding the tag resolved the parsing error. To prevent future issues, we adopted stricter JSX linting rules and used tools like Prettier for auto-formatting, ensuring balanced tags in complex conditional renders.
3. Integrating AI-Powered RAG Semantic Analysis with Rule-Based Scanning
- The Hurdle: Combining Layer 1 (rule-based axe-core/Lighthouse scans) with Layer 2 (RAG-based semantic analysis) was challenging. The vector store (using NumPy and sentence-transformers) needed to filter out issues already caught by Layer 1, but initial implementations caused duplicate findings or missed nuanced problems like cognitive language complexity. Additionally, embedding generation for 86+ WCAG criteria was computationally intensive, leading to timeouts during scans.
- Impact: Scans were slow, inaccurate, or failed entirely, undermining the platform's core value of comprehensive auditing.
- Solution: We refactored the scan pipeline in
backend/services/scan_service.pyto run Layer 1 first, collect rule IDs, and pass them as filters to the RAG query. For performance, we implemented batch embedding and caching with a hybrid retrieval (70% semantic + 30% BM25). Testing with sample websites and profiling with Python'scProfilehelped optimize query times. This hybrid approach ensured faster, more accurate results without sacrificing depth.
4. Browser Extension Development and Cross-Origin Issues
- The Hurdle: Building Chrome extensions (MV3) for live accessibility overlays required handling content scripts that inject into any webpage. Initial attempts to communicate between popup scripts and content scripts failed due to cross-origin restrictions and asynchronous message passing, leading to overlays not displaying or crashing on certain sites.
- Impact: The extension, a key "multi-surface" feature, was unreliable, limiting real-time auditing capabilities.
- Solution: We studied Chrome's extension APIs and implemented proper message passing using
chrome.runtime.sendMessage()and listeners. For cross-origin issues, we usedchrome.scripting.executeScript()to inject scripts safely. Testing across multiple sites (including those with CSP headers) and using the Chrome DevTools extension debugger helped isolate issues. This resulted in a stable overlay that highlights accessibility issues directly on pages.
5. PDF Report Generation and Template Rendering
- The Hurdle: Gener
