{"id":24383278,"url":"https://github.com/firstandthird/site-match","last_synced_at":"2025-04-11T01:12:14.310Z","repository":{"id":29427795,"uuid":"121601460","full_name":"firstandthird/site-match","owner":"firstandthird","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-24T07:33:53.000Z","size":59,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T01:03:43.371Z","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/firstandthird.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}},"created_at":"2018-02-15T07:19:42.000Z","updated_at":"2018-04-17T12:34:29.000Z","dependencies_parsed_at":"2022-09-07T19:01:35.349Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/site-match","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsite-match","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsite-match/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsite-match/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fsite-match/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/site-match/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247909192,"owners_count":21016479,"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":"2025-01-19T10:14:04.790Z","updated_at":"2025-04-11T01:12:14.294Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Site Match\n\nHave you ever wanted to run across all of your project's URLs and spot visual differences?\n\nThen site-match is for you. Heavily inspired by [this article](https://meowni.ca/posts/2017-puppeteer-tests/) from [Monica Dinculescu](https://github.com/notwaldorf), site-match leverages [Puppeteer](https://github.com/GoogleChrome/puppeteer) to create a bunch of screenshots of your website and then compare them.\n\n# CLI binaries\n\n## `site-match`\n\n```text\nsite-match \u003cfile\u003e [domain] [options]\n\nGenerates screenshots according to yaml\n\nPositionals:\n  file    The file to get the config from\n  domain  optional domain to overwrite the config with\n\nOptions:\n  --version          Show version number                               [boolean]\n  --concurrent, -c   Concurrent tabs generating screenshots\n                                                          [number] [default: 10]\n  --ws-endpoint, -e  WebSocket for Puppeteer to connect to\n  -h, --help         Show help                                         [boolean]\n  ```\n\nHere's an example YAML file:\n\n```yaml\ndomain: https://leanin.org\ndevices:\n  mobile:\n     width: 414\n     pixelRatio: 2\n  desktop:\n     width: 1200\ncss: \u003e\n  *, *:before, *:after {\n    animation-duration: 0s !important;\n    transition-duration: 0s !important;\n  }\nurls:\n   - url: '/'\n   - url: '/'\n     name: 'bounce'\n     css: \u003e\n      .bounce-modal {\n        display: block;\n      }\n   - url: '/mentor-her/'\n     css: \u003e\n      .section-tall-wrapper {\n        min-height: auto !important;\n      }\n   - url: '/about/'\n   - url: '/education'\n ```\n\nWhich will generate these files:\n\n```text\n├── about-desktop.png\n├── about-mobile.png\n├── bounce-desktop.png\n├── bounce-mobile.png\n├── education-desktop.png\n├── education-mobile.png\n├── home-desktop.png\n├── home-mobile.png\n├── index.html\n├── mentor-her-desktop.png\n└── mentor-her-mobile.png\n```\n\n## `site-match-diff`\n\n```text\nsite-match-diff \u003cdir1\u003e \u003cdir2\u003e [options]\n\nCompares screenshots from first directory with second directory\n\nPositionals:\n  dir1  Directory to compare with\n  dir2  Directory to compare against\n\nOptions:\n  --version         Show version number                                [boolean]\n  --concurrent, -c  Concurrent comparisons                [number] [default: 10]\n  -h, --help        Show help                                          [boolean]\n```\n\nWhich will compare each file from `dir1` with `dir2`, complaining about any missing files and showing % of deviation per file. An HTML and a JSON files are generated to better preview the files and see the differences.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fsite-match","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fsite-match","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fsite-match/lists"}