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

@rackbops/docket-core

v0.3.0

Published

Tracker core: people, tasks, occurrences, schedules, the two lanes, the task-type contract and the ports. No platform code.

Readme

@rackbops/docket-core

The tracker's domain, scheduler, two lanes, task-type contract and ports, with no platform code: no Hono, no discord.js, no sqlite, no fetch. A host (Lepid-Labs/city-hall is the first) supplies the adapters behind the ports and gets a tracker. Design: Rackbops/Tooling, research/city-hall-task-tracker.md, section 5; this slice is Lepid-Labs/city-hall#7.

| Module | What it holds | |---|---| | model | the records: users, tasks (config and type state), occurrences, events, task history, recipients, blocks, replies, series | | ports | Store, Clock, Identity, Notifier, Executor, Memory, Fetch, and the Store's input shapes | | memory-store, store-contract | the Store in memory: the reference semantics and the test fake; STORE_CONTRACT, those semantics as cases a host runs against its own Store | | schedule, zoned | once, calendar, poll and period schedules, nextDue, periodDate, zone-aware wall-clock arithmetic on Intl alone | | scheduler, dedupe, tasks | one upcoming occurrence per task through its dedupe key; cancel-and-replace on edit; createTask | | dispatch, delivery | the notify and execute lanes, idempotent DM delivery, crash recovery, replies and snooze; a type's outcome applied: state stored, series appended, complete ends the task | | authz, consent | every read takes an identity, the series included; invitations, accept, the decline rule, opt-out, admin lifts | | when, describe, messages, refs | what the bot says and hears: a person's "when" (parseWhen), cadences and instants in words, the consent DM, the registration disclosure, the /tasks list, and buttons whose reply references route a press back as a reply (replyButtons, replyForRef): a run's done, snooze and decision are the owner's, once per fired run while the task is active (when the host handles a task's replies one at a time), enforced in Lanes.reply on every path; a recipient's copy carries the opt-out and no run actions | | contract, capabilities, job | TaskType, defineTaskType, the grantable capability enum (tier 0 and tier 1 only; tier 2 has no name here), the JobSpec and JobResult a runner speaks |

import { createTask, Lanes, MemoryStore } from "@rackbops/docket-core"
import { TASK_TYPES } from "@rackbops/docket-types"

const store = new MemoryStore()
const lanes = new Lanes({ store, clock: { now: () => new Date() }, types: TASK_TYPES, notifier })
await lanes.recover()
setInterval(() => lanes.tickNotify(), 60_000)

A host replaces MemoryStore with its own Store (and proves it by running STORE_CONTRACT against it), supplies a Notifier that DMs a user, a Fetch for the plain-code types (the price tracker reads pages through it, via RunContext.ports), and an Executor that hands Jobs to the runner. The core never calls a model and holds no credential: every model call runs in the runner, through the Claude Code CLI on roshne's subscription, never an API key.