BlazerJob is a lightweight, SQLite-backed task scheduler for Node.js and TypeScript applications, currently at version 2.0.7. It supports scheduling and executing asynchronous tasks (custom functions or HTTP requests) with configurable concurrency, intervals, and max runs. Unlike many task schedulers, BlazerJob offers both in-memory (default) and persistent SQLite storage options, and includes an optional built-in Fastify HTTP server for task management via REST API. The library ships with TypeScript definitions and is designed for simplicity and performance.
npm install blazerjobNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a scheduler with in-memory storage, schedules a custom async task to run immediately and every 5 seconds for 3 times, then starts the scheduler.
For persistent custom tasks, serialize the logic or use HTTP tasks with a webhook endpoint.
Pass storage options when starting server (currently not configurable via startServer directly; need to modify BlazeJob instance).
Use new BlazeJob({ concurrency: 4 }) instead of new BlazeJob(4).Use stringified config for now; watch for updates.
Set concurrency based on your system and task load.
Use import { BlazeJob } from 'blazerjob' in your project (ensure "type": "module" in package.json or use .mjs extension).Use import { BlazeJob } from 'blazerjob'.Run npm install better-sqlite3 to install the SQLite binding.