{"id":29251693,"url":"https://github.com/macrat/ayd-web-scenario-scheme","last_synced_at":"2025-12-15T04:39:37.550Z","repository":{"id":61920966,"uuid":"547913220","full_name":"macrat/ayd-web-scenario-scheme","owner":"macrat","description":"A headless browser controller for Ayd status monitoring tool.","archived":false,"fork":false,"pushed_at":"2023-05-12T05:50:54.000Z","size":1238,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-22T06:47:21.777Z","etag":null,"topics":["alerting","ayd","headless-browser","monitoring"],"latest_commit_sha":null,"homepage":"","language":"Go","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/macrat.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}},"created_at":"2022-10-08T14:51:53.000Z","updated_at":"2022-12-28T03:42:51.000Z","dependencies_parsed_at":"2023-07-19T01:27:16.318Z","dependency_job_id":null,"html_url":"https://github.com/macrat/ayd-web-scenario-scheme","commit_stats":null,"previous_names":["macrat/ayd-web-scenario-plugin","macrat/ayd-web-scenario"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/macrat/ayd-web-scenario-scheme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-web-scenario-scheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-web-scenario-scheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-web-scenario-scheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-web-scenario-scheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macrat","download_url":"https://codeload.github.com/macrat/ayd-web-scenario-scheme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macrat%2Fayd-web-scenario-scheme/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263427316,"owners_count":23464845,"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":["alerting","ayd","headless-browser","monitoring"],"created_at":"2025-07-04T01:08:10.918Z","updated_at":"2025-12-15T04:39:32.470Z","avatar_url":"https://github.com/macrat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ayd Web-Scenario\n================\n\nA headless browser controller for [Ayd](https://github.com/macrat/ayd) status monitoring tool.\n\n- [Quick Start](#quick-start)\n- [Reference](REFERENCE.md)\n\n\n## Quick Start\n\n### 1. Install\n\n~~Download a plugin binary from [release page](https://github.com/macrat/ayd-web-scenario-scheme/releases).~~ (pre built binary is not yet released)\nAnd place binary to some directory that is included in PATH environment variable.\n\n### 2. Make a scenario\n\nA scenario is a script to control headless browser, written in [Lua](https://www.lua.org/).\n\nA scenario looks lie above.\n\n``` lua\nt = tab.new(\"https://your-service.example.com\")\n\nt(\"input[name=username]\"):sendKeys(\"test-id\")\nt(\"input[name=password]\"):sendKeys(\"test-password\")\nt(\"input[type=submit]\"):click()\n\nassert.eq(t(\"h1\").text, \"welcome test-id!\")\n```\n\nPlease see also [reference](reference.md) for more information about features you can use in the scenario.\n\nYou can use REPL mode for testing how to write scenario. Please execute `ayd-web-scenario-scheme` without any argument.\n\n### 3. Test scenario in standalone mode\n\nIf you passed file path instead of URL, web-scenario works in the standalone mode that shows logs more readable style.\nYou can use `--head` flag for check what is going on on the window, and/or `--debug` flag for get more detail information.\n\n``` shell\n$ ayd-web-scenario-scheme /path/to/scenario.lua\n```\n\n### 4. Schedule using Ayd\n\nYou can use Web-Scenario as a plugin of Ayd for monitoring web services.\n\n``` shell\n$ ayd web-scenario:/path/to/scenario.lua\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacrat%2Fayd-web-scenario-scheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacrat%2Fayd-web-scenario-scheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacrat%2Fayd-web-scenario-scheme/lists"}