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

@pilaniaanand/git-pm

v0.0.1

Published

Git-native project management CLI with a plugin and lifecycle hook system.

Readme

git-pm

Git-native project management. Tasks live in your repo — no cloud, no account, no service.

git-pm tracks tasks, due dates, and assignments directly inside your Git repository. Pick a storage strategy: a committed JSON file that moves with your branches, or invisible Git object storage that leaves zero workspace footprint.


Contents


Quick start

# run without installing (no account required)
npx git-pm init

# or install globally
npm install -g git-pm
git-pm init

# local development / contributing
git clone https://github.com/anandpilania/git-pm
cd git-pm
npm install
npm link        # makes git-pm available as a global command pointing to this checkout

You will be prompted to choose a storage strategy. After that every command is available.

git-pm add "Fix auth middleware"
git-pm board
git-pm move 1 done

Node ≥ 18 required.


Storage strategies

| | Strategy A | Strategy B | | ----------------------- | --------------------------------------------- | ---------------------------------------------------------- | | Storage | .project-pm/tasks/ (one JSON file per task) | refs/notes/project-pm (Git object store) | | Workspace footprint | One directory, committed alongside code | Zero files — invisible to ls and git status | | Branch behaviour | Tasks follow branch checkouts | Tasks are branch-independent | | Best for | Teams who version tasks with features | Individuals who want zero clutter | | Sync | Normal git push / git pull | Requires explicit ref push (see below) |

Switch strategies at any time without data loss:

git-pm migrate

Commands

Core

| Command | Description | | ------------------------------------------------------------------------ | ----------------------------------------------------------------------- | | git-pm init [--strategy=A\|B] | Initialize tracking for this repository | | git-pm status | Show active strategy, config path, storage target | | git-pm add "<title>" [--priority=high\|medium\|low] [--due=YYYY-MM-DD] | Create a task | | git-pm next | Show your highest-priority open task | | git-pm start <id> | Move a task to IN-PROGRESS | | git-pm done <id> | Mark a task complete | | git-pm move <id> <todo\|ip\|done> | Change task status (ip = IN-PROGRESS) | | git-pm edit <id> <new title> | Rename a task | | git-pm assign <id> <user> | Reassign task ownership (records assigner) | | git-pm dates <id> <due\|escal> <YYYY-MM-DD> | Set due date or escalation date (records escalator) | | git-pm delete <id> | Remove a task permanently | | git-pm board [--all] | Kanban board sorted by priority (DONE hidden by default) | | git-pm log | Show completed tasks with completion dates | | git-pm stats | Health metrics — open count, priority breakdown, per-user | | git-pm ui | Launch interactive TUI dashboard (14 screens — see below) | | git-pm serve [--port=N] [--dev] | Start browser UI server (auto-builds on first run; --dev enables HMR) | | git-pm migrate | Switch storage strategy, preserving all data | | git-pm uninit | Deactivate tracking (soft) or purge all data (hard) |

Bundled plugins

| Command | Description | | -------------------------- | -------------------------------------------------------------------------- | | git-pm standup [user] | Daily standup report — active work, queue, completed, alerts | | git-pm search <keyword> | Search tasks by title, assignee, or status | | git-pm archive | Vault DONE tasks to .project-pm/history-archive.json and clear the board | | git-pm critical | Show only escalated and overdue tasks | | git-pm mywork [user] | Filter board to tasks assigned to you (or a specific user) | | git-pm summary | Write a PROGRESS.md report to the project root | | git-pm export-csv | Export all tasks to project-metrics.csv | | git-pm changelog | Print the changelog of completed tasks | | git-pm githook [install] | Install git-pm context into .git/hooks/prepare-commit-msg |


Interactive TUI (git-pm ui)

A full-featured terminal dashboard with 14 screens:

| Screen | What it does | | -------------------------- | -------------------------------------------------------------------- | | Board | Kanban view with priority badges and alert indicators | | Add task | Create task — title → priority → pick assignee from git contributors | | Edit task | Rename a task title | | Delete task | Remove a task (with confirmation) | | Move a task | Change status (TODO / IN-PROGRESS / DONE) | | Assign a task | Pick from git contributors or enter manually; records assigner | | Set dates | Set due date or escalation date for any task; records escalator | | Stats | Project totals and per-user breakdown | | Next task | Shows your highest-priority open task; falls back to unassigned | | Done log | Completed tasks sorted by completion date | | Archive DONE | Move completed tasks to the archive ledger | | Project settings | Shows current strategy and .gitpmrc path | | Plugin & hook registry | Lists all loaded plugins and hooks with scope labels | | Exit | Quit |


Browser UI (git-pm serve)

# Production (auto-builds ui/dist on first run)
git-pm serve

# Development — starts Vite dev server with HMR, API on :4321
git-pm serve --dev
# Then open http://localhost:5173

# Custom port
git-pm serve --port=8080

Features

  • Board view — drag-and-drop kanban with inline edit/delete on every card; next-task banner for the current git user
  • Stats view — summary tiles (total / open / done / overdue / escalated) + per-user breakdown table
  • Log view — completed tasks sorted by completion date
  • Archive view — archived tasks ledger; "Archive DONE" button to batch-archive

REST API

The server also exposes a JSON API on the same port:

| Method | Path | Description | | -------- | --------------------- | -------------------------------------------------------- | | GET | /api/tasks | All tasks | | POST | /api/tasks | Create task (title, priority, assignee, dueDate) | | PUT | /api/tasks/:id | Edit task (any field) | | DELETE | /api/tasks/:id | Delete task | | POST | /api/tasks/:id/move | Change status ({ status }) | | GET | /api/users | Git contributors (from git log) | | GET | /api/me | Current git user ({ user }) | | GET | /api/stats | Summary + per-user stats object | | GET | /api/archive | Archived tasks ledger | | POST | /api/archive | Archive all DONE tasks |


Plugin system

A plugin adds a new git-pm <command> subcommand. It is a plain .js file that exports a handler function.

src/plugins/        ← Core (ships with git-pm)
~/.config/git-pm/   ← Global (your personal installs)
<git root>/         ← Local (repo-specific, not committed by default)

Files must be named gitpm-plugin-<name>.js. The <name> becomes the CLI subcommand.

A plugin can optionally also export a hooks object to tap lifecycle events — the same file can add both a command and background automation (see the changelog plugin for a real example of this dual-role pattern).


Hook system

A hook registers background lifecycle listeners. It never appears in git-pm help and has no CLI command. It runs silently in response to core events.

src/hooks/          ← Core (ships with git-pm)
~/.config/git-pm/   ← Global
<git root>/         ← Local

Files must be named gitpm-hook-<name>.js.

Bundled hooks

| File | Type | Description | | ----------------------- | ------------------ | ----------------------------------------------------------------------- | | gitpm-hook-autotag | pre-write filter | Trims whitespace from task titles on every save | | gitpm-hook-branchname | pre-write filter | Auto-transitions the task matching the current branch ID to IN-PROGRESS | | gitpm-hook-deadlines | pre-write filter | Warns to console when open tasks carry a past due date | | gitpm-hook-slack | post-move event | Webhook stub — uncomment and configure to ping Slack on status change | | gitpm-hook-audit | post-* events | Appends a structured line to .project-pm/audit.log on every mutation |

Hook types

Filter hooks (pre-write) — synchronous, chainable. Each listener receives the return value of the previous one. Must return the task array.

Event hooks (post-add, post-move, post-assign, post-dates, post-delete) — async, fire-and-forget. All listeners run concurrently. A thrown error is caught and logged; it never aborts peer listeners.


Scope

When git-pm starts, it scans three directories in order:

  1. src/plugins/ or src/hooks/ — Core (bundled, always present)
  2. ~/.config/git-pm/ — Global (user-level, shared across projects)
  3. <git root>/ — Local (project-specific, opt-in)

A later scope overrides an earlier one with the same name. This lets you override a Core plugin with a project-specific version by naming your local file identically.


Writing a plugin

Copy examples/gitpm-plugin-example.js to your git root (or ~/.config/git-pm/) and rename it gitpm-plugin-<name>.js.

Minimum required exports:

export const description = "Shown in git-pm help";

export function handler(args, context) {
    const { ui, engine } = context;

    const tasks = engine.read();       // → Task[]
    // ... do something ...
    engine.write(tasks);               // runs pre-write hooks automatically
}

The full context object:

| Property | Type | Description | | --------------- | ------------- | --------------------------------------------------------------------------------------- | | ui | object | Logger — ui.info(), ui.warn(), ui.error(), ui.success(), ui.log(), ui.color | | engine | object | Hooked storage — engine.read() → Task[], engine.write(tasks) | | hooks | HookMediator | Event bus — hooks.on(), hooks.triggerFilter(), hooks.triggerEvent() | | storageFacade | StorageEngine | Raw strategy access for advanced use |

Task schema

{
    id:             number,            // Unix timestamp (ms) at creation
    title:          string,
    status:         'TODO' | 'IN-PROGRESS' | 'DONE',
    priority:       'high' | 'medium' | 'low',
    assignee:       string,            // git user.name, or 'Unassigned'
    assigner:       string,            // who assigned it (git user.name)
    assignedDate:   'YYYY-MM-DD',
    dueDate:        'YYYY-MM-DD' | null,
    escalationDate: 'YYYY-MM-DD' | null,
    escalator:      string | undefined, // who set the escalation date
    completedAt:    'YYYY-MM-DD' | undefined,  // set automatically on DONE
    archivedAt:     string | undefined,        // ISO timestamp, set by archive
    // Computed at read time (never stored):
    isBacklog:      boolean,           // open task where dueDate < today
    isEscalated:    boolean,           // open task where escalationDate <= today
}

Writing a hook

Copy examples/gitpm-hook-example.js to your git root (or ~/.config/git-pm/) and rename it gitpm-hook-<name>.js.

export const description = "What this hook does";

export const hooks = {
    // Filter — runs before every write, must return the task array
    'pre-write': (tasks, context) => {
        return tasks.map(task => ({ ...task, title: task.title.trim() }));
    },

    // Event — runs after git-pm move, fire-and-forget
    'post-move': async ({ id, status }, context) => {
        if (status === 'DONE') {
            context.ui.success(`Task #${id} is done — nice work.`);
        }
    }
};

Available hook names: pre-write, post-add, post-move, post-assign, post-dates, post-delete, post-edit, post-init, post-uninit.


Strategy B sync

Strategy B stores tasks in Git's internal object database (refs/notes/project-pm). Normal git push does not include custom refs.

git-pm init automatically adds the push refspec to .git/config when an origin remote is present, so git push includes the task ref from that point on.

If you need to configure it manually (e.g. after cloning):

git config --add remote.origin.push refs/notes/project-pm

Pull on another machine:

git fetch origin refs/notes/project-pm:refs/notes/project-pm