Back to all projects
A2UI Coding Tutor: Generative UI Interactive Learning Platform
Full Stack Development•2026-11-24

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.

Timeline

Nov 2026

Role

Full Stack Developer

Primary

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 expand

Key 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.