md-task-viewer
v0.1.5
Published
Launch a local task viewer/editor for markdown files with frontmatter
Maintainers
Readme
md-task-viewer
A local task viewer/editor that treats Markdown files as tasks.
Each Markdown file (1 file = 1 task) is managed through a browser UI, and all changes are written back to local files.
Features
- List Markdown tasks
- Create, edit, and delete tasks
- Frontmatter-based
MUST/WANTpriority andTODO/WIP/DONEstatus - Drag-and-drop reordering
- Persistent ordering via a dedicated metadata file
- Auto-reload on external file changes
Requirements
- Node.js
18.18.0or later
Quick Start
npx md-task-viewer [rootDir]Examples:
npx md-task-viewer .
npx md-task-viewer ./tasks --port 4011 --no-openIf rootDir is omitted, the current directory is used.
CLI Options
--port <number>: Port to listen on--host <host>: Host to bind to (default:127.0.0.1)--no-open: Do not open the browser automatically
Task Format
Each Markdown file should have frontmatter with the following keys:
---
title: Release notes
priority: MUST
status: WIP
createdAt: 2026-03-15T08:00:00.000Z
updatedAt: 2026-03-15T09:30:00.000Z
---
# Notes
Free-form body text.Required frontmatter
titlepriority:MUSTorWANTstatus:TODO,WIP, orDONEcreatedAt: UTC ISO 8601updatedAt: UTC ISO 8601
Unknown frontmatter keys are preserved as-is.
Files missing required keys are displayed with default values and normalized on save.
Files with unparseable YAML frontmatter are excluded from the list and shown in the error panel.
Ordering Metadata
Settings are stored in .md-task-viewer.json at the root directory:
{
"version": 1,
"taskDirs": ["."],
"order": [
"alpha.md",
"planning/release-notes.md"
]
}taskDirs: Directories to scan for.mdfiles (relative torootDir). Defaults to["."].order: Task display order.
File Discovery
Directories listed in taskDirs are scanned recursively. The following extensions are treated as tasks:
.md.markdown
The following are excluded:
.gitnode_modules.md-task-viewer.json
Development
npm installBuild:
npm run buildRun locally:
npm run start:localUnit / integration tests:
npm testE2E tests:
npm run test:e2eTech Stack
- Node.js + TypeScript
- Fastify
- React
- Vite
gray-matterchokidar@dnd-kit
