{"id":15563941,"url":"https://github.com/mrsarm/wt-check","last_synced_at":"2026-05-19T04:38:12.194Z","repository":{"id":146923782,"uuid":"62510378","full_name":"mrsarm/wt-check","owner":"mrsarm","description":"Webtask cron script that checks an URL response","archived":false,"fork":false,"pushed_at":"2016-07-04T12:10:44.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-06T06:44:20.245Z","etag":null,"topics":["cron-script","javascript-library","slack","webtask","webtask-platform"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrsarm.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":"2016-07-03T18:44:12.000Z","updated_at":"2017-07-12T08:10:48.000Z","dependencies_parsed_at":"2024-02-15T01:30:36.017Z","dependency_job_id":null,"html_url":"https://github.com/mrsarm/wt-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrsarm/wt-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fwt-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fwt-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fwt-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fwt-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrsarm","download_url":"https://codeload.github.com/mrsarm/wt-check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fwt-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33202006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"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-script","javascript-library","slack","webtask","webtask-platform"],"created_at":"2024-10-02T16:31:43.515Z","updated_at":"2026-05-19T04:38:12.179Z","avatar_url":"https://github.com/mrsarm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Webtask script to check sites status and health\n===============================================\n\nSmall app that runs as a cron script on [Webtask](https://webtask.io)\nplatform and **checks if an URL get a response**, and allows also to check\nif the **body match** with a given string or a regex expression.\n\nIf the check fails posts a message in a [Slack](https://slack.com) channel.\n\n![Message posted to a Slack channel with wt-check](https://mrdev-public.s3.amazonaws.com/wt-check/wt-check_slack_msg.png)\n\n\nRun\n---\n\nInstall on Webtask platform as a cron service running every 2 minutes with:\n\n    $ wt cron schedule \\\n         -n checkcron \\\n         --secret \"URL=http://theurltocheck.com/path/to/uri\" \\\n         --secret STATUS=200 \\\n         --secret TIMEOUT=5000 \\\n         --secret \"BODY=Text expected\" \\\n         --secret \"REGEX=Regex expression\" \\\n         --secret SLACK_TOKEN=THETOKEN \\\n         --secret SLACK_CHANNEL=CHANNELNAME \\\n         \"*/2 * * * *\" \\\n         check.js\n\n### Options\n\n* `-n checkcron`: the name of the cron process.\n* `--secret URL`: The URL to check.\n* `--secret STATUS`: (optional) The status expected, default 200.\n* `--secret TIMEOUT`: (optional) Milliseconds to wait the response\n  before aborting the request, default 10000 (10 seconds).\n* `--secret BODY`: (optional) A text expected in the body.\n* `--secret REGEX`: (optional), regex expression expected to match with\n  the body.\n* `--secret SLACK_TOKEN`: the Slack API token, go to https://api.slack.com/web#authentication\n  to get a token.\n* `--secret SLACK_CHANNEL`: the channel where to post the alerts.\n* `\"*/2 * * * *\"`: _cron_ configuration (eg. run every 2 min).\n\n\nYou can also install the script directly to Webtask platform without\nhaving this project downloaded in your local machine with:\n\n    $ wt cron schedule [OPTIONS] \\\n         https://raw.githubusercontent.com/mrsarm/wt-check/master/check.js\n\nTo see more options of _Webtask CLI_ go to https://webtask.io/docs.\n\nAbout\n-----\n\n**Source code**: https://github.com/mrsarm/wt-check\n\n**Author**: Mariano Ruiz (mrsarm@gmail.com)\n\n2016  |  Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsarm%2Fwt-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrsarm%2Fwt-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsarm%2Fwt-check/lists"}