mdxcn README

The project's README from github.com/shadcn-labs/mdxcn. As one markdown file: README.md.

mdxcn banner

mdxcn

Free & open-source, ready-to-use, customizable Markdown-friendly components for React.
Copy the source into your app. Built for MDX, works seamlessly with shadcn/ui.

GitHub Stars CI Discord Members X Follow

Get Started · Installation · Components

Features

Community

The mdxcn community lives on GitHub, where you can ask questions, share ideas, and show what you've built.

Contributing

Contributions are welcome. See CONTRIBUTING.md to get the repo running locally and land a change, and use issues and discussions to collaborate. By participating, you agree to the Code of Conduct.

Security

Please do not open public issues for security vulnerabilities. Follow SECURITY.md and report them privately through GitHub Security Advisories.

License

MIT

Contributors

Contributors

Made with contrib.rocks

Star History

Star History Chart

mdxcn (shadcn-labs/mdxcn)

Searching Database…

What is this?mdxcn is a free, open-source set of ASCII-style React components — tables, charts, timelines, flows, and more — meant to sit next to prose in MDX or plain Markdown, designed to be copied into your own project rather than installed as a package.
Is this an npm package I install, or do I copy the code in?It is not an npm package. You add individual components (registry items like graph-table, graph-flow, graph-timeline) to your own codebase using the shadcn CLI, which copies the source files directly into your project.
How do I add these graph components to my project?Run the shadcn CLI against mdxcn's scoped registry (or paste the full registry URL) to add a component — it drops the files under @/registry/default, and you run `shadcn build` after making changes to rebuild the registry.
What do I need before installing a component?You need an existing shadcn project already set up plus the motion package installed, since the components use Motion for their transform/opacity transitions.
Can I use these graphs outside of MDX/React?Yes — Comark apps can render the same figures from plain `::graph-` blocks in a regular .md file with no MDX needed, and the fenced-ASCII form can even be dropped into a plain GitHub README.
How many graph types are included?Over 30 components ship out of the box — things like Table, Flow, Bars, Timeline, Gantt, Heatmap, Waterfall, Rank, KPI, and Countdown — each listed in the README with its registry name and typical use.
Why ASCII instead of SVG charts?Every graph is deliberately drawn with monospace glyphs inside a dashed Geist Mono frame instead of SVG, keeping figures lightweight and visually consistent with surrounding code or prose.
What is Comark?Comark is the markdown tooling mdxcn also targets, rendering the same figures from `::graph-` fenced blocks in plain .md files so non-MDX markdown apps can display them too.
How do coding agents use this?mdxcn ships a skill and an /llms.txt endpoint telling an agent which graph to place next to prose, covering JSX for MDX, ::graph- syntax for Comark, and fenced ASCII for plain GitHub READMEs.
Size
1.9 MB
Stars
713
Updated
CommitNov 11
Age
3mo
Commits · 90 Days