Are you tired of centralized databases? Manually updating links? Linear topological structures? Try Webtori!!
Webtori is a simple and flexible script to automatically update webring links. It supports up to six directions of page relationships (prev
, next
, above
, below
, behind
, and in front
), allowing for complex topological structures represented by surfaces in up to four dimensions. For example, the humble torus can be accomplished with a collection of left-right webrings and up-down webrings linked together. More complex structures are yet possible:
To install, copy the webtori.js file to your root directory, and add a GitHub Action (or its equivalent with tools like Heroku CI) with the script in main.yaml. If you’d like, you can also add the axios and cheerio modules to your package.json file as dependencies, which makes installing them in the script automatic (so you can delete two lines of code):
{
// other stuff
"dependencies": {
// other dependencies
"axios": "^0.27.2",
"cheerio": "^1.0.0-rc.12",
// ...
},
// ...
}
Then have all sites in the webring add id’s wr-link-prev
, wr-link-next
, etc. to the <a>
links of the webring in their HTML. This will allow each site to automatically scrape and update their own links accordingly. Enjoy!