{"id":16920492,"url":"https://github.com/ostafen/kronos","last_synced_at":"2025-07-25T04:13:14.860Z","repository":{"id":108995376,"uuid":"600697666","full_name":"ostafen/kronos","owner":"ostafen","description":"A lightweight cron job scheduler with webhook notifications, designed for easy task automation and flexible scheduling","archived":false,"fork":false,"pushed_at":"2025-01-11T11:27:59.000Z","size":1075,"stargazers_count":43,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T06:32:19.705Z","etag":null,"topics":["cron-job-schedule","cron-jobs","cronexpression","email-alert-notifications","golang","http","job-scheduler","periodic-jobs","prometheus-alerts","prometheus-metrics","rest-api","scheduling","webhooks"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ostafen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-12T10:00:48.000Z","updated_at":"2025-03-27T14:47:10.000Z","dependencies_parsed_at":"2024-10-28T13:16:21.715Z","dependency_job_id":"d1759214-119e-4fb2-9993-bf91118a4968","html_url":"https://github.com/ostafen/kronos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ostafen/kronos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostafen%2Fkronos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostafen%2Fkronos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostafen%2Fkronos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostafen%2Fkronos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ostafen","download_url":"https://codeload.github.com/ostafen/kronos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ostafen%2Fkronos/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266952903,"owners_count":24011513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron-job-schedule","cron-jobs","cronexpression","email-alert-notifications","golang","http","job-scheduler","periodic-jobs","prometheus-alerts","prometheus-metrics","rest-api","scheduling","webhooks"],"created_at":"2024-10-13T19:48:29.963Z","updated_at":"2025-07-25T04:13:14.840Z","avatar_url":"https://github.com/ostafen.png","language":"TypeScript","readme":"# Kronos - Cron Job Webhook Scheduler\n\n## Overview\n\n**Kronos** is a powerful cron job webhook scheduler that allows you to define and manage scheduled tasks with ease. Utilizing a simple JSON-like DSL, Kronos makes it easy to schedule webhooks and automate workflows seamlessly.\n\n## Features:\n\n- :sparkles: Simple DSL: Define your workflows using a clear, JSON-like syntax.\n\n- :zap: REST API Integration: Schedule and manage webhooks easily.\n\n- :rocket: Distributed Execution: Run tasks across multiple environments.\n\n- :alarm_clock: Flexible Scheduling: Create complex scheduling patterns with cron expressions.\n\n![Screen](docs/images/screen.png)\n\n\n## Build (Go 1.9+)\n\nRun the following command\n\n```bash\nfoo@bar$ make build\n```\nto build an executable which will be output to the `bin` subfolder.\n\n## Yaml file configuration\n\n```yaml\nlogging:\n  level: INFO\n  format: JSON\n\nport: 9175\n\nstore:\n  path: \"/path/to/db/file\" # default is kronos.bolt\n```\n\n## Docker compose configuration\n\n```yaml\nservices:\n  kronos:\n    image: ghcr.io/ostafen/kronos\n    ports:\n      - '9175:9175'\n    environment:\n      - PORT=9175 # configuration properties can be overridden through environment variables\n      - STORE_PATH=/data/kronos.bolt\n    volumes:\n      - ./data:/data\n```\n\n## Registering a periodic schedule\nTo start getting some webhook notifications, let's add a new schedule which will be notified every minute:\n```bash\ncurl -X POST localhost:9175/schedules -H 'Content-Type: application/json' -d \\\n'{\n    \"title\": \"sample-schedule\",\n    \"description\": \"a sample schedule description\",\n    \"cronExpr\": \"0/1 * * * *\",\n    \"url\": \"your-webhook-address\",\n    \"isRecurring\": true,\n    \"startAt\": \"2023-02-19T11:34:00Z\",\n    \"endAt\": \"2023-02-19T11:38:00Z\"\n}'\n```\nOn success, the response of the server will be similar to the following:\n```json\n{\n    \"id\": \"1e6d146b-e3b7-4e5c-b7ce-b7b2860f461b\",\n    \"title\": \"sample-schedule\",\n    \"status\": \"not_started\",\n    \"description\": \"a sample schedule description\",\n    \"cronExpr\": \"0/1 * * * *\",\n    \"url\": \"your-webhook-address\",\n    \"metadata\": null,\n    \"isRecurring\": true,\n    \"createdAt\": \"2023-02-19T12:32:30.788562107+01:00\",\n    \"runAt\": \"0001-01-01T00:00:00Z\",\n    \"startAt\": \"2023-02-19T11:34:00Z\",\n    \"endAt\": \"2023-02-19T11:38:00Z\",\n    \"nextScheduleAt\": \"2023-02-19T11:34:00Z\",\n}\n```\n\nThe above table contains the full list of supported fields:\n\n| Parameter   |      Required      | Description |\n|-------------|:------------------:|:------------|\n| title |  true | the name of your schedule. It must be unique. |\n| description |  false   | an optional description of your schedule. |\n| isRecurring | false | whether the schedule is recurring or not. |\n| cronExpr | if isRecurring = true | cron expression for recurring schedules. |\n| url | true | webhook notification endpoint. |\n| runAt | if isRecurring = false | for non-recurring schedules, it indicates the instant the schedule will be triggered at. |\n| startAt | false | UTC start date of the schedule. Must be equal to runAt if isRecurring = false. |\n| endAt | false | UTC end date of the schedule. Must be equal to runAt if isRecurring = false. |\n| metadata | false | optional metadata which will be sent when triggering a webhook. |\n\n\n## REST API\n\n- **POST** `/schedules` - Register a new schedule\n- **GET** `/schedules/{id}` - Get details about an already existing schedule\n- **DELETE** `/schedules/{id}` - Delete a schedule\n- **POST** `/schedules/{id}/pause` - Pause an active schedule\n- **POST** `/schedules/{id}/resume` - Resume a paused schedule\n- **POST** `/schedules/{id}/trigger` - Immediately trigger a notification for a given schedule\n\n## Contact\nStefano Scafiti @ostafen\n\n## License\nKronos source code is available under the **MIT** License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostafen%2Fkronos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fostafen%2Fkronos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fostafen%2Fkronos/lists"}