https://github.com/sectorlabs/seo-slip
Catches SEO regressions by sampling and checking a website against a set of rules
https://github.com/sectorlabs/seo-slip
regression rules seo slip
Last synced: 8 months ago
JSON representation
Catches SEO regressions by sampling and checking a website against a set of rules
- Host: GitHub
- URL: https://github.com/sectorlabs/seo-slip
- Owner: SectorLabs
- License: mit
- Created: 2021-03-21T21:17:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T05:51:03.000Z (about 3 years ago)
- Last Synced: 2025-09-24T01:36:33.514Z (8 months ago)
- Topics: regression, rules, seo, slip
- Language: JavaScript
- Homepage:
- Size: 128 KB
- Stars: 5
- Watchers: 8
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://circleci.com/gh/SectorLabs/seo-slip/tree/master)
# About
## What this is
- A library to be used on writing tests to prevent SEO regression
- An extensible collection of customizable checkers for SEO
- A simple crawler that can be used to sample a website
## What this isn't
- GUI tool for SEO
- SEO general purpose checker or hint provider
- An in-depth crawler or exhaustive analyzer
## Who is expected to use it
- Software engineers
- Automation testers
- SEO specialists with medium JS and RegExp experience
# Simple example
```javascript
const { statusCodeChecker } = require('@sector-labs/seo-slip').checkers;
const { crawlPath } = require('@sector-labs/seo-slip').crawler;
const statusCodeRules = {
code: 200,
exceptions: {
'/': 301,
'/agents/': 301,
'/new-projects': 301,
'/mybayut': 301,
},
};
const checkers = [
statusCodeChecker(statusCodeRules),
];
const fullPath = 'https://www.bayut.com';
const maxDepth = 2;
const crawlerVariables = {};
crawlPath(fullPath, maxDepth, crawlerVariables, checkers, (results) => {
results.messages.forEach(message => console.log(message));
});
```
# Complex example
See how this library is used for a real website [here](https://github.com/SectorLabs/bayut-seo-slip)
# Documentation
See documentation [here](DOCUMENTATION.md)