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

tasksmind

v0.1.0

Published

TasksMind — AI Engineer for Developers On Call. TypeScript SDK and CLI for on-call incident investigation, replay, and automated fixes.

Downloads

9

Readme

tasksmind

TypeScript SDK and CLI for TasksMind — the AI Engineer for Developers On Call.

Investigate incidents, replay AI root-cause analyses, trigger automated fixes, and monitor projects from your terminal or Node.js code.

Install

npm install tasksmind

Quick start

SDK

import { TasksMind } from "tasksmind";

const client = new TasksMind({ apiKey: process.env.TASKSMIND_API_KEY });

// List open incidents
const incidents = await client.incidents.list("proj-uuid", { status: "open" });
for (const inc of incidents) {
  console.log(`[${inc.severity}] ${inc.title} (${inc.source})`);
}

// Get AI investigation
const investigation = await client.incidents.getInvestigation(incidents[0].id);
if (investigation?.isComplete()) {
  console.log(`Confidence: ${Math.round(investigation.confidenceScore * 100)}%`);
  console.log(investigation.reportMarkdown);
}

// Replay investigation
const result = await client.incidents.replay(incidents[0].id);
console.log(result.reportMarkdown);

// Create an automated fix run
const run = await client.runs.create({
  repoUrl: "https://github.com/my-org/my-repo",
  payload: { intent: "fix_bug", raw_text: "Fix the OOM in payment-worker" },
});
const completed = await client.runs.wait(run.id, { timeoutS: 600 });
if (completed.isSuccess()) {
  console.log(`PR: ${completed.prUrl}`);
}

CLI

export TASKSMIND_API_KEY=your_key

# List incidents
tasksmind incidents list <project-id>
tasksmind incidents list <project-id> --status open --limit 10

# Inspect a single incident
tasksmind incidents get <incident-id>

# View AI investigation report
tasksmind incidents investigation <incident-id>

# Replay an investigation
tasksmind replay <incident-id>
tasksmind replay <incident-id> --timeout 60 --no-wait

# Start an automated fix
tasksmind run "fix the OOM in payment-worker" --repo https://github.com/org/repo
tasksmind run "review PR" --repo https://github.com/org/repo --intent review_pr --pr 42

# Check run status
tasksmind status <run-id>
tasksmind logs <run-id>

# Watch for new incidents
tasksmind watch <project-id> --interval 30 --auto-replay

SDK reference

Client

const client = new TasksMind({
  apiKey: "tm_...",                   // or set TASKSMIND_API_KEY env var
  baseUrl: "https://api.tasksmind.com", // optional override
  timeout: 60000,                    // ms, default 60s
});

Incidents

| Method | Returns | Description | |--------|---------|-------------| | client.incidents.list(projectId, { status?, limit? }) | Incident[] | List incidents for a project | | client.incidents.get(incidentId) | Incident | Get a single incident | | client.incidents.getInvestigation(incidentId) | IncidentInvestigation \| null | Get the AI investigation | | client.incidents.replay(incidentId, { wait?, timeoutS?, pollS? }) | ReplayResult | Re-run the AI investigation |

Runs

| Method | Returns | Description | |--------|---------|-------------| | client.runs.create({ repoUrl, repoRef?, payload? }) | Run | Start a new run | | client.runs.get(runId) | Run | Fetch a run | | client.runs.list({ limit?, offset?, status? }) | Run[] | List runs | | client.runs.wait(runId, { timeoutS?, pollS? }) | Run | Poll until complete |

Models

Incidentid, projectId, source, title, severity, status, externalId, createdAt

IncidentInvestigationid, incidentId, status, confidenceScore, reportMarkdown, analysisData, errorMessage, isComplete(), isFailed()

ReplayResultinvestigationId, status, confidenceScore, reportMarkdown, isComplete(), isFailed()

Runid, status, output, prUrl, prNumber, summary, error, isSuccess()

Errors

import { AuthError, NotFoundError, RateLimitError, APIError, TimeoutError } from "tasksmind";

| Error | HTTP status | When | |-------|-------------|------| | AuthError | 401, 403 | Invalid or missing API key | | NotFoundError | 404 | Resource doesn't exist | | RateLimitError | 429 | Too many requests | | APIError | 4xx, 5xx | Other server errors | | TimeoutError | — | Polling exceeded timeout |

All errors extend TasksMindError which has statusCode and body properties.

Environment variables

| Variable | Description | |----------|-------------| | TASKSMIND_API_KEY | Your API key (required) | | TASKSMIND_API_BASE_URL | Override API base URL | | TASKSMIND_REPO | Default repo URL for run command |

Requirements

  • Node.js >= 18
  • Zero runtime dependencies

License

MIT