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

taskrat

v0.2.0

Published

File-based task manager with a background scheduler, CLI, and TUI.

Downloads

309

Readme

taskrat

A file-based personal task manager: a background scheduler, a CLI, and a read-only TUI, all reading and writing plain markdown-with-frontmatter task files. One directory is the database; one .md file is one task.

Extracted from ratnest, which runs the scheduler as a supervised child process (taskrat serve) and receives its notifications over HTTP. taskrat has no dependency on ratnest — the coupling is one-way, across a process boundary.

Layout

src/
  schema.mts        task shape, validation, dates, recurrence (TypeBox)
  io.mts            markdown+frontmatter parse/serialize, filesystem store
  scheduler.mts     TaskManager — polls the store and POSTs due/deadline notifications
  notification.mts  the notification wire-format taskrat POSTs to its host
  log-client.mts    structural logging interface the host supplies
  index.mts         public library API
  cli/              taskrat — the CLI (stricli)
  tui/              taskrat-tui — the read-only browser (opentui, needs Bun)

Use

npm install
npm test              # tsc --noEmit && eslint . && vitest run
npm run build         # compile bin/taskrat and bin/taskrat-tui (needs Bun)

The library (scheduler, schema, storage) runs under plain Node. The taskrat and taskrat-tui bins ship as .mts source with a Bun shebang and require Bun (the TUI also needs Bun's native OpenTUI bindings); compile them to standalone binaries with npm run build. The task store is tasks/ in the current working directory, or $TASKRAT_DIR if set.

taskrat add --title "Call vet" --due 2026-07-15T10:00 --priority 2
taskrat list
taskrat-tui           # interactive browser

As a daemon

taskrat serve --notify http://127.0.0.1:8080/notification [--interval 60]

Runs the scheduler in the foreground: polls the task store every --interval seconds and POSTs a JSON notification to --notify for each task whose due/remind or deadline time was crossed since the last poll. Recurring tasks are advanced on disk. Stops cleanly on SIGINT/SIGTERM. Delivery is fire-and-forget — a failed POST is logged and dropped — so run the daemon under the same supervision as its receiver.

As a library

npm install taskrat
import { TaskManager } from "taskrat";

const manager = new TaskManager(tasksDir, notificationUrl, logClient);
manager.start();      // polls every 60s; POSTs a notification when a task comes due

The published package ships compiled JavaScript + type declarations in dist/, so it imports under plain Node with no build step or loader. import resolves to dist/index.mjs; the .mts sources are shipped too (used to compile the bins).