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

@cw-ankit/task-tracker-cli

v0.0.5

Published

A simple task tracker CLI application

Downloads

104

Readme

Task Tracker CLI

A professional, lightweight command-line interface (CLI) application built with Node.js to help you track your daily tasks. This project demonstrates clean software architecture, ES Modules, and persistent data storage using JSON. Project Idea from Roadmap.sh task tracker.

Getting Started

Installation

Quick Install (Recommended): Install globally via npm to use the task command anywhere on your system:

npm install -g @notankit/task-tracker-cli

Install from Source:

  1. Clone the repository:

    git clone <repository-url>
    cd Task-Tracker-CLI
  2. Link the command globally: This step allows you to run task from any folder in your terminal.

    npm link

Detailed Command Reference

1. Adding Tasks

Create a new task to your to-do list. Every new task starts with the status todo.

  • Command: add
  • Usage: task add "Your task description"
  • Example:
    task add "Finish the Node.js project documentation"
  • Behavior: Generates a unique ID and adds createdAt and updatedAt timestamps.

2. Listing Tasks

View your tasks. You can see everything or filter by a specific state.

  • Command: list
  • Usage: task list [filter]
  • Filters:
    • all (default): Shows every task.
    • todo: Shows tasks not yet started.
    • in-progress: Shows tasks currently being worked on.
    • done: Shows completed tasks.
  • Example:
    task list in-progress

3. Updating Tasks

Modify the description of a task if your requirements change.

  • Command: update
  • Usage: task update <id> "New description"
  • Example:
    task update 1 "Finish the Node.js project documentation and add examples"
  • Behavior: Updates the text and refreshes the updatedAt timestamp.

4. Managing Status

Move tasks through your workflow lifecycle.

Mark as In-Progress

  • Command: mark-in-progress
  • Usage: task mark-in-progress <id>
  • Example: task mark-in-progress 1

Mark as Done

  • Command: mark-done
  • Usage: task mark-done <id>
  • Example: task mark-done 1

5. Deleting Tasks

Remove a task from your list permanently.

  • Command: delete
  • Usage: task delete <id>
  • Example: task delete 1

Technical Architecture

This project follows the Separation of Concerns principle, splitting the app into three distinct layers:

1. Interface Layer (src/index.js)

The "Entry Point." It handles:

  • Command-line argument parsing via process.argv.
  • Input validation (checking for missing IDs or descriptions).
  • Formatting data for the console.

2. Logic Layer (src/taskManager.js)

The "Brain." It handles:

  • Business rules (e.g., how to generate a unique ID).
  • Data filtering logic.
  • Coordinating between the user's request and the storage.

3. Storage Layer (src/storage.js)

The "Persistence." It handles:

  • Reading and writing the tasks.json file.
  • JSON serialization and deserialization.
  • Ensuring the data file is created if it doesn't exist.

Task Data Structure

Each task is stored as an object in tasks.json with the following properties:

| Property | Type | Description | | :--- | :--- | :--- | | id | Number | Unique identifier for the task. | | description | String | The text description of the task. | | status | String | Current state: todo, in-progress, or done. | | createdAt | ISO Date | When the task was first created. | | updatedAt | ISO Date | When the task was last modified. |

License

ISC