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 🙏

© 2026 – Pkg Stats / Ryan Hefner

md-task-viewer

v0.2.4

Published

Launch a local task viewer/editor for markdown files with frontmatter

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 / WANT priority and TODO / DONE status
  • Drag-and-drop reordering
  • Persistent ordering via a dedicated metadata file
  • Auto-reload on external file changes
  • Read-only static build for browsing tasks from a phone or any static host (S3, Cloudflare Workers, Netlify, …) with optional AES-256-GCM encryption — see docs/build-readonly.md

Requirements

  • Node.js 24.0.0 or later

Quick Start

npx md-task-viewer [rootDir]

Examples:

npx md-task-viewer .
npx md-task-viewer ./tasks --port 4011 --no-open

If 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: TODO
createdAt: 2026-03-15T08:00:00.000Z
updatedAt: 2026-03-15T09:30:00.000Z
---

# Notes

Free-form body text.

Required frontmatter

  • title
  • priority: MUST or WANT
  • status: TODO or DONE
  • createdAt: UTC ISO 8601
  • updatedAt: UTC ISO 8601

Unknown frontmatter keys are preserved as-is.

Files missing required keys are displayed with default values and normalized on save.

Legacy status: WIP is treated as TODO when loaded and will be replaced with TODO 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 .md files (relative to rootDir). 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:

  • .git
  • node_modules
  • .md-task-viewer.json

Development

npm install

Build:

npm run build

Run locally:

npm run start:local

Unit / integration tests:

npm test

E2E tests:

npm run test:e2e

Read-only static build

You can build a viewer-only static bundle that ships your tasks as a single JSON snapshot — useful for browsing them from a phone or any device that can't run the Fastify backend. The output is a plain static directory you can serve from any static host (S3, Nginx, Cloudflare Workers, Netlify, …).

From an installed CLI (no clone needed):

# Generate a 256-bit AES-GCM key (optional but recommended)
md-task-viewer generate-key

# Build the static site
export MD_TASK_VIEWER_READONLY_KEY="<paste the key>"
md-task-viewer build-readonly /path/to/your/task/repo --out ./public

From a checkout of this repo:

npm run generate:key
export MD_TASK_VIEWER_READONLY_KEY="<paste the key>"
npm run build:readonly -- /path/to/your/task/repo
# Output: dist/client-readonly/ (encrypted) or dist/client-readonly-plain/

If MD_TASK_VIEWER_READONLY_KEY is unset the snapshot is shipped in plain text (with a build-time warning). When encrypted, an unlock modal in the browser asks for the key and keeps it in sessionStorage.

See docs/build-readonly.md for the encryption model, hosting examples, and a Cloudflare Workers (Static Assets) continuous deployment walkthrough.

Tech Stack

  • Node.js + TypeScript
  • Fastify
  • React
  • Vite
  • gray-matter
  • chokidar
  • @dnd-kit