GitPedia

Mdts

A local markdown preview server. npx mdts — and you're done.

From unhappychoice·Updated June 26, 2026·View on GitHub·

A zero-config CLI tool to preview your local Markdown files in a browser. The project is written primarily in TypeScript, distributed under the MIT License license, first published in 2025. Key topics include: cli, filesystem, frontmatter, live-reload, markdown.

Latest release: v0.20.3
June 1, 2026View Changelog →
<h1 align="center"> <img src="docs/images/logo.svg" alt="mdts" width="400"> </h1> <p align="center"> <a href="https://www.npmjs.com/package/mdts"><img src="https://img.shields.io/npm/v/mdts.svg?style=flat-square&color=1e3a8a" alt="npm"></a> <a href="https://github.com/unhappychoice/mdts/releases"><img src="https://img.shields.io/github/v/release/unhappychoice/mdts?style=flat-square&color=0f172a&label=release" alt="release"></a> <a href="https://github.com/unhappychoice/mdts/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/unhappychoice/mdts/test.yml?branch=main&style=flat-square&label=CI" alt="CI"></a> <a href="https://codecov.io/gh/unhappychoice/mdts"><img src="https://img.shields.io/codecov/c/github/unhappychoice/mdts?style=flat-square" alt="codecov"></a> <a href="https://github.com/unhappychoice/mdts/blob/main/LICENSE.md"><img src="https://img.shields.io/npm/l/mdts.svg?style=flat-square" alt="license"></a> </p> <p align="center"> (<strong>M</strong>)ark(<strong>d</strong>)own (<strong>T</strong>)ree (<strong>S</strong>)erver <br> A zero-config CLI tool to preview your local Markdown files in a browser. <br> <strong>npx mdts</strong> — and you're done. </p> <p align="center"> <a href="https://mdts-unhappychoice.netlify.app" target="_blank"> <strong>🔗 Try the Live Demo</strong> </a> </p> <p align="center"> <img src="docs/images/screen_animation.gif" width="640" alt="mdts demo"> </p>

🔧 Features

  • Instant Markdown Preview – Run and view in seconds
  • 🌐 Web UI – Clean, tree-based browser interface with three-panel layout
  • 🔄 Live Reload – Automatically refreshes on file changes
  • 🧘 Zero Setup – No config, no install, no nonsense
  • 🎨 Custom Themes – 20+ beautiful application themes and syntax highlighting options

🚀 Quick Start

bash
npx mdts

This starts a local server at http://localhost:8521 and opens your browser.
Your current directory becomes a browsable Markdown tree.

💡 Use Cases

  • Reviewing AI-generated docs
  • Quickly checking README or note folders
  • Lightweight local Markdown wiki

See detailed use cases for more examples and workflows.

📦 Requirements

  • Node.js
  • No installation needed – uses npx

🛠 Options

bash
npx mdts [directory] [options]
OptionDescriptionExample
[directory]Directory to serve (default .)./docs
--glob, -gGlob patterns to filter markdown files-g 'docs/*.md' 'specs/*.md'
--host, -HHost to listen on (default localhost)0.0.0.0
--port, -pPort to serve on (default 8521)8000
--silent, -sSuppress server logs (default false)
--no-openDo not open the browser automatically
--version, -VOutput version number
--help, -hDisplay help for command

Examples

bash
# Serve current directory (all markdown files) npx mdts # Serve a specific directory npx mdts ./docs # Filter with glob patterns (only matching files are shown) npx mdts ./project -g 'docs/**/*.md' 'README.md' # Combine options npx mdts ./monorepo -g 'packages/*/README.md' --port 3000 --no-open

📚 Documentation

🔗 Live Demo

Experience mdts in action with real examples and interactive features.

📖 Documentation

Contributing

Found a bug? Have an idea? Want to send a PR?
See CONTRIBUTING.md for details — we'd love to have your help!

Author

@unhappychoice

Support

If you find this project useful, please consider:

Every bit of support helps. Thanks!

Contributors

Showing top 6 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from unhappychoice/mdts via the GitHub API.Last fetched: 6/29/2026