{"id":16710718,"url":"https://github.com/mdgriffith/site-selfie","last_synced_at":"2026-07-16T08:32:57.375Z","repository":{"id":33291760,"uuid":"36936486","full_name":"mdgriffith/site-selfie","owner":"mdgriffith","description":null,"archived":false,"fork":false,"pushed_at":"2015-06-26T13:30:08.000Z","size":1818,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T21:04:04.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/mdgriffith.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":"2015-06-05T14:16:14.000Z","updated_at":"2015-06-26T20:07:53.000Z","dependencies_parsed_at":"2022-08-17T19:00:45.941Z","dependency_job_id":null,"html_url":"https://github.com/mdgriffith/site-selfie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mdgriffith/site-selfie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgriffith%2Fsite-selfie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgriffith%2Fsite-selfie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgriffith%2Fsite-selfie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgriffith%2Fsite-selfie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdgriffith","download_url":"https://codeload.github.com/mdgriffith/site-selfie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgriffith%2Fsite-selfie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35537751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":[],"created_at":"2024-10-12T20:09:24.573Z","updated_at":"2026-07-16T08:32:57.355Z","avatar_url":"https://github.com/mdgriffith.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Website Selfie\n\nTakes screenshots of your website and calculates an image diff for two shots that are comparable.  These screendiffs are then ordered by most changed and listed in a static html file for review.\n\nThis allows you to quickly see the differences in how your website looks locally vs live, or between browsers.\n\nThis code was written in a weekend and hasn't been fully transformed into a usable library.  At the moment it uses http://mechanical-elephant.com as an example.\n\nIndex.html in the example folder is comparing a dev version of mechanical-elephant and the live version.  I moved the elephant slightly so that a change can be see.\n\n\n# Installation\nClone this repository locally.\n\nInstall by running the following in the site-selfie directory\n\n    cabal update\n    cabal install --depenencies-only\n\nBegin the Selenium Server and possibly the chromedriver.  Then run:\n\n    cabal run\n\nYou'll have to modify Main.hs if you want to take screenshots of something other than http://mechanical-elephant.com.  Specifically, this section:\n\n```hs\n\nselfieConfig :: SelfieConfig\nselfieConfig = SelfieConfig {\n            bases =  [ Base { baseName=\"Dev\",  \n                              url=\"http://localhost:8000/\"\n                            }\n                     , Base { baseName=\"Live\", \n                              url=\"http://mechanical-elephant.com/\"\n                            }\n                     ]\n          , sitemap = [\"\", \"archive\", \"about\"]\n          , resolutions = [(1366, 768), (320, 320)]\n          , saveDir = \"siteshots\"\n          , webDriverConfigs = [ NamedWDConfig { configName=\"Firefox\"\n                                               , driverConfig=ffWDConfig\n                                               }\n                               ]\n         }\n```\n\n\n# Selenium Server\n\nInstall [Selenium Server](http://docs.seleniumhq.org/download/).  You can then start the selenium server with the following command:\n    \n    java -jar selenium-server-standalone-*.jar\n\n\n# Notes\n\nThe [chromedriver](https://code.google.com/p/selenium/wiki/ChromeDriver),  which has to be installed and run separately if you want to test in Chrome, currently takes a screenshot of only the viewable area as opposed to the entire web page.  This makes the screenshots difficult to compare against something like firefox.  A [Python workaround](https://snipt.net/restrada/python-selenium-workaround-for-full-page-screenshot-using-chromedriver-2x/) is available that could be translated over.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdgriffith%2Fsite-selfie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdgriffith%2Fsite-selfie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdgriffith%2Fsite-selfie/lists"}