{"id":22018599,"url":"https://github.com/codeofnode/web-monitor","last_synced_at":"2026-04-24T23:31:44.139Z","repository":{"id":93589636,"uuid":"101093890","full_name":"codeofnode/web-monitor","owner":"codeofnode","description":"A URL based web monitor to monitor if a service is healthy.","archived":false,"fork":false,"pushed_at":"2017-08-23T11:51:35.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T23:39:46.362Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeofnode.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":"2017-08-22T18:15:19.000Z","updated_at":"2017-08-22T18:16:25.000Z","dependencies_parsed_at":"2023-04-05T13:30:20.555Z","dependency_job_id":null,"html_url":"https://github.com/codeofnode/web-monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeofnode/web-monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeofnode%2Fweb-monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeofnode%2Fweb-monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeofnode%2Fweb-monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeofnode%2Fweb-monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeofnode","download_url":"https://codeload.github.com/codeofnode/web-monitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeofnode%2Fweb-monitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-30T05:12:42.662Z","updated_at":"2026-04-24T23:31:44.134Z","avatar_url":"https://github.com/codeofnode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-monitor\n\u003e A URL based web monitor to monitor if a service is healthy.\n\n## How to start\n```\n$ npm install\n$ npm start\n```\n\n## How to use with options\n```\n$ npm start -- -- [-i=1] [-m=file] [-d=logs] [-l=dev] [-u=url.json]\n```\n* Keep a `url.json` (can be configured with -u) file in process cwd directory\n* -i=1 intervals (in number of seconds), default 1 seconds\n* -d=logs directory (can be configured with -d), where the file logs will be stored\n* -m=file what kind of monitoring is required. Currently two options `file` (will save the request, response time, pass/fail logs on file) and `cmd` will log the same on command line.\n* we can have any more variety of logger, by putting them in `src/loggers` directory\n* -l=dev the log levels, sometimes if we want to also view the pass events, options are prod,test,dev based on which the logs will be displayed/logged.\n\n# Directory structure\n* index.js - the main entry file\n* lib - the independent liraries like `request`, `util` etc\n* src - the source code in form of modules (classes). There are two classes\n  * Service (that's the main service)\n  * Watchman (that's main web watcher, it read the requests and requirments to validate, on each interval)\n* loggers - the directory which will keep all the loggers. And a specific logger will be inititated as per the -m option passed. These will will keep on listening to the request passf/faile events `watchman` instance. and accordingly log the information.\n\n## How to test\n```\n$ npm test\n```\n\n## How to test, finding coverage, build, running lint, docs everything\n```\n$ npm run all\n```\n\n## License\nMIT © [Ramesh Kumar](codeofnode-at-the-rate-gmail-dot-com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeofnode%2Fweb-monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeofnode%2Fweb-monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeofnode%2Fweb-monitor/lists"}