Open-source project
pngwn/MDsveX avatar
pngwn/MDsveX

mdsvex lists six packages and has published eight

A markdown preprocessor for Svelte.

3,087 stars129 forksJavaScriptMIT

At a glance

What is it?
mdsvex lets you write Svelte components with markdown in them. The repository readme is 181 words: a title, a one line description, a package list and a contribution note. The detail is in the manifest, where the root version is still a patch release while the newest tags are a one point zero pre-release, two published packages are missing from the list, a third package name appears only in the scripts, and a browser automation library sits in the runtime dependencies.
Who is it for?
mdsvex fits a Svelte project that wants documentation pages and component examples authored as prose rather than as template markup, and that is comfortable wiring a preprocessor into its build. Three things to check before you commit.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly JavaScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • pngwn/MDsveX3,087 ★ · +31
Star history
Repository2026-09-242026-11-25
pngwn/MDsveX3.1k3.1k

31 Stars in the last 62 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Two released packages are not in the list

The readme's package list has six entries and describes each in one line: the documentation site, the preprocessor itself, a parser that turns a Svelte component into an AST, a specification for that AST with TypeScript definitions, a stringifier that turns the AST back into a component, and utilities for working with the tree.

The release list has eight names. Two of them are scoped packages under the project's own namespace and appear in neither the list nor the tree description: a TypeScript language service plugin and a source map package. Both have a zero point one pre-release tag from the same day in September 2026.

So the package list is behind the releases by two packages, and both of the missing ones are the kind of thing a user would look for. A source map package is what you install when your editor or your stack trace points at the wrong line, and a language service plugin is what makes type errors appear inside a component. Neither is discoverable from the readme.

That is a small thing in isolation. It matters more because the list is the entire documentation the repository offers: there is no usage section, no configuration section, and no options table anywhere in the file.

A third package name appears only in the scripts

The scripts mention a package that appears nowhere else in the repository's visible documentation.

The end-to-end test script filters the workspace to one package by name and runs its test script. The release script filters two packages out of the build. Both refer to a demo package that the readme's list does not contain, and neither of the two names matches any of the six listed packages.

Reading the scripts gives you a better picture of the repository's shape than the package list does. There is a documentation site, which is excluded from the recursive test run and from the release build. There is a demo package, also excluded from the release build but included in the test run. And there is the published set, which is what the version and publish commands act on.

That is a sensible layout for a project that ships a library plus a demo plus a documentation site from one checkout. It is also a layout where the readme, the scripts and the release tags each know something the others do not.

Playwright is a runtime dependency

The dependency list for a markdown preprocessor has ten entries and one of them is a browser automation framework.

Not a development dependency. A runtime one, in the same list as the bundler plugins and a small runtime helper.

That means anyone who installs the preprocessor installs a browser driver, whether or not they ever render a component in a browser. For a package whose whole job is to transform text at build time, that is a large transitive tree to put in everyone's install, and it is the kind of thing that shows up as a slow install and a confusing vulnerability report rather than as a bug.

The rest of the list is more explicable. Five of the ten are bundler plugins: common module interop, JSON handling, node resolution, a replacement transform and a fast transpiler alternative. The transpiler one is the interesting choice, because it explains why a markdown preprocessor can afford to parse Svelte with a faster tool than a full compiler toolchain, and it is also why the transpiler is a runtime dependency rather than something the bundler pulls in.

The file makes no speed claim anywhere. The dependency list makes one implicitly.

Node 14 types and a package-manager floor

Two version numbers in this manifest are worth reading together.

The type definitions for the runtime are pinned at a version from the Node 14 era. So the project type-checks against an API surface from several major versions ago while its tooling, its bundler, its test runner and its package manager are all current.

And the declared engine constraint is not a Node version at all. The only entry in it is a range on the package manager, and a separate field pins that package manager to an exact version, so contributors are held to one exact release of the tool rather than to a minimum runtime.

Neither choice is wrong. Type definitions pinned conservatively produce fewer false positives when the library is consumed from an older runtime, which matters for a build-time tool. And pinning the package manager exactly is what a workspace with several packages and a lock file wants.

What is missing is the thing a consumer would check first. Nothing in the manifest states which Node versions the preprocessor supports.

Three addresses for one documentation site

The documentation has three references and two of them are different domains.

The readme's link is a bare domain in the project's own name. The repository's recorded homepage is a subdomain of the author's personal domain. And the first entry in the package list is the documentation website, linked to its directory in the repository rather than to a URL at all.

So a reader arriving from the repository page, from a search result, and from the readme can end up in three places, one of which is not a website but a source directory.

None of this is harmful on its own. Domains change, personal sites get reorganised, and linking the site to the code that builds it has its own logic. What it costs is the thing the site is supposed to prevent: for a preprocessor whose entire documentation lives off-repository, having two live domains and one that points at source is the kind of drift nobody notices until someone files a bug against the wrong one.

Four of the six packages are one round trip

Read the package list as a pipeline rather than as a list and the design becomes clear.

A Svelte component goes in one side and comes out of the other, and between those two points there is an intermediate representation with its own specification, its own parser and its own stringifier.

So the markdown preprocessor is not doing regular expression substitution over template text. It parses a component into a tree that has its own typed definition, and it rebuilds a component from that tree. The utilities package handles the tree in between.

That is a substantially larger design than the readme's one-line description implies, and it is also why the preprocessor can be applied to a component that already contains markup, scripts and styles: it is working on a representation of the component rather than on its text.

The cost of that choice is a published AST format. Anyone building tooling on top of this library, an editor plugin or a transform of their own, is depending on a specification the maintainer wrote, in a package that the readme lists without describing its stability guarantees.

Every pull request needs a changeset, except documentation ones

The contribution section is the longest part of the readme and it is about process rather than about code.

Pull requests are welcome, the project uses a changelog tool to manage both changelogs and version numbers, and every pull request needs a file describing which packages change and how. Documentation pull requests are explicitly exempt.

Then two sentences that make this one of the friendlier contribution notes I have read in this batch. If you know how the changelog tool works, add the file yourself. If you do not, the maintainer says he is happy to add it, and mentions a small robot that will add some details to the pull request when you open it, if you want to learn more.

That is a maintainer absorbing the single most common friction point in a changesets-based repository, and doing it in the open rather than by asking.

It is also the only contribution guidance in the repository. There is no code of conduct, no style guide, no branch naming convention and no review expectations in the visible file, which for a project inviting outside contributions is a thin set of instructions to work from.

Editorial conclusion

mdsvex fits a Svelte project that wants documentation pages and component examples authored as prose rather than as template markup, and that is comfortable wiring a preprocessor into its build. Three things to check before you commit. Read the documentation site rather than the repository readme, because the file in the repository documents nothing about usage and its package list is already behind the release tags. Look at what the install pulls in, since a markdown preprocessor here depends on a bundler plugin set, a fast transpiler and a browser automation library at runtime. And check the version you are pinning against, because the manifest and the tags disagree about whether you are on the zero or the one line.

Frequently asked questions

how to use mdsvex

The repository readme does not document usage. It gives a one line description, a link to the documentation site, a list of the packages in the monorepo and a note about contributing. Any configuration, options or worked example is on the documentation website rather than in this repository.

mdsvex vscode

Nothing in this repository provides editor integration. There is a language service plugin published under the project's namespace with its own pre-release tag, and a contributor configuration directory for the editor, but neither is described in the readme and there is no extension here.

Is Svelte its own language?

The readme does not discuss it. What the package list makes clear is that this project's approach is to treat a Svelte component as a structured thing: there is a parser producing an abstract syntax tree, a specification for that tree, and a stringifier turning the tree back into a component.

What is Svelte used for?

For building user interfaces as components, and this project exists because those components need prose in them. Its preprocessor lets a component's documentation and example text be written as markdown rather than as template markup, which is a build-time transform rather than a runtime feature.

What is the current version of mdsvex?

The two disagree. The repository manifest declares a zero point eight patch release, while the newest release tags are a one point zero pre-release for the preprocessor and zero point one pre-releases for two other packages in the same namespace that the readme does not list.

Official sources

  1. License: MIT
  2. pngwn/MDsveX on GitHub
  3. Project website
  4. README
  5. Releases
Community

Where developers are discussing it

Posts on Hacker News, dev.to and Lobsters that link to this repository, found by our scan of those communities. 0 in the last 30 days; newest first.

Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/pngwn-mdsvex.svg)](https://hysenlabs.com/projects/pngwn-mdsvex)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/pngwn-mdsvex.svg)](https://hysenlabs.com/projects/pngwn-mdsvex)

Was this useful?