Technical systems explained with interactive visualizations — so you understand how things work before you trust AI to write the code.
npm install
npm run dev # http://localhost:4321
npm run build # production build
npm run preview # preview production buildMachine Problems is visual-first and example-first. Do not add prose-only topics.
Every problem needs:
- A concrete named scenario before formal terminology.
- An interactive visualization before the first long prose section.
- A worked example that uses real values, messages, payloads, or states.
- A mapping from example objects to formal terms.
- A checklist for evaluating AI-generated code or designs.
- Create
src/content/problems/your-topic.mdxwith frontmatter:
---
title: Your Topic
description: One-line summary
category: protocol | os | distributed | security | networking
difficulty: intro | intermediate | advanced
tags: [tag1, tag2]
---- Create
src/components/viz/YourTopicViz.tsxwith the interactive visualization. - Import and embed the visualization near the top of the MDX with
client:load.
Use this section order by default:
- Concrete story — "JayP uses Print Express to read Google Drive files."
- Interactive visual — click/step through the actual state changes.
- Term mapping — example actor -> formal term.
- Exact mechanics — requests, responses, data structures, algorithms.
- AI review checks — invariants to inspect in generated code.
- Further reading — specs and high-quality explainers.
The project skill .cursor/skills/visual-example-explainer/SKILL.md packages this workflow for future agent sessions.
- Astro 5 (SSG) + React 19 (interactive islands) + Tailwind CSS 3 + MDX
- Content collection:
src/content/problems/ - Viz components:
src/components/viz/ - Shared diagram primitives:
src/components/diagram/
MIT