{"id":16594117,"url":"https://github.com/jsdf/they-live","last_synced_at":"2025-10-29T12:30:24.811Z","repository":{"id":51860132,"uuid":"87275212","full_name":"jsdf/they-live","owner":"jsdf","description":"serverless server monitoring with near-zero running costs","archived":false,"fork":false,"pushed_at":"2022-12-06T20:57:56.000Z","size":49,"stargazers_count":5,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-09T22:09:07.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsdf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-05T06:40:09.000Z","updated_at":"2022-02-26T01:37:07.000Z","dependencies_parsed_at":"2023-01-23T15:01:59.334Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/they-live","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fthey-live","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fthey-live/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fthey-live/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Fthey-live/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/they-live/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857802,"owners_count":16556055,"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","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":[],"created_at":"2024-10-11T23:45:12.624Z","updated_at":"2025-10-29T12:30:19.531Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![THEY LIVE](https://i.imgur.com/xjcXdWS.jpg)\n\nTHEY LIVE is a simple endpoint health monitor with email notifications, which\nruns on AWS free tier services (Lambda, SimpleDB, SES), so it costs next-to-nothing to run.\n\n### instructions\n\nfirst, clone this repo\n\ncopy [config.default.js](config.default.js) to config.js and customise it:\n\n```js\nmodule.exports = {\n  region: 'us-east-1', // aws region for simpledb \u0026 ses\n  websites: {\n    // groups of websites can be defined to ping at different intervals.\n    // the keys of this object must match the 'group' parameter passed to the\n    // cron event in serverless.yml (see below)\n    oncePer10Mins: [\n      {\n        name: 'example-site', // unique site name\n        url: 'http://example.com/health', // endpoint to request for healthcheck\n      },\n    ],\n    // another group which pings at a different interval\n    oncePerDay: [\n      {\n        name: 'other-site',\n        url: 'http://example.com/health2',\n        attempts: 3, // will retry this many times\n        interval: 15, // seconds between retries\n      },\n    ],\n  },\n  notifyTo: ['someguy@example.com'], // email to notify of health changes\n  notifyFrom: 'someguy@example.com', // email to send notification from\n};\n```\n\nin [serverless.yml](serverless.yml) (note the 'group' param)\n```yaml\nfunctions:\n  cron:\n    handler: handler.cron\n    events:\n      - schedule:\n        rate: rate(10 minutes)\n        input:\n          group: oncePer10Mins\n      - schedule:\n        rate: rate(1 day)\n        input:\n          group: oncePerDay\n```\n\nrun `yarn install` to install dependencies\n\nrun `aws configure` if you haven't already, to set up aws credentials\n\nrun `node migrate.js` to create the AWS SimpleDB 'domain' (basically a database)\n\nverify your email address [in AWS SES console](https://console.aws.amazon.com/ses/home?region=us-east-1#verified-senders-email:)\n\ndeploy using serverless framework\n\n```bash\nyarn global add serverless # install globally\nserverless deploy\n```\n\nwatch for a successful invocation [in lambda console](https://console.aws.amazon.com/lambda/home?region=us-east-1#/functions/theylive-dev-cron?tab=monitoring). scroll down on this page to see the logs in cloudwatch\n\nyou can also test that it runs locally\n\n```bash\nyarn local --data='{\"group\": \"oncePerDay\"}'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fthey-live","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Fthey-live","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Fthey-live/lists"}