https://github.com/stscoundrel/gangleri
Walk through all pages in a sitemap
https://github.com/stscoundrel/gangleri
gangleri nodejs sitemap typescript walker
Last synced: 5 months ago
JSON representation
Walk through all pages in a sitemap
- Host: GitHub
- URL: https://github.com/stscoundrel/gangleri
- Owner: stscoundrel
- License: mit
- Created: 2020-12-23T19:31:15.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-21T23:17:00.000Z (11 months ago)
- Last Synced: 2025-08-09T06:41:35.488Z (11 months ago)
- Topics: gangleri, nodejs, sitemap, typescript, walker
- Language: TypeScript
- Homepage:
- Size: 1.75 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gangleri
Walk through pages in a sitemap.
Simply connects to each page in a sitemap. Useful if connecting to a page triggers action, like revalidation or build.
### Install
`yarn add gangleri`
### Usage
Visiting sites in sitemap.xml.
```javascript
const gangleri = require('gangleri');
const sitemapUrl = 'https://yoursite.com/sitemap.xml'
// Second argument is number of allowed simultaneous connections.
await gangleri.visitSitemap(sitemapUrl, 10)
```
Visiting sites in array of urls.
```javascript
const gangleri = require('gangleri');
const urls = [
'https://page.com/1',
'https://page.com/2',
'https://page.com/3',
'https://page.com/4',
]
// Second argument is number of allowed simultaneous connections.
await gangleri.visit(urls, 2)
```
#### Example Next.js / Vercel projects using Gangleri:
- [Old Icelandic Dictionary](https://github.com/stscoundrel/gangleri-zoega)
- [Old Norse Dictionary](https://github.com/stscoundrel/gangleri-cleasby-vigfusson)
#### What's in the name?
Gangleri means "strider", "wanderer", or literally, "walker" in Old Norse. It comes from Old Norse verb "ganga" (to walk). Gangleri was an alias used by Swedish king Gylfi in Prose Edda, while appearing in disguise.