Working on pulling in servers dynamically. ?
It’s just hitting the /api/v1/instance endpoint for each of them to return data.
Working on pulling in servers dynamically. ?
It’s just hitting the /api/v1/instance endpoint for each of them to return data.
@Salastil I can put in just a list of domain names, and it automatically generates the page by crawling those domains and generating metadata.
@tassoman Better?
@nekofag There is no database. This is almost exactly the thing https://joinmastodon.org/servers is doing.
@LurkPerry It’s green for a reason.
@nekofag It’s a static site generated with Next.js. It fetches all that info at build time then generates the page. I can create a schedule in GitLab CI to rebuild it periodically.
The only thing I haven’t sorted out yet is dealing with remote images. I could proxy them, but I kinda want to figure out how to download them at build time and just add to the build.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.