-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop relying on downloading from Fediverse Observer #471
Comments
It probably makes sense to filter out instances with barely any users: curl https://api.fediverse.observer/ -d '{"query": "{nodes(softwarename: \"\"){softwarename domain active_users_monthly}}"}' \
| jq -c '
.data.nodes
| map(select(.active_users_monthly >= 5))
| map(select(.softwarename | in({
"calckey":1,
"diaspora":1,
"fedibird":1,
"firefish":1,
"foundkey":1,
"friendica":1,
"glitchcafe":1,
"gnusocial":1,
"hometown":1,
"hubzilla":1,
"kbin":1,
"lemmy":1,
"mastodon":1,
"meisskey":1,
"microdotblog":1,
"misskey":1,
})))
| map(.domain)
' > data/fedi_instances.json This reduces the size of the data file to 45 KiB. |
I think if we need the Also, do we need this hugo-theme-meme/assets/js/fedishare.js Lines 6 to 31 in 6573fae
|
This needs some consideration @reuixiy.
Back when I introduced “Share to Fediverse”, downloading the list of instances from Fediverse Observer was necessary to determine software name in some cases. This can now be done more reliably by downloading
nodeinfo
file, we can remove the Fediverse Observer fallback here.We still need a list of instances for autocomplete. But since this isn’t essential functionality, maybe we can stop downloading the data dynamically (slow and error-prone) and instead bundle the list with MemE. It’s 210 KiB that can be generated with the following command:
But then this list would need occasional updating in this repository. Is that feasible?
The text was updated successfully, but these errors were encountered: