Loading...
Loading...
[Content] Background HTTP server rendering markdown files with calm, book-like reading experience.
npx skill4agent add duc01226/easyplatform markdown-novel-viewer[IMPORTANT] Useto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.TaskCreate
npm install/preview--host 0.0.0.0# Option 1: Install via ClaudeKit CLI (recommended)
ck init # Runs install.sh which handles all skills
# Option 2: Manual installation
cd .claude/skills/markdown-novel-viewer
npm installmarkedhighlight.jsgray-matter# View a markdown file
node .claude/skills/markdown-novel-viewer/scripts/server.cjs \
--file ./plans/my-plan/plan.md \
--open
# Browse a directory
node .claude/skills/markdown-novel-viewer/scripts/server.cjs \
--dir ./plans \
--host 0.0.0.0 \
--open
# Background mode
node .claude/skills/markdown-novel-viewer/scripts/server.cjs \
--file ./README.md \
--background
# Stop all running servers
node $HOME/.claude/skills/markdown-novel-viewer/scripts/server.cjs --stop/preview/preview plans/my-plan/plan.md # View markdown file
/preview plans/ # Browse directory
/preview --stop # Stop serverTSLeft/RightEscape| Option | Description | Default |
|---|---|---|
| Markdown file to view | - |
| Directory to browse | - |
| Server port | 3456 |
| Host to bind ( | localhost |
| Auto-open browser | false |
| Run in background | false |
| Stop all servers | - |
scripts/
├── server.cjs # Main entry point
└── lib/
├── port-finder.cjs # Dynamic port allocation
├── process-mgr.cjs # PID file management
├── http-server.cjs # Core HTTP routing (/view, /browse)
├── markdown-renderer.cjs # MD→HTML conversion
└── plan-navigator.cjs # Plan detection & nav
assets/
├── template.html # Markdown viewer template
├── novel-theme.css # Combined light/dark theme
├── reader.js # Client-side interactivity
├── directory-browser.css # Directory browser styles| Route | Description |
|---|---|
| Markdown file viewer |
| Directory browser |
| Static assets |
| Local file serving (images) |
httpfspathnetmarkedhighlight.jsgray-matternpm installassets/novel-theme.css--bg-primary: #faf8f3; /* Warm cream */
--accent: #8b4513; /* Saddle brown */--bg-primary: #1a1a1a; /* Near black */
--accent: #d4a574; /* Warm gold */--content-width: 720px;# Start with 0.0.0.0 to bind to all interfaces
node server.cjs --file ./README.md --host 0.0.0.0 --port 3456--host 0.0.0.0{
"success": true,
"url": "http://localhost:3456/view?file=...",
"networkUrl": "http://192.168.2.75:3456/view?file=...",
"port": 3456
}networkUrl/tmp/md-novel-viewer-*.pid--host 0.0.0.0