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

@mchlbckr/ms365todo

v0.1.7

Published

Headless-friendly CLI for Microsoft To Do (Graph API)

Readme

ms365todo

Headless-friendly CLI for Microsoft To Do using the Microsoft Graph API.

  • Headless auth via Device Code Flow (works great on servers like raspberry pi)
  • Multiple profiles (e.g. work, personal)
  • List lists, add tasks, list tasks, complete tasks
  • Filter/search tasks (title + body text + due date + created date)

This started as a helper for Clawdbot automation and is intended to become a Clawdbot skill later.


Install

From GitHub (easy)

npm i -g github:mchlbckr/ms365todo

From npm

Once published:

npm i -g @mchlbckr/ms365todo

Microsoft Entra App (one-time)

Create an App Registration in Azure Portal:

  • Supported account types: "Accounts in any organizational directory and personal Microsoft accounts"
  • API permissions (Delegated):
    • Tasks.ReadWrite
    • offline_access
    • User.Read
  • Authentication:
    • Enable Allow public client flows = Yes (required for Device Code)

Copy the Application (client) ID.


Quick start

export MS365TODO_CLIENT_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

# authorize a profile (headless)
ms365todo auth add work --tenant organizations

# list lists
ms365todo lists --profile work --tenant organizations

# list tasks (default: hides completed; uses server-side filter with fallback)
ms365todo tasks list --profile work --tenant organizations --list "Tasks"

# add a task
ms365todo tasks add --profile work --tenant organizations --list "Tasks" --title "Call Tim" --due 2026-01-30

# search tasks (default: hides completed)
ms365todo tasks search --profile work --tenant organizations --list "Tasks" --query "Data Camp" --show-details

# mark done
ms365todo tasks done --profile work --tenant organizations --list "Tasks" --id <taskId>

Commands

Auth

  • Work/school accounts:
ms365todo auth add work --tenant organizations
  • Personal Microsoft account:
ms365todo auth add personal --tenant consumers

Note: Some enterprise tenants or registrations may block personal accounts.

Lists

ms365todo lists --profile work --tenant organizations

Output: displayName<TAB>listId

Tasks: list

ms365todo tasks list --profile work --tenant organizations --list "Tasks"

Options:

  • --include-completed (show everything)
  • --completed-only

Tasks: search

ms365todo tasks search --profile work --tenant organizations --list "Tasks" --query "Tim" --show-details

Filters:

  • --due YYYY-MM-DD (exact)
  • --due-before YYYY-MM-DD
  • --due-after YYYY-MM-DD
  • --created-before YYYY-MM-DD
  • --created-after YYYY-MM-DD
  • --status notStarted|inProgress|completed
  • --include-completed (if you didn’t set --status)

Output (default): id<TAB>status<TAB>due<TAB>created<TAB>title[<TAB>details]

Use JSON lines:

ms365todo tasks search ... --json

Tasks: complete

ms365todo tasks done --profile work --tenant organizations --list "Tasks" --id <taskId>

Storage & security

Token caches are stored per profile:

  • ~/.ms365todo/<profile>.token.json

Harden permissions:

chmod 700 ~/.ms365todo
chmod 600 ~/.ms365todo/*.token.json

Development

npm install
npm test

Roadmap

  • Better server-side filtering where Graph supports it (beyond status)
  • Clawdbot skill wrapper (thin wrapper around this CLI)