[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113415":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":40,"updatedAt":41,"readmeContent":42,"aiSummary":43,"trendingCount":16,"starSnapshotCount":16,"syncStatus":44,"lastSyncTime":45,"discoverSource":46},113415,"whiteboard-ai-tutor","molly554\u002Fwhiteboard-ai-tutor","molly554","Open-source whiteboard AI tutor with animated lessons and interactive playback. Compare Claude, Gemini & DeepSeek across 288 generation runs and 64 blind-reviewed boards.","https:\u002F\u002Fmolly554.github.io\u002Fwhiteboard-ai-tutor\u002F",null,"HTML",563,23,12,7,0,8,353,430,67,94.14,"MIT License",false,"main",true,[27,28,29,30,31,32,33,34,35,36,37,38,39],"ai-teacher","ai-tutor","ai-tutoring","ai-whiteboard","claude","deepseek","edtech","education","gemini","llm","llm-benchmark","math-tutor","whiteboard","2026-11-24 04:01:52","2026-11-24 20:33:44","\u003Cdiv align=\"center\">\n\n# Whiteboard AI Tutor\n\n**An open-source AI tutor that teaches on a whiteboard — and a benchmark of which LLM does it best.**\n\nIt writes, draws and erases while it explains, and the student can interrupt.\u003Cbr>\nOne frozen prompt. Six models. 288 lessons drawn stroke by stroke. Blind-reviewed.\n\n[English](README.md) · [简体中文](README.zh-CN.md)\n\n**[▶ Live gallery: replay every lesson in your browser](https:\u002F\u002Fmolly554.github.io\u002Fwhiteboard-ai-tutor\u002F)**\n\n![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-2a78d6)\n![models](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fmodels-6-2a78d6)\n![api calls](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAPI%20calls-288-2a78d6)\n![boards reviewed](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fboards%20blind--reviewed-64-2a78d6)\n![total cost](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftotal%20cost-%244.83-2a78d6)\n\n\u003Cimg src=\"docs\u002Fassets\u002Fhero.png\" alt=\"A model proves the Pythagorean theorem on a whiteboard, stroke by stroke, with narration\" width=\"800\">\n\n\u003Csub>Gemini 4 Argon proving the Pythagorean theorem. The model only wrote JSON; the player turned it into handwriting. Played at 3× speed.\u003C\u002Fsub>\n\n\u003C\u002Fdiv>\n\n## What is this?\n\nAn AI tutor (or AI teacher) that writes, draws and erases on a whiteboard while it talks — and lets the student cut\nin — looks like a model capability. It isn't. It is a small protocol: the model streams drawing instructions as JSON,\na browser plays them as handwriting, and when the student interrupts, the app sends the board back to the model.\n\nSo any LLM can be the tutor. This repository is two things:\n\n- **A reference implementation** of that loop: the protocol, a whiteboard player, and a runner for Claude, Gemini and\n  DeepSeek.\n- **A benchmark** of how well they teach: same prompt, same eight scenarios (science, maths, economics), six models,\n  two thinking settings, three repeats. Every board is in this repo, and you can replay each one.\n\nIt is not a hosted tutoring app. The player replays recorded lessons; to generate new ones, run the benchmark runner\nwith your own API key.\n\n## Leaderboard\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fleaderboard-dark.svg\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fleaderboard-light.svg\" alt=\"Leaderboard: blind-review pass share, time to first stroke, cost per lesson\" width=\"900\">\n\u003C\u002Fpicture>\n\n| Model | Blind review: boards passed | Strict | First stroke (lesson, p50) | Cost per lesson | Main weakness |\n|---|---|---|---|---|---|\n| Gemini 4 Argon | **11 \u002F 11** | 11 | 8.0 s | $0.0277 | slowest to start; price doubles on 2026-12-01 |\n| Claude Haiku 5.5 | 9 \u002F 11 | 9 | 12.9 s | $0.0019 | thinks even on the low setting, so it starts late |\n| Gemini 3.8 Flash | 8 \u002F 11 | 8 | 3.4 s | $0.0080 | marks points off the curves, mislabels positions |\n| Claude Sonnet 5.5 | 7 \u002F 11 | 5 | **2.8 s** | $0.0158 | cleanest layout, but the figure often contradicts the text |\n| DeepSeek V4 Pro | 5 \u002F 10 | 4 | 3.8 s | $0.0064 | overprinted text, covered diagrams (thinking off) |\n| DeepSeek V4.1 Flash | 4 \u002F 10 | 4 | 2.5 s | $0.0017 | 7 of 24 calls drew a blank board (thinking off) |\n\nLatency and cost are for the low-thinking setting. \"Strict\" also fails boards where a marked point sits 20–35 px off\nthe true intersection. Eleven boards per model is a small sample: the gap between the top and the bottom is clear, the\norder in the middle is not. See [Limitations](#limitations).\n\n## Same question, six models\n\n*\"Why does the Pythagorean theorem work?\"* — low-thinking setting, one board per model, exactly as drawn.\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"33%\">\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB62.png\" alt=\"Gemini 4 Argon\">\u003Cbr>\u003Csub>\u003Cb>Gemini 4 Argon\u003C\u002Fb> · pass · two arrangements, exact geometry\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\">\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB54.png\" alt=\"Gemini 3.8 Flash\">\u003Cbr>\u003Csub>\u003Cb>Gemini 3.8 Flash\u003C\u002Fb> · pass · same proof, one misplaced highlight box\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\">\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB01.png\" alt=\"Claude Haiku 5.5\">\u003Cbr>\u003Csub>\u003Cb>Claude Haiku 5.5\u003C\u002Fb> · pass · algebraic version\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB48.png\" alt=\"Claude Sonnet 5.5\">\u003Cbr>\u003Csub>\u003Cb>Claude Sonnet 5.5\u003C\u002Fb> · pass · wrote the algebra, then erased it\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd>\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB16.png\" alt=\"DeepSeek V4 Pro\">\u003Cbr>\u003Csub>\u003Cb>DeepSeek V4 Pro\u003C\u002Fb> · fail · the c² square is not on the hypotenuse and has the wrong size\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd>\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB61.png\" alt=\"DeepSeek V4.1 Flash\">\u003Cbr>\u003Csub>\u003Cb>DeepSeek V4.1 Flash\u003C\u002Fb> · fail · no actual argument on the board\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\nAll 64 reviewed boards, with verdicts and notes, are in the\n[live gallery](https:\u002F\u002Fmolly554.github.io\u002Fwhiteboard-ai-tutor\u002F); click a board to watch it being written.\n\n## What we found\n\n1. **The words are right; the pictures are wrong.** Of the 20 boards that failed, 12 failed because the figure\n   contradicted the text: a season label on the wrong Earth, an equilibrium point drawn beside the intersection instead\n   of on it. Written statements were almost never wrong.\n2. **There is no single winner.** Gemini 4 Argon drew the most accurate boards (11 \u002F 11). Claude Sonnet 5.5 started\n   drawing first (2.8 s) and had the cleanest layout. Claude Haiku 5.5 was 8–15× cheaper than either and still\n   passed 9 \u002F 11.\n3. **A cheap, fast model with thinking off can simply not follow the protocol.** DeepSeek V4.1 Flash returned\n   instructions without the `op` field in 7 of 24 calls. They parse as JSON and draw nothing.\n4. **Our linter was a bad judge.** It flagged 41 of the 64 boards for \"hard errors\"; the blind review passed 26 of\n   those. It punishes rich diagrams (labels near lines) and cannot see the main failure, a figure that disagrees with\n   its own caption.\n5. **More thinking mostly bought waiting.** With thinking on, the first stroke took 30–120 s on Gemini 3.8 Flash and\n   both DeepSeek models, and 23 calls ran into the 8,000-token output cap before finishing the board.\n6. **Interruptions are handled, but messily.** All 24 interruption boards answered the student. Eleven of them wrote\n   over the existing drawing or wiped the board to start again.\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd width=\"33%\">\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB09.png\" alt=\"season labels swapped\">\u003Cbr>\u003Csub>\u003Cb>Labels swapped.\u003C\u002Fb> The Earth leaning toward the Sun is labelled \"North: winter\". (Claude Sonnet 5.5)\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\">\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB40.png\" alt=\"equilibrium point off the intersection\">\u003Cbr>\u003Csub>\u003Cb>Point off the crossing.\u003C\u002Fb> E₂ sits on the supply line, above where D₂ meets S, so P₂ and Q₂ are read wrong. (Gemini 3.8 Flash)\u003C\u002Fsub>\u003C\u002Ftd>\n\u003Ctd width=\"33%\">\u003Cimg src=\"results\u002Freview\u002Fboards\u002FB39.png\" alt=\"overprinted titles\">\u003Cbr>\u003Csub>\u003Cb>Overprint.\u003C\u002Fb> Every step title written on the same spot. (DeepSeek V4 Pro)\u003C\u002Fsub>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## How it works\n\n```mermaid\nflowchart LR\n  Q([Student question]) --> M[LLM + frozen protocol]\n  M -- \"streams JSON ops\" --> P[Player]\n  P -- \"handwriting, strokes, erasing\" --> B[(Board)]\n  I([Student interrupts]) --> S[Board state:\u003Cbr>objects, positions, text]\n  B --> S\n  S -- \"question + state\" --> M\n```\n\nThe model never touches a canvas. It emits steps, each with a line of narration and a list of operations:\n\n```json\n{ \"title\": \"The tilt\", \"say\": \"Earth's axis is tilted 23.5 degrees and keeps pointing the same way.\",\n  \"ops\": [\n    { \"op\": \"erase\",   \"ids\": [\"guess\", \"check\"] },\n    { \"op\": \"write\",   \"id\": \"key\", \"x\": 60, \"y\": 128, \"text\": \"Real reason: the axis is tilted 23.5°\", \"size\": 36, \"color\": \"blue\" },\n    { \"op\": \"ellipse\", \"id\": \"earth1\", \"cx\": 280, \"cy\": 600, \"rx\": 34, \"ry\": 34, \"color\": \"blue\", \"fill\": \"blue\" },\n    { \"op\": \"line\",    \"id\": \"axis1\", \"x1\": 255, \"y1\": 657, \"x2\": 305, \"y2\": 543 } ] }\n```\n\nSix operations (`write`, `line`, `rect`, `ellipse`, `path`, `erase`) on a 1600 × 900 board. The full prompt is\n[`protocol\u002FPROTOCOL.md`](protocol\u002FPROTOCOL.md) (the tested prompt, in Chinese) with an\n[English translation](protocol\u002FPROTOCOL.en.md). Because the first operation is usable as soon as it arrives, the\nstudent sees the first stroke after two to four seconds on the fastest models, long before the lesson has finished\ngenerating.\n\n### Interruptions\n\n\u003Cdiv align=\"center\">\n\u003Cimg src=\"docs\u002Fassets\u002Finterrupt.png\" alt=\"A student interrupts a supply-and-demand lesson; the model continues on the same board\" width=\"800\">\n\u003C\u002Fdiv>\n\nWhen the student cuts in, the app stops the stream and sends the model the question together with what is on the\nboard (every object's id, type, bounding box and text). The model replies with new steps only; it may erase or\nannotate existing objects by id.\n\n## How it was evaluated\n\n```mermaid\nflowchart LR\n  R[288 runs] --> A[Automatic metrics:\u003Cbr>parse, protocol, latency, cost]\n  R --> L[Linter:\u003Cbr>off-board, overlaps]\n  R --> X[Render final boards]\n  X --> Z[Random ids,\u003Cbr>model names hidden]\n  Z --> V[Blind review\u003Cbr>with a fixed rubric]\n  V --> U[Unblind,\u003Cbr>aggregate]\n  U --> H[Human audit sample]\n```\n\n- **Sample.** One board per model and scenario at low thinking (48), plus three scenarios at medium thinking (16).\n  Of the three repeats, the one with the median linter score was taken, not the best one.\n- **Blind.** Boards were rendered to images under random ids. Scores were written to disk before the id mapping was\n  opened ([`bench\u002Fblind_view.py`](bench\u002Fblind_view.py) never prints a model name).\n- **Rubric.** No scientific or mathematical error; the figure agrees with the text; layout 0–2; the lesson is\n  complete. Interruptions add: the question is answered; the existing board is not overwritten or wiped.\n  Pass = no error, figure agrees, layout ≥ 1.\n- **Reviewer.** Claude Fable 5.2, which was not one of the tested models. It checked geometry from pixel positions\n  (is the dot on the intersection? which way does the axis lean?).\n- **Human audit.** `audit.html` lists 18 boards (every low-confidence or borderline call plus a random pass and fail\n  per model) for a human to confirm or overturn.\n\nDetails and the exact reproduction steps are in [`docs\u002FMETHOD.md`](docs\u002FMETHOD.md). The full write-up is\n[`docs\u002FREPORT.md`](docs\u002FREPORT.md) ([中文](docs\u002FREPORT.zh-CN.md)).\n\n## Quickstart\n\nLook at the results in the [live gallery](https:\u002F\u002Fmolly554.github.io\u002Fwhiteboard-ai-tutor\u002F), or locally (no keys, no\ndependencies):\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fmolly554\u002Fwhiteboard-ai-tutor.git\ncd whiteboard-ai-tutor\npython serve.py            # then open http:\u002F\u002Flocalhost:8811\u002F\n```\n\nThe gallery opens; click any board to watch it being written. `player\u002F` also plays the eight scenarios and shows the\nlinter output.\n\nRun a model yourself:\n\n```bash\npip install -r requirements.txt\n# one key covers Claude and Gemini via OpenRouter; DeepSeek uses its own key\nexport OPENROUTER_API_KEY=...        # Windows: powershell -File bench\u002Fset_key.ps1 -Name OPENROUTER_API_KEY\nexport DEEPSEEK_API_KEY=...\n\npython bench\u002Frun.py preflight --via openrouter                     # free: checks keys, model ids, pinned providers\npython bench\u002Frun.py smoke --via openrouter --models sonnet-5.5     # 4 calls, a few cents\npython bench\u002Frun.py main --confirm --via openrouter                # the full matrix, about $4\npython bench\u002Faggregate.py                                          # tables in results\u002Fsummary.md\n```\n\nThe runner pins every OpenRouter model to its first-party provider and disables fallback, stops at a per-model and\na total budget cap, and appends each call to `results\u002Fruns\u002F*.jsonl` so an interrupted run can be resumed.\n`bench\u002Fmock_server.py` imitates the three APIs locally if you want to test the runner for free.\n\n## Repository layout\n\n```\nprotocol\u002F      the frozen prompt (tested version in Chinese, plus an English translation)\nscenarios\u002F     8 scenarios: 5 lessons, 3 interruptions with their fixed prior board and board state\nplayer\u002F        the whiteboard player, the linter and the frame-capture tool (one HTML file, no build step)\nbench\u002F         runner, provider adapters, aggregation, blind-review helpers, chart and animation builders\nresults\u002F\n  runs\u002F        every API call: timings, token usage, cost, raw output\n  scripts\u002F     the 263 outputs that parsed, ready to replay\n  lint\u002F        linter output per run\n  review\u002F      64 rendered boards, the blind scores, the id mapping, per-board notes\ndocs\u002F          report, method, chart and animation assets\nindex.html     gallery of all reviewed boards (also the GitHub Pages entry point)\naudit.html     the human-audit sheet\n```\n\n## Limitations\n\n- **Small review sample.** Eleven boards per model. 9 \u002F 11, 8 \u002F 11 and 7 \u002F 11 are not distinguishable.\n- **Final boards only.** The review looked at each finished board, plus the state before the largest erase on six\n  boards. Intermediate states and animation pacing were not reviewed.\n- **One prompt.** The protocol is frozen at one wording, written in Chinese. Another wording could reorder the models.\n- **Eight scenarios, three repeats.** Middle-school science, maths and economics; nothing about real student\n  questions at scale.\n- **Latency was measured from one desktop**, and Claude and Gemini went through OpenRouter, which adds a hop. Compare\n  models with each other, not with your own production numbers.\n- **The medium-thinking results are capped.** 23 calls hit the 8,000-token limit, so parse rates there measure\n  truncation, not ability.\n- **Handwriting depends on your system font.** The player uses Ink Free, which ships with Windows. Elsewhere it falls\n  back to a generic cursive font, so a replay can look different from the reviewed board images, which were rendered\n  on Windows.\n- **Prices move.** Costs are list prices on 2026-11-11.\n\n## Ideas worth testing next\n\n- Higher-level operations (`mark_intersection(a, b)`, `label(id, text)`) so that code, not the model, computes\n  positions. This targets the most common failure directly.\n- A second pass that shows the model a screenshot of its own board.\n- A vision-model judge compared against human verdicts, to replace the linter as a gate.\n- Speech for the narration, and true mid-stroke interruption.\n\n## License\n\n[MIT](LICENSE). Model outputs in `results\u002F` are included for research and comparison.\n","Whiteboard AI Tutor 是一个开源的白板式AI教学演示与基准测试工具，支持将大语言模型（LLM）生成的JSON格式绘图指令实时渲染为手写动画白板讲解。其核心包含轻量协议设计、浏览器端白板播放器及多模型对比框架，已对 Claude、Gemini 和 DeepSeek 等6个模型在288次生成中完成盲审评估（覆盖数学、科学、经济学等8类教学场景）。项目不提供实时托管服务，而是提供可复现的教学过程回放与横向性能分析（如首笔延迟、通过率、成本），适用于教育技术研究者、LLM教学能力评估者及交互式AI教学原型开发者。",2,"2026-11-25 04:50:45","CREATED_QUERY"]