[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110101":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":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":17,"lastSyncTime":29,"discoverSource":30},110101,"teachable-code","ywEdAi\u002Fteachable-code","ywEdAi","An agent skill that turns codebases into interactive 2D and 3D lessons, in English and Chinese.","https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002F",null,"JavaScript",73,9,53,0,1,2,12,3,44.2,false,"main",true,[],"2026-11-04 03:58:37","2026-11-23 04:21:09","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Freadme\u002Fhero-en.svg\" width=\"100%\" alt=\"Teachable Code. Interactive lessons from real codebases, illustrated by seven reused tokens and two newly computed tokens in mini-sglang.\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Cstrong>English\u003C\u002Fstrong> · \u003Ca href=\"README.zh-CN.md\">简体中文\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Ca href=\"https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002F\">\u003Cstrong>Open live demo ↗\u003C\u002Fstrong>\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002F\">中文演示 ↗\u003C\u002Fa> · \u003Ca href=\"#teach-me-a-repository\">Use the skill\u003C\u002Fa>\u003C\u002Fp>\n\n**Teachable Code** is an agent skill that turns a codebase into an interactive lesson. Explore a persistent system map, follow the current step, and inspect the source files and data behind it. Use **3D for tensors and memory**, **2D for applications and tool calls**.\n\n[![mini-SGLang lesson showing a persistent 3D system map, source folder, step explanation and input\u002Foutput panels](assets\u002Freadme\u002Fmini-sglang-en.png)](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Flessons\u002Fmini-sglang.html)\n\n*mini-SGLang example: reuse 7 tokens, compute 2 new ones. The system map, source files, current step and input\u002Foutput stay visible together.*\n\n[Explore the five examples](#five-worked-examples) · [Run the demo](#open-the-demo-in-your-browser) · [Use the skill](#teach-me-a-repository) · [中文示例](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002F)\n\n## Five worked examples\n\nChoose a question and open the lesson. Every demo runs in your browser, in English or Chinese.\n\n| Repository | Follow the process | View | Open lesson |\n| --- | --- | --- | --- |\n| **mini-SGLang** | Request → prefix tree → KV memory → attention. Why does the next request need less work? | 3D · 14 steps | [EN](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Flessons\u002Fmini-sglang.html) · [中文](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002Flessons\u002Fmini-sglang.html) |\n| **nanoGPT** | Characters → vectors → attention → sampling → gradients → updated weights. | 3D · 15 steps | [EN](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Flessons\u002Fnanogpt.html) · [中文](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002Flessons\u002Fnanogpt.html) |\n| **SWE-agent** | Issue → context → command → sandbox → feedback → patch. | 3D · 13 steps | [EN](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Flessons\u002Fswe-agent.html) · [中文](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002Flessons\u002Fswe-agent.html) |\n| **DeepTutor** | Question → instructions → textbook retrieval → tool loop → answer. | 2D · 13 steps | [EN](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Flessons\u002Fdeeptutor.html) · [中文](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002Flessons\u002Fdeeptutor.html) |\n| **AI chatbot** | Send → request checks → context → weather tool → streamed answer. | 2D · 11 steps | [EN](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Flessons\u002Fai-chatbot.html) · [中文](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002Flessons\u002Fai-chatbot.html) |\n\n\u003Cdetails>\n\u003Csummary>See the 2D view in DeepTutor\u003C\u002Fsummary>\n\n![DeepTutor lesson tracing a question through context, retrieval and a tool loop on a persistent 2D map](assets\u002Freadme\u002Fdeeptutor-en.png)\n\n\u003C\u002Fdetails>\n\n## Open the demo in your browser\n\nOpen the **[English gallery](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002F)** or **[Chinese gallery](https:\u002F\u002Fywedai.github.io\u002Fteachable-code\u002Fzh-CN\u002F)**. No installation, model key or training GPU is needed. Language switching keeps your current step.\n\n\u003Cdetails>\n\u003Csummary>Run the same demo locally\u003C\u002Fsummary>\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FywEdAi\u002Fteachable-code.git\ncd teachable-code\npython3 -m http.server 8000 --directory docs\n```\n\nOpen [localhost:8000](http:\u002F\u002Flocalhost:8000\u002F) or [localhost:8000\u002Fzh-CN\u002F](http:\u002F\u002Flocalhost:8000\u002Fzh-CN\u002F).\n\n\u003C\u002Fdetails>\n\nFonts and the 3D runtime load from public CDNs. Both the online and local demos need internet access.\n\n## Teach me a repository\n\nGive your coding agent [SKILL.md](SKILL.md), a repository URL, and a question you want to answer. For example:\n\n> Use teachable-code to help me understand mini-sglang. Follow two requests with the same opening through the scheduler and KV cache. Keep the whole system visible, show the input and output at each step, and link each component to its source files. Explain it for someone learning LLM serving.\n\nThe agent scans the repository, asks questions that affect the lesson, pins a source commit, and builds a page around your goal. Python 3 and Node.js are needed to build lessons. GPU access, keys or extra dependencies depend on the code you choose to execute.\n\n## What you can explore\n\n- **The whole system stays visible.** The active components light up while their relationships remain on the canvas.\n- **Compare input and output.** Values, prompts, tool arguments and results sit beside the operation that connects them.\n- **Move between behavior and source.** Click a component or a project file to see where it belongs and which steps use it.\n- **Understand iteration.** Replay decoding, training updates and agent tool loops. Use “Guess first” to predict selected steps.\n- **Follow the evidence.** Code references point to pinned commits. Lessons explain whether values come from source reading, a replay, a simulation or execution.\n\n## Be clear about the evidence\n\nThe five lessons demonstrate the teaching format. **They do not reproduce the upstream projects' published results.**\n\n| Example | What the lesson uses |\n| --- | --- |\n| nanoGPT | Our own small CPU model following the source structure. The upstream code was not run. |\n| mini-SGLang | Our own replay of cache rules with illustrative requests. Token counts are not a speed benchmark. |\n| SWE-agent | Text from a recorded demonstration committed upstream. No live model was called. |\n| DeepTutor and AI chatbot | Prompt text and tool schemas read from source. Conversations and tool results are illustrative. |\n\nChinese pages translate the interface and explanations. Source code, original prompts and numerical values remain unchanged for comparison. Browser checks verify interaction and layout; learning outcomes have not been evaluated with learners.\n\n## Build and extend\n\n- [Lesson authoring and schema](references\u002Flessons.md)\n- [Choose a learner's route](references\u002Finterview.md)\n- [Paper-to-code evidence](references\u002Fpaper-to-code.md)\n- [Running code and labeling its provenance](references\u002Frunning-code.md)\n- [Earlier multi-repository graph example](examples\u002Ffour-repos\u002FREADME.md)\n\nRebuild the bilingual demo site from the checked-in standalone lessons:\n\n```bash\npython3 scripts\u002Fbuild_site.py\npython3 -m unittest discover -s scripts -p test_build_site.py\n```\n\nTo build a lesson against a clean clone at its pinned commit:\n\n```bash\npython3 scripts\u002Fbuild_lesson.py examples\u002Flessons\u002Fmini-sglang \\\n  --repo \u002Fpath\u002Fto\u002Fmini-sglang --standalone \\\n  --out examples\u002Flessons\u002Fmini-sglang\u002Fstandalone.html\npython3 scripts\u002Fbuild_site.py\n```\n\nBrowser verification uses Python Playwright and Chrome or Chromium:\n\n```bash\npython3 scripts\u002Fcheck_lesson.py docs\u002Flessons\u002Fmini-sglang.html\npython3 scripts\u002Fcheck_lesson.py docs\u002Fzh-CN\u002Flessons\u002Fmini-sglang.html\n```\n\nChinese text lives in each lesson's `zh-CN.json`. The site build refuses a translation when the pinned commit or ordered source step titles change.\n\n## Source projects\n\nThe worked examples study [mini-sglang](https:\u002F\u002Fgithub.com\u002Fsgl-project\u002Fmini-sglang), [nanoGPT](https:\u002F\u002Fgithub.com\u002Fkarpathy\u002FnanoGPT), [SWE-agent](https:\u002F\u002Fgithub.com\u002FSWE-agent\u002FSWE-agent), [DeepTutor](https:\u002F\u002Fgithub.com\u002FHKUDS\u002FDeepTutor), and [AI chatbot](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-chatbot). Source excerpts and recorded material belong to their respective projects. See each lesson for pinned commits and specific limitations.\n","Teachable Code 是一个将真实代码库自动转化为交互式教学课件的轻量级前端工具，支持中英文双语。它通过可视化系统地图（2D用于应用流程、3D用于张量\u002F内存结构）呈现代码执行逻辑，结合源码文件、当前步骤说明及输入输出面板实现上下文联动。项目基于浏览器运行，无需后端依赖，采用 mini-SGLang 等轻量推理范式复用已有 token，降低计算开销。适用于开发者学习复杂开源项目、教育者构建编程案例课件，以及技术文档增强型教学场景。","2026-11-24 04:38:04","CREATED_QUERY"]