Local Runtime Quickstart
This is the file-based cronlet flow for Node.js apps.
Install
npm install cronlet cronlet-cliInitialize the project
npx cronlet initcronlet init will:
- detect your app structure
- create a jobs directory
- add an example job
- write a
cronlet.config.*file
Create a job
import { schedule, weekly } from "cronlet";
export default schedule(weekly("fri", "09:00"), async () => { await sendWeeklyDigest();});Start local development
npx cronlet devThis starts:
- job discovery
- local scheduling
- the local dashboard
- file watching / hot reload
Default dashboard URL:
http://localhost:3141Validate and inspect jobs
npx cronlet listnpx cronlet run weekly-digestnpx cronlet validateExample with runtime safety
import { schedule, every } from "cronlet";
export default schedule( every("1m"), { concurrency: "skip", catchup: true, retry: { attempts: 3, backoff: "exponential", initialDelay: "30s", }, timeout: "5m", }, async () => { await doWork(); });Next step
Move to Local Runtime Reference for config files, commands, watch behavior, and deployment notes.