DevTools Logo

Crontab Natural Language & Next Runs Heatmap

Crontab Natural Language & Next Runs

Explain cron schedules and inspect the next 50 local runs in your browser.

Cron expression

Use five fields or @daily, @weekly, and related aliases.

minute hour day-of-month month day-of-week

Examples

Every 15 minutes

Input
describeCron("*/15 * * * *")
Output
every 15 minutes

A */N minute step with all other fields wild collapses to the every-N-minutes phrasing.

Weekday 3 AM plus next runs

Input
describeCron("0 3 * * 1-5")
getNextCronRuns("0 3 * * 1-5", 3, new Date(2024, 0, 1))
Output
at 03:00 on Monday, Tuesday, Wednesday, Thursday, Friday
3 dates, each matching matchesCron

Single hour/minute renders at HH:MM with weekday names; every returned run satisfies the expression.

About this tool

Crontab Heatmap parses five-field cron expressions with parseCrontab (also exported as parseCronExpression and parseCron), supporting lists, ranges, steps (*/15, 1-5/2), and aliases @hourly, @daily, @weekly, @monthly, @yearly, @annually, and @reboot. Each field validates against its range (minute 0-59, hour 0-23, day-of-month 1-31, month 1-12, day-of-week 0-6 with 7 normalized to Sunday) and throws Invalid step, Invalid range, Value out of range, or Cron expression must contain exactly five fields on bad input.

Human descriptions come from describeCron (alias explainCron): */N minute steps with all other fields wild report every N minutes, single hour+minute pairs render at HH:MM, weekday sets list Monday through Sunday names, and month or day selections add in selected months or on selected days of the month. @reboot describes as at system startup and @daily as at 00:00 every day. Day matching follows cron semantics: when both day-of-month and day-of-week are restricted either may trigger, otherwise both must match.

Scheduling is bounded and client-side: getNextCronRuns (alias getNextRuns) scans forward minute-by-minute from the next minute up to 10,000,000 iterations, clamps count to 0-50, and returns [] for @reboot or for impossible dates such as Feb 31 (0 0 31 2 *) instead of hanging. matchesCron tests a single Date, and createCronHeatmap (alias generateCrontabHeatmap) folds runs into a fixed 1440-cell hour×minute grid whose counts sum to the run count.

How to use this tool

  1. Enter an expression or alias

    Type five fields (e.g. 0 3 * * 1-5) or an alias like @daily. Ranges, lists, and */steps are all accepted; bad fields throw with the offending token.

  2. Read the description

    Check describeCron output — */15 with wildcards reads every 15 minutes, 0 3 on weekdays reads at 03:00 on Monday, Tuesday, … — before scheduling.

  3. Preview runs and heatmap

    Call getNextCronRuns(expression, up to 50, from) and fold the result with createCronHeatmap for the 24×60 density grid.

Use cases

Sanity-checking schedules

Confirm */15 really fires quarterly-hourly and 0 3 * * 1-5 means weekday 3 AM before deploying the crontab.

Visualizing load

Render the 1440-cell heatmap from the next 50 runs to spot thundering-herd minutes.

Proving impossible dates

Show Feb-31-style expressions return zero runs under the bounded scan instead of hanging the tab.

Common mistakes

Mistake:Reading day-of-month and day-of-week as AND.

Fix:When both are restricted the tool uses OR (either may trigger), matching cron; only when one is wild must both match.

Mistake:Expecting more than 50 runs or @reboot dates.

Fix:Count clamps to 0-50 and @reboot always returns [] since startup has no calendar schedule. Request smaller windows instead.

Frequently asked questions

What does this tool do?

It parses five-field cron plus @hourly/@daily/@weekly/@monthly/@yearly/@annually/@reboot with parseCrontab, explains schedules with describeCron, lists upcoming runs with getNextCronRuns (max 50, bounded scan), tests dates with matchesCron, and folds runs into a 1440-cell heatmap with createCronHeatmap.

What do */15, weekday 3 AM, and @daily mean?

*/15 * * * * describes as every 15 minutes; 0 3 * * 1-5 describes as at 03:00 on Monday, Tuesday, Wednesday, Thursday, Friday; @daily parses with alias @daily and describes as at 00:00 every day.

Is my schedule uploaded or stored?

No. Field parsing, description, run enumeration, and heatmap binning are 100% client-side — expressions never leave your browser.

Are the next runs accurate, and do impossible dates hang?

Yes — all 50 runs for */15 * * * * satisfy matchesCron against the parsed expression. Impossible dates like 0 0 31 2 * return [] under the 10,000,000-iteration cap instead of hanging.

References & standards

.env Secret Safety Linter

Validate .env syntax and spot likely leaked credentials or placeholder secrets.

.htaccess Generator

Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

2D Fluid Dynamics & Particle Physics Sandbox

A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

AI Function Calling Schema Generator

Generate function calling JSON schemas from TypeScript interfaces

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML