a webring server written in half an hour https://webring.umbreon.online
Go to file
2023-09-08 07:44:04 -04:00
.gitignore webring 2023-07-01 15:41:49 -04:00
.nvmrc meta stuffs 2023-07-01 15:48:07 -04:00
dprint.json add dprint 2023-09-05 21:42:15 -04:00
index.mjs the redirects are not meant to be permanent 2023-09-08 07:44:04 -04:00
LICENSE meta stuffs 2023-07-01 15:48:07 -04:00
package-lock.json add dprint 2023-09-05 21:42:15 -04:00
package.json add dprint 2023-09-05 21:42:15 -04:00
README.md update readme with config instructions and stuff 2023-09-05 22:12:28 -04:00
webring.txt.sample webring 2023-07-01 15:41:49 -04:00

webring server

run it

no external dependencies! no need to npm i! woo!

cp webring.txt.sample webring.txt && $EDITOR webring.txt
npm run start


the server listens on port $PORT (default 80) and loads the list of participating sites from the file $SITES_FILE (default webring.txt).

the sites file is a newline-separated list of URLs; leading and trailing whitespace, empty lines, and lines starting with # are ignored. you can test out the format using this regexr link.

participating sites should link to the endpoints /prev?from=<site> and /next?from=<site> from their site, where <site> is the URL for their site from webring.txt. for example, a site in the webring as https://example.net/~someone should link to /prev?from=https://example.net/~someone and /next?from=https://example.net/~someone on whatever host this server is accessible from.