Litmus Lab
A site checker that tests elements of a website.
get to testing 🚀
- run $
npx litmus-lab -s sodiumhalogen.com
- or install globally $
npm i -g litmus-lab
tests available:
- sitemap exists
- google analytics is added
- any 404s in console? (missing files)
- check for
<meta name="robots" content="nofollow" />
not present - check if the site is indexed/cached by Google
- check if site is up/available
- check for site redirects
- filter showing only fails
- add option to output JSON
future ideas:
- test multiple urls?
- check other pages on the site (check links/imgs) using sitemap
- add custom scripts $
litmus-lab sodiumhalogen.com --script=./custom-tests.js
- test monthly form submission confirmation (customer gets monthly contact form submission test)
- test monthly form submission confirmation (customer gets monthly contact form submission test)
- update Slack of failures $
litmus-lab -s sodiumhalogen.com --slack HOOK_URL
- SEO-related tests
- spell-checking
- check for invalid HTML
- STDs (site-transmited diseases, aka malware) 😝
- console errors
- add option to output JSON
- make a lambda that runs script
- build site that outputs a dashboard
- if HTTPS check SSL cert expire date
- HTTP count and suggestion if too high
- page loading speed checker
- size checker (JS, images, vodeos)