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

@boostkit/schedule

v0.0.6

Published

Task scheduler with cron-based expressions, fluent API, and artisan commands.

Readme

@boostkit/schedule

Task scheduler with cron-based expressions, fluent API, and artisan commands.

Installation

pnpm add @boostkit/schedule

Setup

// bootstrap/providers.ts
import { scheduler } from '@boostkit/schedule'
export default [scheduler()]
// routes/console.ts
import { schedule } from '@boostkit/schedule'

schedule.call(async () => {
  await syncData()
}).everyFiveMinutes().description('Sync external data')

schedule.call(async () => {
  await sendDigest()
}).weekdays().dailyAt('9:00').timezone('America/New_York').description('Morning digest')

Fluent API — ScheduledTask

Each schedule.call(fn) returns a ScheduledTask with a fluent configuration API:

Frequency helpers

| Method | Cron | Description | |--------|------|-------------| | .everySecond() | * * * * * * | Every second | | .everyMinute() | * * * * * | Every minute | | .everyTwoMinutes() | */2 * * * * | Every 2 minutes | | .everyFiveMinutes() | */5 * * * * | Every 5 minutes | | .everyTenMinutes() | */10 * * * * | Every 10 minutes | | .everyFifteenMinutes() | */15 * * * * | Every 15 minutes | | .everyThirtyMinutes() | */30 * * * * | Every 30 minutes | | .hourly() | 0 * * * * | Top of every hour | | .hourlyAt(minute) | M * * * * | Specific minute each hour | | .daily() | 0 0 * * * | Midnight daily | | .dailyAt('H:M') | M H * * * | Specific time daily | | .twiceDaily(h1, h2) | 0 H1,H2 * * * | Twice a day | | .weekly() | 0 0 * * 0 | Sunday midnight | | .weeklyOn(day, 'H:M') | custom | Specific day + time | | .monthly() | 0 0 1 * * | 1st of each month | | .monthlyOn(day, 'H:M') | custom | Specific day of month | | .yearly() | 0 0 1 1 * | Jan 1st midnight | | .cron(expr) | custom | Raw cron expression |

Named-day helpers

| Method | Runs on | |--------|---------| | .sundays() | Every Sunday at midnight | | .mondays() | Every Monday at midnight | | .tuesdays() | Every Tuesday at midnight | | .wednesdays() | Every Wednesday at midnight | | .thursdays() | Every Thursday at midnight | | .fridays() | Every Friday at midnight | | .saturdays() | Every Saturday at midnight | | .weekdays() | Mon–Fri at midnight | | .weekends() | Sat + Sun at midnight |

Other options

| Method | Description | |--------|-------------| | .description(text) | Human-readable label shown in schedule:list | | .timezone(tz) | IANA timezone (e.g. 'America/New_York', 'UTC') |

Introspection

| Method | Returns | Description | |--------|---------|-------------| | .nextRun() | Date \| null | Next scheduled run time | | .getCron() | string | Current cron expression | | .getDescription() | string | Current description | | .getTimezone() | string \| undefined | Configured timezone |

Artisan Commands

| Command | Description | |---------|-------------| | pnpm artisan schedule:run | Run all due tasks once and exit — for external cron triggers | | pnpm artisan schedule:work | Long-running daemon, polls every minute (Ctrl+C to stop) | | pnpm artisan schedule:list | Print all tasks with cron, description, and next run time |

Notes

  • Uses croner for cron parsing and scheduling.
  • schedule:run is suited for platform crons (Kubernetes CronJob, Render, etc.) that fire every minute.
  • schedule:work is for environments where you manage the process (PM2, Docker, etc.).