README.md

May 14, 2026 ยท View on GitHub

mdts

npm release CI codecov license

(M)ark(d)own (T)ree (S)erver
A zero-config CLI tool to preview your local Markdown files in a browser.
npx mdts โ€” and you're done.

๐Ÿ”— Try the Live Demo

mdts demo

๐Ÿ”ง 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

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

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

# 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!