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

runlater-js

v0.3.0

Published

Delayed tasks, cron jobs, and reliable webhooks. No infrastructure required.

Readme

runlater-js

Official Node.js SDK for Runlater — delayed tasks, cron jobs, and reliable webhooks for any Node.js app. No Redis. No infrastructure. Just HTTP.

Documentation | Dashboard | npm

Install

npm install runlater-js

Quick start

import { Runlater } from "runlater-js"

const rl = new Runlater({ apiKey: process.env.RUNLATER_KEY })

// Fire-and-forget with retries
await rl.send("https://myapp.com/api/process-order", {
  body: { orderId: 123 },
  retries: 5,
})

// Run in 10 minutes
await rl.delay("https://myapp.com/api/send-reminder", {
  delay: "10m",
  body: { userId: 456 },
})

// Run at a specific time
await rl.schedule("https://myapp.com/api/trial-expired", {
  at: "2026-03-15T09:00:00Z",
  body: { userId: 789 },
})

// Recurring cron job
await rl.cron("daily-report", {
  url: "https://myapp.com/api/report",
  schedule: "0 9 * * *",
})

Why Runlater?

  • No infrastructure — no Redis, no SQS, no cron containers
  • Works everywhere — Vercel, Netlify, Cloudflare Workers, Express, any Node.js app
  • EU-hosted — GDPR-native, data never leaves Europe
  • Reliable — automatic retries with exponential backoff
  • Observable — execution history, status codes, and error logs in the dashboard

API

rl.send(url, options?)

Execute a request immediately with reliable delivery.

const result = await rl.send("https://myapp.com/api/webhook", {
  method: "POST",         // default: "POST"
  headers: { "X-Custom": "value" },
  body: { key: "value" }, // automatically JSON-serialized
  retries: 5,             // default: server default
  timeout: 30000,         // ms, default: 30000
  queue: "emails",        // optional: serialize execution within a queue
  callback: "https://myapp.com/api/on-complete", // optional: receive result
})
// => { task_id, execution_id, status, scheduled_for }

rl.delay(url, options)

Execute a request after a delay.

await rl.delay("https://myapp.com/api/remind", {
  delay: "10m",           // "30s", "5m", "2h", "1d", or seconds as number
  body: { userId: 123 },
})

rl.schedule(url, options)

Execute a request at a specific time.

await rl.schedule("https://myapp.com/api/expire", {
  at: new Date("2026-03-15T09:00:00Z"), // Date object or ISO string
  body: { subscriptionId: "sub_123" },
})

rl.cron(name, options)

Create or update a recurring cron task.

await rl.cron("weekly-digest", {
  url: "https://myapp.com/api/digest",
  schedule: "0 9 * * MON",  // every Monday at 9am
  method: "POST",
  enabled: true,
})

Task management

// List all tasks
const { data, has_more } = await rl.tasks.list({ limit: 20 })

// Get a specific task
const task = await rl.tasks.get("task-id")

// Update a task
await rl.tasks.update("task-id", {
  cron_expression: "0 7 * * *",
  enabled: false,
})

// Trigger a task manually
await rl.tasks.trigger("task-id")

// View execution history
const executions = await rl.tasks.executions("task-id")

// Delete a task
await rl.tasks.delete("task-id")

Monitors (dead man's switch)

// Create a monitor — alerts you if a ping is missed
const monitor = await rl.monitors.create({
  name: "nightly-backup",
  schedule: "0 2 * * *",
  grace: 600,  // 10 min grace period
})

// Update a monitor
await rl.monitors.update("monitor-id", {
  grace_period_seconds: 1800,
})

// List pings
const pings = await rl.monitors.pings("monitor-id", 20)

// Ping from code (no API key needed — uses the token)
await rl.monitors.ping("pm_your_token_here")

Declarative sync

Push your task configuration from code. Matched by name.

await rl.sync({
  tasks: [
    {
      url: "https://myapp.com/api/report",
      schedule: "0 9 * * *",
    },
  ],
  deleteRemoved: true, // remove tasks not in this list
})

Frameworks

Next.js (App Router)

// app/api/orders/route.ts
import { Runlater } from "runlater-js"

const rl = new Runlater({ apiKey: process.env.RUNLATER_KEY })

export async function POST(req: Request) {
  const order = await req.json()

  // Process immediately, return fast
  await rl.send("https://myapp.com/api/fulfill-order", {
    body: order,
    retries: 5,
  })

  return Response.json({ status: "queued" })
}

Express

import express from "express"
import { Runlater } from "runlater-js"

const app = express()
const rl = new Runlater({ apiKey: process.env.RUNLATER_KEY })

app.post("/orders", async (req, res) => {
  // Send confirmation email in 5 minutes
  await rl.delay("https://myapp.com/api/send-confirmation", {
    delay: "5m",
    body: { orderId: req.body.id },
  })

  res.json({ status: "ok" })
})

Requirements

License

MIT