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

local-task

v0.1.5

Published

A task manager for npm projects

Readme

local-task

A lightweight CLI task manager for npm projects using SQLite for local storage.

Features

  • Category-based Organization: Organize tasks into custom categories
  • SQLite Storage: Local database storage with no external dependencies
  • Flexible Task Management: Add, update, search, and track task status
  • Dual ID Support: Use either numeric IDs or custom string IDs for task operations
  • JSON Integration: Import/export tasks in JSON format
  • Status Tracking: Mark tasks as work-in-progress (wip) or done
  • Search Capabilities: Full-text search across task names and descriptions

Installation

npm install local-task

Quick Start

  1. Initialize the database in your project:
npx local-task init
  1. Add some tasks:
npx local-task add backend '[{"customId": "api-001", "name": "Create user API", "description": "Implement user CRUD operations"}]'
  1. List your tasks:
npx local-task show backend

Commands

Database Management

init [--force]

Initialize the database in your project root. Creates tasks.db file.

  • --force: Recreate database if it already exists
npx local-task init
npx local-task init --force

Task Management

add <category> <jsonArray>

Add or update tasks in a specific category. Tasks are upserted based on customId.

npx local-task add backend '[
  {
    "customId": "api-001",
    "name": "Create user API",
    "description": "Implement user CRUD operations"
  },
  {
    "customId": "auth-001", 
    "name": "Implement authentication",
    "description": "Add JWT-based authentication"
  }
]'

get <category> <id|customId>

Retrieve a specific task by ID or custom ID.

npx local-task get backend api-001
npx local-task get backend 1

list <category>

List all tasks in a category (JSON format).

npx local-task list backend

show <category>

Display tasks in a formatted table.

npx local-task show backend

Task Status

todo <category>

List tasks with "wip" (work-in-progress) status.

npx local-task todo backend

done <category> <id|customId> [comment]

Mark a task as completed with optional comment.

npx local-task done backend 1 "API implementation completed"
npx local-task done backend api-001 "API implementation completed"

wip <category> <id|customId> [comment]

Mark a task as work-in-progress with optional comment.

npx local-task wip backend 1 "Starting API development"
npx local-task wip backend api-001 "Starting API development"

Search and Remove

search <category> <query>

Search tasks by customId, name, or description.

npx local-task search backend API
npx local-task search backend auth

remove <category> <id>

Remove a task by ID.

npx local-task remove backend 1

Task Structure

Each task contains the following fields:

| Field | Type | Description | |-------|------|-------------| | id | integer | Auto-incrementing primary key | | customId | string | User-defined unique identifier | | category | string | Task category | | name | string | Task name | | description | string | Detailed description | | status | string | Either "wip" or "done" | | comment | string | Additional comments | | createdAt | timestamp | Creation time | | updatedAt | timestamp | Last update time |

Use Cases

Project Planning

# Initialize and add project tasks
npx local-task init
npx local-task add frontend '[{"customId": "ui-001", "name": "Design homepage"}]'
npx local-task add backend '[{"customId": "db-001", "name": "Setup database"}]'

Development Workflow

# Start working on a task
npx local-task wip frontend ui-001 "Starting homepage design"

# Check current work
npx local-task todo frontend

# Complete a task
npx local-task done frontend ui-001 "Homepage design completed"

Team Coordination

# View all project tasks
npx local-task show backend
npx local-task show frontend

# Search for specific features
npx local-task search backend authentication

Development

This project is built with:

  • TypeScript for type safety
  • SQLite with Drizzle ORM for data persistence
  • tsdown for building
  • Vitest for testing
  • Biome for linting and formatting

Build Commands

pnpm build      # Production build
pnpm typecheck  # Type checking
pnpm lint       # Linting
pnpm test       # Run tests

License

MIT