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

@hardlydifficult/task-list

v2.0.171

Published

Opinionated task-list automation with a single async entrypoint. The default path is Linear. Trello is supported, but only when you ask for it explicitly.

Readme

@hardlydifficult/task-list

Opinionated task-list automation with a single async entrypoint. The default path is Linear. Trello is supported, but only when you ask for it explicitly.

Installation

npm install @hardlydifficult/task-list

Quick Start

import { createTaskList } from "@hardlydifficult/task-list";

const tasks = await createTaskList({ team: "Core" });

const bug = await tasks.createTask({
  project: "Bot",
  title: "Fix login",
  description: "Users cannot log in on mobile",
  labels: ["Bug"],
});

await bug.moveTo("In Progress");
await bug.tag("Escalated");

Providers

Linear

Linear is the default. If you omit provider, the package expects Linear credentials.

const tasks = await createTaskList({
  apiKey: process.env.LINEAR_API_KEY,
  team: "Core",
});

You can also pass teamId directly:

const tasks = await createTaskList({
  apiKey: process.env.LINEAR_API_KEY,
  teamId: "team-uuid",
});

Trello

Trello must be selected explicitly.

const tasks = await createTaskList({
  provider: "trello",
  apiKey: process.env.TRELLO_API_KEY,
  token: process.env.TRELLO_API_TOKEN,
});

Session API

const tasks = await createTaskList({ team: "Core" });

const projects = await tasks.projects();
const bot = await tasks.project("Bot");
const sameBot = await tasks.projectById(bot.id);
const issue = await tasks.task("ISS-123");

Create a task by project name

await tasks.createTask({
  project: "Bot",
  title: "Ship changelog",
  status: "Todo",
  labels: ["Bug"],
  priority: "High",
});

Watch a project

const watch = tasks.watch({
  project: "Bot",
  whenStatus: "Todo",
  moveTo: "In Progress",
  everyMs: 60_000,
  onTask: async (task) => {
    console.log("Picked up:", task.title);
  },
});

// Later
watch.stop();

Project API

Projects are loaded snapshots with synchronous task filtering and explicit refresh.

const project = await tasks.project("Bot");

const openBugs = project.tasks({
  status: "Todo",
  labels: ["Bug"],
});

await project.createTask({
  title: "Tighten auth flow",
  description: "Handle expired sessions cleanly",
});

await project.refresh();

Available project methods:

  • project.tasks(filter?)
  • project.findTask(id)
  • project.findStatus(name)
  • project.findLabel(name)
  • project.createTask({ title, ... })
  • project.updateTasks(filter, changes)
  • project.createLabel(name, options?)
  • project.deleteLabel(name)
  • project.refresh()

Task API

Tasks are stateful. Mutating methods update the current instance and return it.

const task = await tasks.task("ISS-123");

await task.update({
  title: "Fix login on mobile",
  labels: ["Bug", "Escalated"],
});

await task.moveTo("Done");
await task.tag("Verified");
await task.untag("Bug");
await task.refresh();

Public fields:

  • id
  • title
  • description
  • status
  • projectId
  • labels
  • url
  • priority

Matching Rules

  • Project, label, and status lookups use exact case-insensitive matching.
  • Partial matches are intentionally rejected.
  • Lookup errors include the available names to make fixes obvious.

Environment Variables

Optional environment variables:

LINEAR_API_KEY=...
TRELLO_API_KEY=...
TRELLO_API_TOKEN=...

Errors

All custom errors extend TaskListError and include a machine-readable code.

  • PROVIDER_NOT_CONFIGURED
  • PROJECT_NOT_FOUND
  • TASK_NOT_FOUND
  • STATUS_NOT_FOUND
  • LABEL_NOT_FOUND
  • TEAM_NOT_FOUND
  • API_ERROR
  • LINEAR_GRAPHQL_ERROR