markdown-editor-with-chat

Lightweight markdown editor with optional OpenClaw gateway chat. Filesystem-based, no database required.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "markdown-editor-with-chat" with this command: npx skills add musketyr/markdown-editor-with-chat

Markdown Editor with Chat

A lightweight, self-contained markdown editor that serves files from a local directory with optional OpenClaw gateway chat integration.

Features

  • Filesystem-based: Point to any directory containing markdown files
  • No database: Files are the source of truth
  • Folder navigation: Browse nested directories
  • Live preview: See rendered markdown as you type
  • Optional chat: Connect to OpenClaw gateway for AI assistance
  • Zero external dependencies: Pure Node.js, self-contained HTML

Quick Start

# Start with CLI arguments (recommended)
node scripts/server.mjs --folder /path/to/markdown --port 3333

# Or short form
node scripts/server.mjs -f /path/to/markdown -p 3333

# With gateway chat enabled (via env vars)
export OPENCLAW_GATEWAY_URL=http://127.0.0.1:18789
export OPENCLAW_GATEWAY_TOKEN=your-token
node scripts/server.mjs -f /path/to/markdown

Then open http://localhost:3333 in your browser.

CLI Arguments

ArgumentShortRequiredDefaultDescription
--folder-fYes*-Directory containing markdown files
--port-pNo3333Server port
--host-hNo127.0.0.1Server host (localhost only by default)
--helpNoShow help message

*Required unless MARKDOWN_DIR env var is set.

Environment Variables (fallback)

VariableRequiredDefaultDescription
MARKDOWN_DIRYes*-Directory containing markdown files
PORTNo3333Server port
HOSTNo127.0.0.1Server host
OPENCLAW_GATEWAY_URLNo-Gateway URL for chat feature
OPENCLAW_GATEWAY_TOKENNo-Gateway auth token

CLI arguments take precedence over environment variables.

Security

  • Localhost only by default: Server binds to 127.0.0.1, rejects public IPs
  • Same-origin only: No CORS headers, browser enforces same-origin policy
  • Path traversal protection: Cannot access files outside MARKDOWN_DIR
  • No credentials in code: All secrets via environment variables
  • Gateway proxy: Tokens never exposed to browser

This is a local development tool. The API is intentionally simple (no auth) because it's designed for localhost use on directories you control.

API Endpoints

  • GET / - Serves the editor UI
  • GET /api/files - List files and folders
  • GET /api/files/:path - Get file content
  • PUT /api/files/:path - Save file content
  • POST /api/files/:path - Create new file
  • POST /api/chat - Proxy chat to gateway (if configured)

Use Cases

  • Browse and edit OpenClaw pearls
  • Personal markdown wiki
  • Note-taking with AI assistance
  • Documentation browser

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Hetu Lyrics Blessing

A daily lyrics blessing skill that sends a random Hetu (河图) song lyric to a designated recipient every day at 23:00. Lyrics are fetched from Baidu Baike usin...

Registry SourceRecently Updated
General

X Engagement

X/Twitter 运营辅助。完整 onboarding → Persona 学习 → Browser Relay 浏览器控制 → 记忆系统 → 手动提醒模板 → For You 关注建议 → Following 互动建议

Registry SourceRecently Updated
General

Teleskopiq

Creates and manages AI-generated YouTube scripts, metadata, thumbnails, and schedules via a GraphQL API with specialized Markdown tags for production.

Registry SourceRecently Updated
General

Finance Accounting

财务会计文书处理综合技能包 - 包含记账、对账、税务、报表等核心功能

Registry SourceRecently Updated