1
0
Fork
You've already forked cssa-webring-v2
0
No description
  • Go 88.5%
  • CSS 9.6%
  • Dockerfile 1.9%
2026年05月25日 20:40:31 -05:00
.gitignore include go.sum 2026年05月16日 12:14:52 -05:00
compose.yaml add docker config 2026年05月16日 12:13:58 -05:00
Dockerfile fix setup 2026年05月16日 12:15:50 -05:00
go.mod initial commit 2026年05月16日 12:07:47 -05:00
go.sum include go.sum 2026年05月16日 12:14:52 -05:00
README.md new api endpoint 2026年05月25日 20:40:31 -05:00
styles.css new api endpoint 2026年05月25日 20:40:31 -05:00
webring.go new api endpoint 2026年05月25日 20:40:31 -05:00

CSSA Webring V2

An alternate API to the "Official" CSSA Webring. The original API serves a JSON file which requires parsing at runtime. I prefer avoiding JavaScript when possible and loading external resources with PHP causes slowdowns when accessing the site. This API serves an HTTP redirect to the requested site rather than a file.

Running

Simply run docker compose up. The site will be accessible on port 8900.

API Description

/[?curr=<url>&si=<url>]
Display sites in the webring using an iframe. This serves as a good workaround in cases where links are broken. If no curr query parameter is provided, it will display a random site. If an si query parameter is passed and there is no curr parameter, serve a random site that does not have the si URL.
/prev/<url>
Access the previous entry in the webring
/next/<url>
Access the next entry in the webring
/random[?si=<url>]
Access a random entry in the webring. If an si query parameter is passed, do not serve the site corresponding to that URL.