tm-view
v1.0.8
Published
Browser-based viewer for Task Master AI projects
Maintainers
Readme
tm-view
Browser-based viewer for Task Master AI projects. View tasks, PRDs, Mermaid diagrams, and project statistics in a clean, intuitive interface.
Repository: github.com/pyrex41/tm-view
Features
- 📋 View all tasks in a hierarchical tree structure
- 🔍 Filter tasks by status, priority, and search
- 🏷️ Support for tagged task lists (multi-context projects)
- 📄 View PRD documents directly in the browser
- 📊 View Mermaid diagrams from anywhere in your repository
- 📈 Real-time statistics and project overview
- 🎨 Clean, dark-themed UI optimized for developer workflows
- 🔄 Hot-reload support for live updates
Installation
npm install -g tm-viewUsage
Navigate to any directory containing a Task Master project (with a .taskmaster folder) and run:
tm-viewThe viewer will automatically:
- Detect your Task Master project
- Start a local server (with smart port handling)
- Open your default browser to the viewer interface
Smart Port Handling
If port 3737 is already in use, tm-view automatically finds the next available port (up to 3746):
✓ Task Master Viewer running!
➜ Local: http://localhost:3738
(Port 3737 was busy, using 3738)
Project: /path/to/project
Press Ctrl+C to stopRequirements
- Node.js >= 16.0.0
- A Task Master AI project initialized with
task-master init
Project Structure
The viewer reads from your .taskmaster directory:
.taskmaster/
├── tasks/
│ └── tasks.json # Task data (required)
├── docs/ # PRD documents
│ ├── prd.txt
│ └── requirements.md
├── config.json # Task Master config
└── state.json # Current tag/stateFeatures in Detail
Task Viewing
- Hierarchical task tree with expand/collapse
- Task details panel with full information
- Dependency visualization
- Subtask navigation
Filtering
- Filter by task status (pending, in-progress, done, etc.)
- Filter by priority (low, medium, high, critical)
- Real-time search across task titles and descriptions
- Tag switching for multi-context projects
PRD Viewer
- Browse all PRD documents in your project
- View full document content
- Markdown rendering for
.mdfiles with beautiful formatting - Plain text display for
.txtfiles with syntax preservation
Mermaid Diagram Viewer
- Automatically finds all
.mmdand.mermaidfiles throughout your repository - Displays full file paths for easy navigation
- Live rendering of Mermaid diagrams with dark theme and optimized readability
- Excalidraw integration - One-click to copy and open diagrams in Excalidraw for editing
- Simple workflow: Automatically copies Mermaid content and opens Excalidraw in new tab
- Quick actions: Copy Mermaid content, Open file in Cursor editor, Open in Excalidraw
- Large, readable diagrams with 18px font size and enhanced spacing
- Supports all Mermaid diagram types (flowcharts, sequence diagrams, class diagrams, etc.)
- Export to PNG, SVG, or save edited diagrams directly from Excalidraw
- Error handling with source code display if rendering fails
Statistics
- Total task count
- Breakdown by status
- Breakdown by priority
- Tag-based statistics
Development
To work on tm-view locally:
# Clone and install dependencies
git clone [email protected]:pyrex41/tm-view.git
cd tm-view
npm install
# Test locally (no build step needed!)
npm link
cd /path/to/taskmaster/project
tm-viewTech Stack
- Backend: Express.js server with RESTful API
- Frontend: Vanilla JavaScript (no framework!)
- Styling: Custom CSS with dark theme
Why Vanilla JS?
This tool is intentionally built without React or any build step:
- Faster install: ~89 packages vs 150+ with React
- Zero build time: No compilation needed
- Lighter weight: Smaller footprint, faster startup
- Simple to modify: Just edit HTML/CSS/JS directly
- No dependencies bloat: Only essential packages
API Endpoints
The server exposes these endpoints:
GET /api/project- Project metadataGET /api/tasks- All tasks (supports both legacy and tagged formats)GET /api/tasks/:tag- Tasks for specific tagGET /api/prds- List of PRD documentsGET /api/prds/:filename- Specific PRD contentGET /api/mermaid- List of all Mermaid files in the repositoryGET /api/mermaid/*- Specific Mermaid file content (supports nested paths)GET /api/stats- Project statisticsGET /api/events- Server-Sent Events for hot-reload
License
MIT
Related Projects
- Task Master AI - The main task management system
