New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tm-view

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-view

Browser-based viewer for Task Master AI projects

latest
Source
npmnpm
Version
1.0.8
Version published
Maintainers
1
Created
Source

tm-view

GitHub npm version License: MIT

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-view

Usage

Navigate to any directory containing a Task Master project (with a .taskmaster folder) and run:

tm-view

The 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 stop

Requirements

  • 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/state

Features 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 .md files with beautiful formatting
  • Plain text display for .txt files with syntax preservation

Mermaid Diagram Viewer

  • Automatically finds all .mmd and .mermaid files 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 git@github.com:pyrex41/tm-view.git
cd tm-view
npm install

# Test locally (no build step needed!)
npm link
cd /path/to/taskmaster/project
tm-view

Tech 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 metadata
  • GET /api/tasks - All tasks (supports both legacy and tagged formats)
  • GET /api/tasks/:tag - Tasks for specific tag
  • GET /api/prds - List of PRD documents
  • GET /api/prds/:filename - Specific PRD content
  • GET /api/mermaid - List of all Mermaid files in the repository
  • GET /api/mermaid/* - Specific Mermaid file content (supports nested paths)
  • GET /api/stats - Project statistics
  • GET /api/events - Server-Sent Events for hot-reload

License

MIT

Keywords

task-master

FAQs

Package last updated on 22 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts