AccessIQ
Build a More Inclusive Web
The problem AccessIQ solves
AccessIQ: The Intelligence Layer for a More Inclusive Web
AccessIQ is an enterprise-grade accessibility intelligence platform that automates WCAG 2.2 compliance through AI-driven remediation, visual forensics, and continuous integration.
🔝 1. The Core Problem: Accessibility "Debt"
Modern web development moves fast, but accessibility has traditionally been slow, manual, and reactive.
- Information Overload: Tools like Lighthouse provide lists of issues but zero solutions.
- Specialized Knowledge Required: Developers often have to become WCAG experts just to fix a single button.
- Late-Stage Failure: Accessibility is usually audited right before launch, leading to massive delays or compliance risks.
AccessIQ solves this by moving accessibility "left" in the development cycle, providing Contextual Intelligence and One-Click Code Fixes.
🚀 2. The Platform Architecture: Under the Hood
A. The Engine: Continuous Scan Worker (worker.ts)
The "heartbeat" of AccessIQ is a high-performance background worker that orchestrates the entire audit lifecycle.
- Scanning Logic: It uses Playwright + Axe-core to crawl every URL in a project.
- Concurrency & Scaling: It maintains a strict concurrency limit (default 2) to ensure system stability during massive site-wide audits.
- AI Synthesis Pipeline: As soon as a scan completes, the worker triggers Featherless AI (Qwen2.5-Coder-32B) to generate executive summaries and batch remediations for every violation found.
B. The Brain: Featherless AI Integration
We utilize the Qwen2.5-Coder-32B model for three primary tasks:
- Heuristic Analysis: Correcting "silent" logic errors in the DOM.
- Code Remediation: Generating side-by-side diffs with fixed code.
- Human Explanations: Translating technical WCAG rules into layman's impact stories.
🧩 3. The Developer's Workflow: Chrome Extension
AccessIQ meets developers where they build: The Browser.
A. The Real-Time Auditor
- Instant Audits: Developers can trigger a scan of their local dev environment.
- Lighthouse Suite: Audits Performance (LCP, FCP), SEO (Title, H1), and Security Best Practices.
- Comparative Intelligence: Instantly compares your current metrics against the last scan, highlighting regressions.
- Hierarchical Issue Tree: A visual "Site Map" of issues; clicking a node scrolls the browser to the exact element.
📊 4. The Intelligence Report: Turning Data into Action
The Scan Report is the hub for site-wide forensics.
A. Executive Overview
- Radial Accessibility Score: A 0-100 gauge weighted by severity and page count.
- Impact Breakdown Pie Chart: Categorizes issues into 🔴 Critical, 🟠 Serious, 🟡 Moderate, and 🔵 Minor.
- Performance Intelligence Audit: Explains how accessibility fixes will improve your LCP and SEO metadata.
B. Interactive Analytics Hub
- Stacked Page Analytics (Bar Chart): Visualizes which pages are the "worst offenders."
- Inline Drill-Down Experience: Click a severity bar to switch to a filtered list of page-specific issues without page refreshes.
C. Issue Insight Panel
- AI Remediation Lab: Side-by-side diffs showing Original vs. Fixed code.
- Copy Fix Button: One-click remediation applied directly to the developer's clipboard.
- Vision AI Forensics (VLM/Grad-CAM): Uses Visual Language Models to "look" at the UI and generate forensic heatmaps of deficiencies.
👁️ 5. Visual Intelligence: The Grad-CAM Forensic System
Sometimes the code is technically "correct," but the visual outcome is inaccessible.
A. VLM Laser-Scan Heatmaps
AccessIQ generates visual bounding boxes over UI regions that are confusing or structurally deficient, providing a "VLM Forensic" view of the page.
B. Visual Deficiency Simulations
Simulates various forms of colorblindness (Protanopia, Deuteranopia, Tritanopia) via SVG filters, allowing designers and developers to empathize with low-vision users and diagnose color contrast issues instantly.
🛡️ 6. Technical "Deep-Dive" Modules
Advanced modules situated at the bottom of every report for expert-level audit.
A. Security Posture Analysis
Analyzes HTTP security headers (CSP, HSTS, X-Frame) and provides AI-powered hardening configurations for your .env or server files.
B. Screen Reader Compatibility (AX Tree)
Examines the hidden Communication Layer (Accessibility Tree) between the browser and assistive technologies. AI alerts you if screen readers see a "vague" page, even if the visual UI looks perfect.
C. Browser Audit Findings
Explains "hidden" browser violations and modern standards that impact overall site robustness.
⚙️ 7. The Final Loop: GitHub CI/CD Integration
AccessIQ finishes the cycle by pushing compliance directly into your source control.
Replaces manual PDF reports with committed markdown files.
Challenges we ran into
AccessIQ: Development Challenges & Technical Hurdles
Building AccessIQ required solving complex problems at the intersection of browser automation, AI-driven remediation, and real-time visual analysis. Below is a breakdown of the specific challenges encountered for each core feature and how we overcame them.
👁️ 1. Vision AI & Grad-CAM (VLM Forensics)
High-Resolution Payload Errors (413 Payload Too Large)
- Challenge: When capturing full-page screenshots for VLM analysis, the base64-encoded strings often exceeded 10MB. The Vision API (Featherless) would instantly reject these with a
413 Payload Too Largeerror, breaking the forensic laser-scan feature. - Solution: We implemented a rigorous Client-Side Compression Pipeline.
- Algorithm: We used an HTML5 Canvas to downscale the image to a maximum dimension of 800px while maintaining the aspect ratio.
- Efficiency: We switched from PNG to JPEG with a
0.6quality setting, reducing the payload size by over 90% while retaining enough fidelity for the AI to detect bounding boxes.
API Unreachability / Maintenance Fallback
- Challenge: Because high-end Vision models (like Llama-3-Vision) are occasionally taken offline for maintenance, the Grad-CAM modal would crash or hang when the
/api/visionroute returned a 404/503. - Solution: We implemented a Structural Mock Resilience Layer. If the Vision API fails, the system now catches the error gracefully and provides a "Structural Simulation" based on the page's HTML structure, ensuring the user experience is never interrupted.
🤖 2. The AI Remediation Engine
Non-Deterministic JSON Output
- Challenge: LLMs occasionally include "preamble" text (e.g., "Sure, here is your JSON...") or wrap their output in extra markdown backticks. This caused
JSON.parse()to fail in the frontend, preventing the code diffs from rendering. - Solution: We built a Robust Extraction Regex.
- Logic: Instead of parsing the whole string, our regex specifically searches for the outermost
{ ... }block and strips any leading/trailing AI chatter or backticks.
- Logic: Instead of parsing the whole string, our regex specifically searches for the outermost
🔍 3. Scanning Engine (Playwright + Axe-core)
Shadow DOM Selector Collisions
- Challenge: Axe-core often returns
ShadowDomSelectorobjects orCrossTreeSelectorarrays when an issue is inside a web component. Playwright'slocator(selector)expects a plain string, which led to numerous TypeScript and runtime crashes. - Solution: Added a Selector Normalization Layer in
lib/scanner/index.ts.- Fix: We implemented type-guards to detect if the incoming
node.targetwas a string or an object, and converted complex Shadow DOM paths into Playwright-compatible locators.
- Fix: We implemented type-guards to detect if the incoming
📊 4. The Interactive Report Dashboard
React Style Property Collisions
- Challenge: We encountered browser warnings about "Updating a style property during rerender" when using shorthand properties like
backgroundalongsidebackgroundSize. This caused visual flickering in the heatmap overlays. - Solution: We refactored all dynamic styles to use Long-Hand CSS Properties.
- Change: Instead of
style={{ background: '...' }}, we now explicitly setstyle={{ backgroundColor: '...', backgroundSize: '...' }}to prevent property collision during React's reconciliation phase.
- Change: Instead of
"Any-Type" Fragility
- Challenge: The scan report page was originally heavily reliant on
anytypes. This made refactoring the Recharts bar charts extremely risky, as property misspellings (e.g.,urlvsURL) were not caught at build-time. - Solution: We performed a Platform-Wide TypeScript Hardening.
- Outcome: We defined a strict hierarchy of interfaces (
ScanReport,PageAnalysis,Violation,VisionSimulation). This allowed for 100% type-safe data drilling in the report dashboard.
- Outcome: We defined a strict hierarchy of interfaces (
⚙️ 5. Deployment & Build Errors
Next.js / jsPDF Build Collisions
- Challenge: When building for production,
html2pdf.js(used for PDF exports) would throw a type mismatch error because thejsPDForientation string ("portrait" | "landscape") was being interpreted as a genericstring. - Solution: We implemented Explicit Option Casting.
- Fix: We redefined the configuration object with strict literal types, ensuring the Next.js compiler correctly recognized the valid orientation values.
Summary: By solving these hurdles, AccessIQ has evolved from a fragile prototype into a resilient, production-grade intelligence platform that can handle real-world web complexity.
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
