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

@spectratools/native-scheduler

v1.3.1

Published

Cross-platform native scheduler plugin for OpenClaw

Readme

@spectratools/native-scheduler

Cross-platform native OS scheduler plugin for OpenClaw. Offloads deterministic background work from OpenClaw's built-in cron by scheduling scripts via the platform-native scheduler. Scripts run independently of the gateway process — if the gateway restarts or goes down, scheduled jobs keep firing.

Platform Support

  • macOS — launchd (fully supported)
  • 🚧 Linux — systemd / cron (planned)
  • 🚧 Windows — Task Scheduler (planned)

Installation

# Install via OpenClaw plugin system
openclaw plugins install @spectratools/native-scheduler

Configuration

Config options in openclaw.json under plugins.native-scheduler:

| Option | Type | Default | Description | |---|---|---|---| | defaultBackend | "auto" \| "launchd" \| "systemd" \| "cron" \| "windows-task-scheduler" | "auto" | Scheduler backend to use | | namespace | string | — | Prefix for managed job names | | dataDir | string | — | Directory for wrapper runner state files (health, run history) |

PATH Resolution (launchd)

launchd runs with a minimal PATH (/usr/bin:/bin:/usr/sbin:/sbin). The plugin auto-resolves the user's login shell PATH at upsert time and injects it into the plist so Homebrew binaries, nvm, pyenv, etc. work out of the box.

Set environment.PATH explicitly in the job definition to override.

Tool Actions

| Action | Description | |---|---| | status | Plugin and backend status | | list | List all managed jobs | | get | Get details for a specific job | | upsert | Create or update a job | | remove | Remove a job | | run | Trigger a job immediately | | enable | Enable a disabled job | | disable | Disable a job without removing it | | health | Health check for a job | | last-run | Get last run result and timing | | failures | List recent failures for a job | | logs | View job output logs |

Script I/O Contract

Scripts receive a NativeSchedulerRunContext JSON on stdin and write a NativeSchedulerResult JSON to stdout. Types are available in the @spectratools/native-scheduler-types package.

Input (stdin)

interface NativeSchedulerRunContext {
  schemaVersion: 1;
  runId: string;
  jobId: string;
  namespace: string;
  triggeredAt: number; // UTC epoch ms
  platform: string;
  backend: string;
  config: Record<string, unknown>;
}

Output (stdout)

type NativeSchedulerResult =
  | { result: "noop" }
  | { result: "prompt"; text: string; session?: string }
  | {
      result: "message";
      text: string;
      channel: "discord" | "telegram" | "slack" | "signal" | "imessage" | "whatsapp" | "line";
      target?: string;
    };

| Result | Effect | |---|---| | noop | Do nothing | | prompt | Inject text into an agent session (costs tokens) | | message | Send directly to a channel (zero tokens) |

Failure Handling

Set defaultFailureResult on a job to define what happens when a script crashes or times out:

{
  result: "prompt",
  text: "Job X failed — check logs and investigate."
}

Uses the same noop | prompt | message shape as normal results. This ensures failures are surfaced to the right place without manual monitoring.

Agent Skill

Ships a SKILL.md that surfaces usage guidance to AI agents via OpenClaw's skill system. The skill is loaded automatically when the plugin is enabled, providing agents with structured instructions for managing scheduled jobs.

License

MIT