hyper-scheduler
v1.1.5
Published
A lightweight, dependency-free (core) JavaScript task scheduler supporting Cron expressions and Web Workers.
Maintainers
Readme
A lightweight, dependency-free (core) JavaScript task scheduler supporting Cron expressions and Web Workers.
Features
- 🚀 Cross-platform: Works in Node.js and Browser.
- ⏰ Precise Timing: Uses Web Workers in browser to avoid background throttling.
- 🏷️ Namespaces: Isolate tasks into logical groups for batch control.
- ⚡ Immediate Trigger: Option to execute tasks immediately upon start.
- 🛠 Debuggable: Built-in debug panel and CLI output.
- 📦 Tiny: < 20KB gzipped.
DevTools

Quick Start
npm install hyper-schedulerimport { Scheduler } from 'hyper-scheduler';
const scheduler = new Scheduler({ debug: true });
// Standard task
scheduler.createTask({
id: 'hello',
schedule: '*/5 * * * * *',
handler: () => console.log('Hello World')
});
// Task in a namespace with immediate execution
scheduler.createTask({
id: 'system-check',
schedule: '1h',
handler: () => console.log('System Check'),
options: {
namespace: 'system',
runImmediately: true
}
});
scheduler.start();
// Or start only 'system' namespace: scheduler.start('system');See Documentation for more details.
