A web dashboard for managing Windows Scheduled Tasks, built with Bun, vanilla JS, and Bootstrap 5.
- Task Management -- Create, edit, enable/disable, and delete Windows Scheduled Tasks from the browser
- Run Now -- Trigger any task manually with one click
- Live Status -- Real-time task state (Ready/Running/Disabled), last run time, next run time, and result codes
- Inline Script Editor -- Write PowerShell scripts directly in the browser with line numbers, tab support, and syntax-aware dark editor; or point to an existing
.ps1file - Log Viewer -- Browse weekly log files with search/filter, entry count, and total bytes freed
- Activity Chart -- Chart.js bar chart showing files deleted and space freed per week
- Stats Bar -- At-a-glance overview: total tasks, active tasks, files cleaned, space freed
- Search -- Filter tasks by name or description
- Auto-refresh -- Tasks refresh every 30 seconds with a visual indicator
- Bun v1.0+
- Windows (uses PowerShell ScheduledTask cmdlets)
bun run server.ts- Click Add Task
- Fill in the name, description, and schedule
- Choose File Path to point to an existing
.ps1, or Write Script to write one inline - The task is created in both
tasks.jsonand Windows Task Scheduler
- Click the Edit (pencil) icon on a task card
- Change any field -- description, schedule, log directory
- Switch to Write Script and click Load from file to edit the existing script in-browser
- Save -- both the config and script file are updated
- Click the Edit (pencil) icon on a task card
- Type a natural language schedule like
30min,4h,every 2 days, or1 week - Quick preset chips and live ISO preview update as you type
- Save -- the Windows Task Scheduler trigger is updated automatically
- Click the Logs (book) icon on a task card
- Select a log file from the dropdown
- Use the filter input to search within entries
| Method | Route | Description |
|---|---|---|
GET |
/api/tasks |
List all tasks with live scheduler state |
POST |
/api/tasks |
Create a new task |
PUT |
/api/tasks/:name |
Update task config |
DELETE |
/api/tasks/:name |
Delete task from scheduler |
POST |
/api/tasks/:name/run |
Trigger task immediately |
POST |
/api/tasks/:name/enable |
Enable a disabled task |
POST |
/api/tasks/:name/disable |
Disable a task |
GET |
/api/tasks/:name/script |
Read script file content |
PUT |
/api/tasks/:name/script |
Write script file content |
GET |
/api/tasks/:name/logs |
Read log entries |
GET |
/api/tasks/:name/logs/files |
List log files |
GET |
/api/tasks/:name/logs/stats |
Aggregated stats per week |
GET |
/api/stats |
Overview statistics |
CronDash/
├── server.ts # Bun HTTP server + PowerShell bridge
├── tasks.json # Task definitions (config + metadata)
├── public/
│ ├── index.html # Dashboard UI
│ ├── app.js # Frontend logic (event delegation, Chart.js)
│ └── style.css # Twitch-inspired purple dark theme
- Runtime: Bun
- Frontend: Vanilla JS, Bootstrap 5, Chart.js, Bootstrap Icons
- Backend: Bun native HTTP server, Windows PowerShell (
-EncodedCommand) - Theme: Custom Twitch-inspired purple dark mode
MIT