npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

tm-view

v1.0.8

Published

Browser-based viewer for Task Master AI projects

Readme

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:

  1. Detect your Task Master project
  2. Start a local server (with smart port handling)
  3. 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 [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-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

Related Projects