Skip to content
mdxcn is now part of Shadcn Labs. details

open source, copied into your repo

mdxcn is a set of MDX components that draw figures with text. Keshav Bagaade started it, and it's now part of Shadcn Labs. You install it with the shadcn CLI, which copies the source into your app, so there's no npm package to depend on. The code is on GitHub under the MIT license.

[ spec ]
lab
shadcn labs
license
mit
install
shadcn cli
registry
@mdxcn
skill
skills/mdxcn
site
mdxcn.dev
mail
hi@kshv.me

what it is

Every graph sits in a dashed frame with its title on the top edge, and uses a single accent color unless you ask for more. Most graphs also have a plain-text version for READMEs, GitHub, Linear and pull request comments. Comark apps can render the same figures from ::graph-* blocks in a plain .md file, and Knap templates can generate either format from data.

mdxcn.dev hosts the docs, the shadcn registry and the agent skill. The skill tells an agent which graph belongs next to its writing and what to write for each kind of file: Markdown inside the tag in MDX, a ::graph-* block in Comark, a graph_* filter in Knap, or the plain-text figure in a README.

The source is at https://github.com/shadcn-labs/mdxcn. Questions go to hi@kshv.me.

The Shadcn Labs announcement is at /shadcn-labs.