UXRay: I Built an AI That Roasts Your UI Like a Senior Designer Would Based solely on the provided text, here is a 2-3 sentence factual summary: UXRay is a tool that uses the Gemma 4 E4B AI model to provide instant, structured UX audits of user interfaces from a screenshot or URL. It analyzes the UI against established heuristics like Nielsen's principles and WCAG 2.1, returning a score, friction points, and recommendations. The tool is designed to run locally on a developer's CPU without a GPU, completing an audit in about 56 seconds. This is a submission for the Gemma 4 Challenge: Build with Gemma 4 What I Built UXRay — drop a screenshot or paste a URL, get a full UX audit in seconds. Most designers and developers ship UIs without a systematic critique. Hiring a UX consultant is expensive. Running a full user study takes weeks. UXRay closes that gap: it gives you the same structured, heuristic-based analysis a senior UX professional would produce — instantly, locally, and for free. You give UXRay a UI file upload or live URL and it returns: - Overall UX score 0–100 - Cognitive load analysis — is the interface overwhelming users? - Trust score — what signals build or erode credibility? - Friction points — specific elements causing drop-off, each mapped to a Nielsen heuristic and rated critical / warning / info - Prioritized recommendations — actionable fixes sorted by urgency with effort and impact ratings - Accessibility flags — WCAG 2.1 violations visible in the screenshot - Layout analysis — fold content, visual hierarchy strength, whitespace quality, and scan pattern Z vs F The analysis is grounded in established UX theory: Nielsen's 10 Usability Heuristics, Gestalt principles, Fogg's trust heuristics, Sweller's cognitive load theory, and WCAG 2.1. Every friction point cites the exact heuristic it violates so you know why something is a problem, not just that it is. Stack: Next.js 16 App Router, TypeScript · Tailwind v4 · Framer Motion · Gemma 4 E4B via Ollama · Playwright microservice for URL screenshots · Zod for structured output validation Demo Live test: I pointed UXRay at dev.to. It captured a full-page screenshot, ran the Gemma 4 analysis, and returned a structured result — 85 overall score, 3 friction points, 3 prioritized recommendations — in about 56 seconds on CPU, no GPU required. Code UXRay — AI-Powered UX Analysis X-ray your interface through AI. Powered by Gemma 4 E4B. UXRay analyzes any UI screenshot like a behavioral psychologist — detecting cognitive load, trust signals, friction points, and actionable redesign recommendations. It uses Gemma 4's native multimodal vision to see the interface directly, not just process text descriptions. Built for the Google Gemma 2026 Hackathon on dev.to. Demo Upload a screenshot or paste a URL → Gemma 4 analyzes it → structured UX critique appears: - Overall UX Score 0–100 - Cognitive Load gauge with specific issues - Trust Score with positive/negative signals - Friction Points with heuristic references Nielsen, Gestalt, WCAG - Recommendations sorted by priority with effort/impact ratings - Accessibility Flags and Layout Analysis Prerequisites - Ollama installed and running: brew install ollama brew services start ollama - Gemma 4 E4B pulled: ollama pull gemma4:e4b - Node.js 18+ Setup Clone the repo git clone