tgxn / lemmy-explorer

Instance and Community Explorer for Lemmy
https://lemmyverse.net/
111 stars 9 forks source link

Feature: Take advantage of the fediseer tags #148

Closed db0 closed 11 months ago

db0 commented 1 year ago

What do you want to see? The Fediseer recently added self-tagging functionality, where instance admins can specify some tags that represent their instance

The lemmy explorer could utilize these tags to allow for easier filtering and finding appropriate communities

For example, all the ttrpg instances image

The /api/v1/whitelist endpoint allows to filter by one of more tags

image

tgxn commented 12 months ago

is there an endpoint to retrieve all possible tags, potentially along with the amount of instances using that tag? would be cool to add a filtering thing with it too

i'll see about adding the tags under the instance details.

db0 commented 12 months ago

No, but it should be pretty easy to add an endpoint to see all existing tags, sure. Created https://github.com/Fediseer/fediseer/issues/46

tgxn commented 11 months ago

is there any specific order to the tags? image

I can definitely add them all to the instance-view page (and make a new sub-page for the rest of the fediseer data!), i wonder how I could display them on the main page (other than adding a filter)

db0 commented 11 months ago

No, they're unordered (so basically the order they're pulled by postgres)

db0 commented 11 months ago

GET on /v1/tags added

image

tgxn commented 11 months ago

OoOoo, I can use that to find the most popular tags, and maybe just show them on the main page.. I'll have a play

tgxn commented 11 months ago

ok, i'm getting the data from /tags and getting 119 results

i've mapped them into an array where i can use the count to rank them image

i noticed that there are several tags that are applied to instances that do not show up in /tags api... image

it would be nice to have standard tags for the hosting location, or a separate field perhaps? that way I can parse that too.

tgxn commented 11 months ago

few more discoveries:

db0 commented 11 months ago

you now have 2k+ "instances" on fediseer, I'm guessing there's other non-lemmy instances in there? would it be possible to filter /v1/whitelist byy software?

Sure. Can you open a feature request?

i noticed that there are several tags that are applied to instances that do not show up in /tags api...

This is because the tags api is converting all tags to lowercase in order to combine them

tgxn commented 11 months ago

I'll open a feature request for the filtering, thanks 👍