mdx vs starlight
mdx and starlight share 7 technologies: hastscript, hast-util-select, unified, vfile, hast-util-to-html, remark-directive, and unist-util-visit. mdx is written in JavaScript and starlight in TypeScript.
What they share and what sets them apart
mdx-js
mdx
Markdown for the component era
JavaScript19.9kRead on November 5, 2026, at commit 52285a6What is mdx built with?Only in mdx
- React
- Preact
preact-render-to-string
- Vite
- Vue
@vue/server-renderer
@floating-ui/dom
react-error-boundary
- hast-util-sanitize
rehype-stringify
- xast-util-to-xml
- hast-util-from-html
- hast-util-to-jsx-runtime
- hast-util-to-text
rehype-autolink-headings
rehype-infer-description-meta
rehype-parse
rehype-raw
rehype-slug
remark-frontmatter
remark-gemoji
remark-gfm
remark-github
remark-math
- remark-mdx-frontmatter
remark-toc
- unist-util-remove-position
- @sparticuz/chromium
rehype-katex
- remark
- remark-parse
- mdast-util-mdx
micromark-extension-mdxjs
- remark-stringify
In common
- hastscript
- hast-util-select
unified
vfile
- hast-util-to-html
remark-directive
- unist-util-visit
withastro
starlight
🌟 Build beautiful, accessible, high-performance documentation websites with Astro
TypeScript9.6kRead on November 14, 2026, at commit 6282133What is starlight built with?Only in starlight
- Astro
@docsearch/css
@docsearch/js
@astrojs/markdoc
astro-expressive-code
satteri
astrojs
hast-util-to-string
- mdast-util-directive
- mdast-util-to-markdown
yaml
- hast-util-format
- mdast-util-to-string
- ultrahtml
Side by side
mdxstarlight
SizeLines written by people and agents, without generated ones; code files, without tests.
mdx12,274 lines written46 code files
starlight31,765 lines written156 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
mdx0% of its commits signed by AI
starlight0.2% of its commits signed by AIWith Claude Code and Cursor
ActivityFrom GitHub and its history, on the day SeeRepo read it.
mdxLast push November 4, 20261,720 commits19,851 stars
starlightLast push November 13, 20263,876 commits9,584 stars
TestsThe files that test the code, and the share of code files a test imports.
mdx18 test files19.6% of its code files have a test that imports them
starlight158 test files43.6% of its code files have a test that imports them
Frequently asked questions
Which is bigger, mdx or starlight?
starlight, with 31,765 lines written; mdx has 12,274.
The proof: withastro/starlight's code at commit 6282133
Which has more GitHub stars, mdx or starlight?
mdx, with 19,851 stars; starlight has 9,584.
The proof: mdx-js/mdx on GitHub
Which has more tests, mdx or starlight?
starlight, with 158 test files; mdx has 18.
The proof: withastro/starlight's code at commit 6282133
Which was updated more recently, mdx or starlight?
starlight: its last push was on November 13, 2026, and mdx's on November 4, 2026.
The proof: withastro/starlight's commits on GitHub
Which has more commits signed by AI, mdx or starlight?
starlight: an AI signed 0.2% of its commits, with Claude Code and Cursor.
See inside your code, today.
Paste your repo and see it drawn, part by part: a medium one in under a minute.
Free, no account.

