About
A recurring job scheduler with a schedule list, enable toggles, frequency builder for minutes, hourly, daily, weekly and monthly runs, cron expression preview, upcoming run calculation, save and discard handling and a recent-run log.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cron Scheduler to your project and fits it to your theme.
Code
How Cron Scheduler is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import { CronScheduler, type Schedule } from "@/components/ui/cron-scheduler";
const SCHEDULES: Schedule[] = [
{
id: "backup",
name: "Nightly backup",
task: "Snapshot the primary database and copy it to cold storage.",
mode: "daily",
interval: 15,
hour: 2,
minute: 0,
weekdays: [1, 2, 3, 4, 5],
dayOfMonth: 1,
timezone: "UTC",
enabled: true,
lastRun: "Today, 02:00",
},
{
id: "rollup",
name: "Usage rollup",
task: "Aggregate hourly usage events into the billing summary.",
mode: "hourly",
interval: 15,
hour: 9,
minute: 15,
weekdays: [1, 2, 3, 4, 5],
dayOfMonth: 1,
timezone: "UTC",
enabled: true,
lastRun: "Today, 11:15",
},
{
id: "digest",
name: "Weekly operations digest",
task: "Send the operations summary to the team channel.",
mode: "weekly",
interval: 15,
hour: 9,
minute: 0,
weekdays: [1],
dayOfMonth: 1,
timezone: "UTC+01:00",
enabled: true,
lastRun: "Mon, Nov 23",
},
{
id: "cleanup",
name: "Draft cleanup",
task: "Remove drafts that have not changed in ninety days.",
mode: "monthly",
interval: 15,
hour: 5,
minute: 30,
weekdays: [1, 2, 3, 4, 5],
dayOfMonth: 1,
timezone: "UTC-05:00",
enabled: false,
lastRun: "Nov 1, 05:30",
},
];
export default function CronSchedulerDemo() {
return (
<main className="flex min-h-screen w-full items-center justify-center bg-background px-4 py-12 sm:px-6">
<CronScheduler
schedules={SCHEDULES}
timezones={["UTC", "UTC+01:00", "UTC-05:00"]}
title="Scheduled jobs"
description="Four recurring jobs with different rhythms. Change the frequency, watch the expression and the next runs update before you save."
/>
</main>
);
}








