
A2UI Coding Tutor: Generative UI Interactive Learning Platform
An interactive AI coding tutor built on Google's A2UI v1.0 standard that replaces passive text walls with client-side generative UI quizzes, code blocks, and output prediction surfaces.
Nov 2026
Full Stack Developer
React 19
Problem Domain & Architecture
A2UI Coding Tutor is an adaptive, agentic learning platform engineered around Google's Agent-to-UI (A2UI v1.0) specification. Unlike conventional AI tutors that generate passive markdown prose, this system emits structured JSON protocol messages (createSurface, updateComponents, dataModelUpdate) that dynamically assemble interactive learning surfaces directly in the student's browser. The platform integrates a dual-consumer component catalog enforcing 5 custom pedagogical primitives—Quiz with immediate client-side grading, syntax-highlighted CodeBlock with interactive line selection, PredictOutput challenges, StepWalkthrough algorithmic guides, and visual ProgressCards. The backend features a multi-LLM routing engine supporting Google Gemini, Anthropic Claude, and OpenAI-compatible endpoints with automatic fallback cooldowns and secure local credential storage.
Application Screenshots
Click to expandKey Capabilities & Features
A2UI Generative Surface Engine
Protocol-Driven UI Generation
Dispatches structured createSurface, updateComponents, and dataModelUpdate messages rather than raw markdown walls.
Custom Component Catalog Guardrail
Enforces a strict 5-component catalog (Quiz, CodeBlock, PredictOutput, StepWalkthrough, ProgressCard) preventing hallucinated UI widgets.
Zero-Token Offline Mock Mode
Provides canned interactive surfaces via TUTOR_OFFLINE=1 for local development, automated testing, and zero-token demos.
Pedagogical Interaction Primitives
Instant-Feedback Conceptual Quizzes
Multiple-choice questions with embedded client-side grading, expandable hints, and adaptive difficulty follow-ups.
Interactive Code Inspection
Syntax-highlighted code blocks with line-number click selection to request line-by-line reasoning or output prediction.
Mental-Model Output Prediction
Forces learners to actively predict program execution output before revealing results to reinforce state reasoning.
Multi-Provider Failover & Infrastructure
Multi-LLM Provider Engine
Supports Google Gemini, Anthropic Claude, and OpenAI-compatible providers (Groq, DeepSeek, Ollama) with unified prompt templates.
Automatic Rate-Limit & Outage Failover
Sequentially queries configured providers, placing failing or quota-exhausted models into a 60-second cooldown while secondary providers answer.
Air-Gapped Credential Security
Persists API keys locally in mode 0600 JSON files, returning masked hints to the client to ensure zero key leakage.
Project Specifications
Technologies Used
Related Projects
GymGrid: Multi-Tenant Gym Operations & QR Check-In Platform
Multi-tenant gym management workspace and QR desk check-in platform built for neighbourhood gyms in Bangladesh, featuring bKash/Nagad verification, WhatsApp reminders, and PDF receipts.
AURA: Precision Mobile Accessories Storefront & Platform
A premium D2C mobile accessories storefront and operations platform featuring an interactive 3D runway showcase, real-time variant configuration, and a full-featured administrative command center.
Tutor Book: Private Tuition Ledger & Scheduling Platform
A phone-first tuition ledger and scheduling platform for private tutors to track student rosters, record classes with atomic rate snapshots, automate monthly billing, and settle payments.