🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@docmd/core

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@docmd/core

Build production-ready documentation from Markdown in seconds. No React, no bloat, just content.

latest
Source
npmnpm
Version
0.7.9
Version published
Maintainers
1
Created
Source

docmd logo

Build production-ready documentation from Markdown in seconds.
Zero setup when you start. Full control when you need it.

npm version downloads stars license

WebsiteDocumentationLive EditorReport Bug


docmd preview
docmd `default` theme preview split in light and dark mode

Quick Start

Run docmd instantly in any folder with Markdown files:

npx @docmd/core dev

Starts: http://localhost:3000

That’s it.

  • Navigation is generated automatically
  • Pages render instantly
  • Your docs are production-ready by default

Build your site:

npx @docmd/core build

Install for regular usage

npm install -g @docmd/core
docmd dev     # start dev server
docmd build   # build for deployment
docmd migrate   # migrate from other documentation tools (like Docusaurus, VitePress, MkDocs, etc.)
docmd deploy    # instantly generate docker, nginx, or caddy configs

Features

Designed to start instantly and scale without friction.

Instant by default

  • Automatic navigation from your files
  • Zero configuration required
  • Works directly with Markdown

Production-ready output

  • Static HTML generation
  • SEO optimised (sitemap, canonical, redirects)
  • Tiny JavaScript payload

Built-in capabilities

  • Internationalisation (i18n)
  • Versioning
  • Offline search
  • PWA support
  • Analytics
  • AI context (llms.txt)

Extensible when needed

  • Plugin support
  • Custom configuration and navigation
  • Theming
  • Programmatic API

See the full roadmap.

Project Structure

Keeps your project simple.

my-docs/
├── docs/
├── assets/
├── docmd.config.js (optional)
└── package.json

Live Editor

A browser-based editor for writing and previewing docs instantly. No setup required.

Try it: live.docmd.io

Configuration (optional)

No configuration is required to get started.

Add a config file (docmd.config.js in the project root) only when you need more control.

const { defineConfig } = require('@docmd/core');

module.exports = defineConfig({
  title: 'My Project',
  url: 'https://docs.myproject.com',
});

Common options

module.exports = defineConfig({
  // Versioning
  versions: {
    current: 'v2',
    all: [
      { id: 'v2', dir: 'docs' },
      { id: 'v1', dir: 'docs-v1' }
    ]
  },

  // Internationalisation
  i18n: {
    default: 'en',
    locales: [
      { id: 'en', label: 'English' },
      { id: 'zh', label: '中文' },
    ]
  }
});

Built-in support for: English, Hindi, Chinese, Spanish, German, Japanese, and French. You can easily add and support any other language.

Other common settings include src, out, navigation, plugins, and theming.

Programmatic usage

Use in scripts or CI pipelines:

const { build, buildLive } = require('@docmd/core');

await build('./docmd.config.js', { isDev: false });
await buildLive();

Need more?

Full configuration, plugins, and advanced usage: docs.docmd.io

Plugin Ecosystem

Core functionality is included by default.

Everything works out of the box.

Plugins are only needed when you want to extend functionality.

PluginIncludedDescription
searchOffline full-text search with fuzzy matching
seoSEO tags and Open Graph metadata
sitemapGenerates sitemap.xml
gitGit commit history logger
analyticsLightweight analytics integration
llmsAI context generation (llms.txt)
mermaidMermaid diagrams in Markdown
openapiBuild-time OpenAPI 3.x spec renderer
pwaOptionalProgressive Web App support for offline navigation
threadsOptionalInline discussion threads (by @svallory)
mathOptionalKaTeX/LaTeX math rendering

Install optional plugins:

docmd add <plugin-name>

Why docmd?

FeaturedocmdDocusaurusMkDocsVitePressMintlify
LanguageNode.jsReact.jsPythonVueSaaS
Require ConfigNone (Auto)docusaurus.config.jsmkdocs.ymlconfig.mtsmint.json
Multi-projectNativePluginPluginNoNo
Initial payload~18kb~250kb~40kb~50kb~120kb
NavigationInstant SPAReact SPAFull reloadsVue SPAHosted SPA
VersioningNativeNative (complex)mike pluginManualNative
i18nNativeNative (complex)Plugin-basedManualNative
SearchBuilt-inAlgolia (cloud)Built-inMiniSearchCloud
AI ContextBuilt-inManualNoneNoneProprietary
PWAPluginCommunity pluginNoneNoneHosted
Self-hostedYesYesYesYesNo
CostFree (OSS)Free (OSS)Free (OSS)Free (OSS)Freemium

Starts simple. Scales without friction.

Philosophy

Documentation tools should disappear.

Focus on writing, not setup.

No configuration overhead. No framework complexity. Just docs.

Community & Support

License

MIT License. See LICENSE for details.

Keywords

docmd

FAQs

Package last updated on 07 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts