Configs2026年7月19日·1 分钟阅读

CodiMD — Real-Time Collaborative Markdown Notes

CodiMD is a self-hosted real-time collaborative markdown editor. Multiple users can edit the same document simultaneously with live preview, similar to Google Docs but for markdown.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 66/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
CodiMD — Real-Time Collaborative Markdown Notes
先审查命令
npx -y tokrepo@latest install 592f5f5f-8391-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

Introduction

CodiMD is an open-source, self-hosted collaborative markdown editor originally forked from HackMD. It allows multiple users to edit markdown documents together in real time with instant preview. It supports diagrams, math equations, and slide presentations within markdown.

What CodiMD Does

  • Enables real-time collaborative editing of markdown documents with live cursors
  • Renders markdown with support for tables, diagrams, math (KaTeX), and code highlighting
  • Provides slide mode to turn markdown documents into presentations
  • Supports multiple authentication methods including OAuth, LDAP, and SAML
  • Stores documents in a PostgreSQL or MySQL database with revision history

Architecture Overview

CodiMD is a Node.js application using Express for the web server and Socket.IO for real-time collaboration. The operational transformation engine synchronizes edits across connected clients. Documents are stored in a relational database (PostgreSQL or MySQL), and file uploads can be directed to local storage or S3-compatible backends. The frontend uses CodeMirror as the editor component.

Self-Hosting & Configuration

  • Deploy with Docker using the official hackmdio/hackmd image and a database container
  • Configure the database connection via CMD_DB_URL environment variable
  • Set up authentication with environment variables for GitHub, Google, LDAP, or SAML
  • Configure file upload storage to local disk, S3, or Azure Blob Storage
  • Use a reverse proxy like Nginx for HTTPS termination in production

Key Features

  • Real-time collaboration: multiple users edit simultaneously with live sync
  • Rich markdown: diagrams (Mermaid), math (KaTeX), and syntax-highlighted code blocks
  • Slide mode: convert any document into a reveal.js presentation
  • Flexible auth: supports local accounts, OAuth providers, LDAP, and SAML
  • Revision history: browse and restore previous versions of any document

Comparison with Similar Tools

  • HackMD: the commercial hosted version; CodiMD is the self-hosted open-source fork
  • HedgeDoc: a community fork of CodiMD with continued development under a new name
  • Etherpad: real-time editor but plain text only; CodiMD provides full markdown rendering
  • Outline: wiki-style knowledge base; CodiMD is focused on quick collaborative notes

FAQ

Q: What is the relationship between CodiMD, HackMD, and HedgeDoc? A: HackMD is the commercial product. CodiMD was the open-source self-hosted version. The community later forked CodiMD into HedgeDoc for independent development.

Q: What database backends are supported? A: PostgreSQL, MySQL, MariaDB, and SQLite are all supported.

Q: Can I export documents? A: Yes. Documents can be exported as markdown, HTML, or raw text from the editor interface.

Q: Is there a mobile app? A: There is no dedicated mobile app, but the web editor works in mobile browsers with responsive layout.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产