Skip to content
maxime-fleuryPublic

About

Web dashboard for managing Windows Scheduled Tasks

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CronDash

A web dashboard for managing Windows Scheduled Tasks, built with Bun, vanilla JS, and Bootstrap 5.

Twitch-inspired purple dark theme

Features

  • 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 .ps1 file
  • 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

Quick Start

Prerequisites

  • Bun v1.0+
  • Windows (uses PowerShell ScheduledTask cmdlets)

Run

bun run server.ts

Open http://localhost:3000

Usage

Adding a Task

  1. Click Add Task
  2. Fill in the name, description, and schedule
  3. Choose File Path to point to an existing .ps1, or Write Script to write one inline
  4. The task is created in both tasks.json and Windows Task Scheduler

Editing a Task

  1. Click the Edit (pencil) icon on a task card
  2. Change any field -- description, schedule, log directory
  3. Switch to Write Script and click Load from file to edit the existing script in-browser
  4. Save -- both the config and script file are updated

Changing Schedule

  1. Click the Edit (pencil) icon on a task card
  2. Type a natural language schedule like 30min, 4h, every 2 days, or 1 week
  3. Quick preset chips and live ISO preview update as you type
  4. Save -- the Windows Task Scheduler trigger is updated automatically

Viewing Logs

  1. Click the Logs (book) icon on a task card
  2. Select a log file from the dropdown
  3. Use the filter input to search within entries

API Endpoints

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

Project Structure

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

Tech Stack

  • 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

License

MIT

About

Web dashboard for managing Windows Scheduled Tasks

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages