r/coolgithubprojects • • 36m ago

unfold-mdx: React + MDX walkthroughs where each click highlights what changed in the explanation and the code

GitHub: https://github.com/Shakya47/unfold-mdx

Live: https://shakya47.github.io/unfold-mdx/

Install: `npm i u/unfold-mdx/react`

I'm still learning, and I kept running into the same problem with code tutorials: you have to compare each step with the previous one in your head to see what changed. So I built unfold-mdx.

You write each step as a full snapshot (the whole explanation so far and the whole code so far). It compares consecutive snapshots and highlights the new sentences and code lines on every Next click.

0.1.0 adds:

- Shiki syntax highlighting

- Step-synced highlights on images and Mermaid/SVG diagrams

- Grid layouts, resizable panes, and custom controls

- Headless styling with an optional theme, SSR fallback, keyboard navigation

- An `llms.txt` file so AI coding agents can write walkthroughs in the right format

1 Upvotes

0 comments sorted by