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

@nysg/ptta

v0.2.9

Published

AI-first task management CLI - External memory storage for Claude Code

Readme

ptta (Project, Task, Todo, Action)

AI-first Task Management CLI - External Memory for Claude Code

Current Implementation: Workspace → Task → Todo → Action hierarchy (4 layers)

Features

  • 📋 Hierarchical Task Management: Workspace → Task → Todo → Action
  • 🤖 AI-Optimized: Structured JSON data, designed for easy Claude Code integration
  • 💾 Persistent Storage: Fast data management with better-sqlite3
  • 📁 Workspace-based: Independent task management per workspace path
  • 🔍 Efficient Queries: Save Claude Code's context window
  • 🌐 Web Interface: Visual task management via WebUI

Installation

npm install -g @nysg/ptta

Local Development

npm install
npm run build
npm link

WebUI

Launch the web interface to manage your tasks visually.

# Start WebUI (default port: 3737)
ptta web

# Custom port
ptta web --port 8080

Open http://localhost:3737 in your browser.

Basic Usage

Task Management

# Create task
ptta task:add "Web App Development" -d "New web application project" -P high

# List tasks
ptta task:list

# Show task details (hierarchical view with todos and actions)
ptta task:show 1

# Update task status
ptta task:update 1 -s completed

Todo Management

# Create todo for task 1
ptta todo:add 1 "Implement authentication" -d "Implement JWT authentication" -P high

# List all todos
ptta todo:list

# List todos for task 1
ptta todo:list -T 1

# Update todo status
ptta todo:update 1 -s in_progress

# Complete todo
ptta todo:update 1 -s done

Action Management

# Add actions to todo 1
ptta action:add 1 "Create login UI"
ptta action:add 1 "Implement JWT generation logic"

# Complete action
ptta action:done 1

# Update action
ptta action:update 1 -s done

Workspace Management

# List workspaces
ptta workspace:list

# Execute in specific workspace
ptta -p /path/to/project task:list

Data Export

# Export all data as JSON
ptta export

# Export specific task to file
ptta export -T 1 -o task1.json

# Show statistics
ptta stats

Claude Code Integration

1. Check current todos at work start

# Get in-progress todos in JSON format
ptta query todos -s in_progress

2. Understand task overview

# Get task hierarchy (with todos and actions) in JSON format
ptta query hierarchy -i 1

3. Record work completion

# Complete todo and add summary
ptta todo:update 5 -s done
ptta summary:add todo 5 "API integration completed. Implemented error handling and rate limiting."

4. AI Query Commands (JSON format)

# All tasks
ptta query tasks

# All todos
ptta query todos

# Specific task hierarchy (includes all todos and actions)
ptta query hierarchy -i 1

# All data
ptta query all

# Statistics
ptta query stats

# Workspace list
ptta query workspaces

Data Storage Location

~/.ptta/ptta.db

Status Values

Tasks

  • active: Active (in progress)
  • completed: Completed
  • archived: Archived

Todos/Actions

  • todo: Not started
  • in_progress: In progress
  • done: Completed

Priority Levels

  • low: Low
  • medium: Medium (default)
  • high: High

Version History

v0.2.5 (Latest)

  • WebUI URL-based Routing: React Router integration for proper URL navigation
    • Workspace list: /
    • Task list: /workspaces/:workspaceId
    • Task detail: /workspaces/:workspaceId/tasks/:taskId
  • Test Suite: Added comprehensive WebUI routing tests (10 test cases)
  • 🎨 UI Improvements: Compact single-line stats display for Tasks/Todos/Actions
  • 🔧 Configuration: Added .gitignore for Claude Code settings

v0.2.4

  • 🌐 WebUI implementation with Hono + React + TypeScript + Tailwind CSS + shadcn/ui
  • 📊 Task statistics and hierarchy visualization
  • 🎨 Modern UI with status badges and priority indicators

v0.2.3

  • 🧪 Added test suite with vitest (80+ tests)
  • 🛡️ Error handling improvements
  • 📝 JSON validation and utilities

Earlier Versions

  • v0.2.0-0.2.2: Core CLI functionality, database layer, 4-layer hierarchy implementation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Repository

License

MIT