Skip to content
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

[Request] Add Icon property of "https://neodb.net/servers.json" #947

Open
lcandy2 opened this issue Feb 28, 2025 · 5 comments
Open

[Request] Add Icon property of "https://neodb.net/servers.json" #947

lcandy2 opened this issue Feb 28, 2025 · 5 comments

Comments

@lcandy2
Copy link

lcandy2 commented Feb 28, 2025

No description provided.

@alphatownsman
Copy link
Member

it can be pulled from https://docs.joinmastodon.org/methods/instance/ by apps.

I don't think we should add it to servers.json of this repo, but open for PR if anyone want to automate this in doc generation step

@lcandy2
Copy link
Author

lcandy2 commented Feb 28, 2025

yeah I know it can be pulled from API, but if there's a server list. I couldn't pull every instance one by one.

In https://api.joinmastodon.org/servers, they have proxied_thumbnail as icon added in json files.

I may suggest the servers.json extends the struct from https://api.joinmastodon.org/servers

@alphatownsman
Copy link
Member

I may suggest the servers.json extends the struct from https://api.joinmastodon.org/servers

I'm open for anyone want to submit a PR on automate this in doc generation step.

@lcandy2
Copy link
Author

lcandy2 commented Mar 7, 2025

the schema of api.joinmastodon.org/servers is like this

interface Root {
  domain: string
  version: string
  description: string
  languages: string[]
  region: string
  categories: string[]
  proxied_thumbnail: string
  blurhash?: string
  total_users: number
  last_week_users: number
  approval_required: boolean
  language: string
  category: string
}

Could I make a github action to update version, total_users, last_week_users automatically?

@alphatownsman
Copy link
Member

Yes, code for doc has been moved to https://github.com/neodb-social/neodb-doc , you may PR from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Wishlist
Development

No branches or pull requests

2 participants