GitHub - jheidecker/lemmony: A better "All" browsing experience for small Lemmy instances
github.com
external-link
A better "All" browsing experience for small Lemmy instances - GitHub - jheidecker/lemmony: A better "All" browsing experience for small Lemmy instances

v.0.0.6

v0.0.4 - Per requests and concerns: Defaults changed and options added to prevent overloading servers, hitting rate-limiting, filtering to top x communities, etc!

Thanks for your support!

fmstrat
link
fedilink
English
162Y

I wrote http://github.com/fmstrat/lcs a while back which does similar, but only grabs Top feed communities to reduce load.

@[email protected]
link
fedilink
English
72Y

I have been using lcs on another account for a small instance and it has been amazing for making the instance feel connected. Thanks!

fmstrat
link
fedilink
English
12Y

Glad it’s working out for you.

@[email protected]
creator
link
fedilink
English
02Y

When I discovered, I felt bad for not checking. As for the load stuff. I intended and wanted to see All the things, and I don’t currently have resource problems for my instance. :) We’ll see how that fairs as things continue to grow!

@[email protected]
link
fedilink
English
8
edit-2
2Y

The script gets all of the publicly federated communities and “makes them known” to your local instance and then subscribes to them. “All” should be populated with activity from around the Lemmyverse.

Doesn’t that significantly increase the load on your instance and, if many instances use it, all instances? This system isn’t designed with the idea that each instance receives everything from every other instance.

It might be better to run this on a single dedicated site which people can come to to browse. If you could learn where each user had their account, you could send their upvotes, downvotes and comments to that instance.

@[email protected]
creator
link
fedilink
English
-12Y

It increases load during execution. Afterward it’s not significant. My instance is heavily instrumented and monitored. The load this incurs subscribing to 24000 communities is less than adding a single, moderately active user to your instance.

It’s a huge miss if the intended design was to silo information.

What this provides, as far as I’m concerned, is essential to prevent centralization to a few instances.

Is there a better way to do it inherently in Lemmy itself? Probably, and I am excited to help with that!

@[email protected]
link
fedilink
English
22Y

Well that sounds quite reasonable then. It definitely answers a need for better discoverability of material on Lemmy. And it would be great if something like this could ultimately be integrated into Lemmy itself.

@[email protected]
creator
link
fedilink
English
22Y

I think your idea is on the right track when thinking longer term and assuming the worst case in both design and admin behavior. :)

The whole network needs to be split into “active” and “archive.” New activity (or at the very least stubs to where new activity is happening) needs to be updated regardless of where it occurs without having to capture anything extra.

@[email protected]
link
fedilink
English
72Y

It is a significant difference if an instance has to federate literally every post made on the lemmyverse.

@[email protected]
creator
link
fedilink
English
-22Y

It increases load during execution. Afterward it’s not significant. My instance is heavily instrumented and monitored. The load this incurs subscribing to 24000 communities is less than adding a single, moderately active user to your instance.

It’s a huge miss if the intended design was to silo information.

What this provides, as far as I’m concerned, is essential to prevent centralization to a few instances.

Is there a better way to do it inherently in Lemmy itself? Probably, and I am excited to help with that!

@[email protected]
link
fedilink
English
32Y

Afterward it’s not significant.

Sorry, but unfortunately, it is, forcing a instance to sync literally every single post made on the lemmyverse.

@[email protected]
link
fedilink
English
3
edit-2
2Y

Uhh… if your script is subbing to 24k remote communities, those will continue to grow from then on, unless you start purging communities at some point. After one user subscribes to a community, all new content gets indexed and stored on your instance. Pict-rs can cache images short term (and eventually clear them out), but Postgres will start growing very quickly and never slow down until it fills up disks.

@[email protected]
creator
link
fedilink
English
-12Y

Yup. 256 GB should be enough database space for anyone though.

@[email protected]
link
fedilink
English
22Y

Dumb question I know, but do I leave this running on my instance or on my own computer?

@[email protected]
creator
link
fedilink
English
22Y

It doesn’t matter. Most of the work is happening on the instance, regardless of where the script is running.

@[email protected]
link
fedilink
English
82Y

A clean up would be nice, maybe something where if there are no subscribers, or local user actions on a community (votes, comments) after a while it starts to remove them.

@[email protected]
link
fedilink
English
32Y

Wouldn’t doing this result in a massive amount of unnecssary load on the larger instances?

@[email protected]
creator
link
fedilink
English
-22Y

I don’t really think so, but i’m open to working with anyone if they see this happening, up to deleting the entire project.

@[email protected]
link
fedilink
English
-12Y

Yes, it would.

LachlanUnchained
link
fedilink
English
22Y

So how does this operate now?

@[email protected]
creator
link
fedilink
English
02Y

Sorry, by comparing now to what; or was as that a superfluous “now,” like “come on now?”

LachlanUnchained
link
fedilink
English
32Y

Well the last one would have just mass Overloaded instances. Just wondering how this one operates differently to prevent that.

@[email protected]
creator
link
fedilink
English
02Y

I think it depends on your instance. This version (same script, just updated) allows for more options IF your instance IS mass Overloaded, or you are scared it will be.

@[email protected]
link
fedilink
English
72Y

The relevant change is this: https://github.com/jheidecker/lemmony/commit/9b0b7232a1a942615eb67a34f2526328a23fcdd5

It’s not meaningful though. It allows one to optionally limit to the top-n communities by active-user count, but the default is still unlimited and the docs still do nothing to explain the abusive load that excessive subscription puts on instances that host communities.

@[email protected]
creator
link
fedilink
English
-2
edit-2
2Y

My dude, I appreciate your spirit, but we’re not going to focus on your irrational fear of abuse. I’ll defend myself for being accused of any such thing, or for being irresponsible. This is intended to make things better, and there’s no evidence it’s doing anything other than that.

If you want to contribute, by all means, show us where there is a problem, other than in your imagination, and it will be seriously considered. Until then, your opinion is still valuable, but you are speaking with authority about something you know little of.

@[email protected]
link
fedilink
English
2
edit-2
2Y

My dude… If you want to contribute, by all means, show us where there is a problem, other than in your imagination, and it will be seriously considered.

I had no idea we were doing condescending pet names, this is a fun game. My sweet summer child…

  • Federation ain’t doing great.
  • Federated replication load scales with the number of instances multiplied by the number of communities they subscribe to.
  • Server counts are growing at ~10x per month.
  • The defaults of this script encourage single-user instances admins to bump their sub count ~70x from something like 100 communities to something more like 7000 communities.
  • Users of this script actually literally don’t understand how federation works. They think they’re proxying through to the upstream instance while they browse rather than getting firehosed with the entire lemmyverse by they’re asleep.

It doesn’t take a rocket surgeon to figure out that global federation worker queues are not in great shape, or that a default that encourages single-user instance owners who have no idea what they’re doing to bump their sub count 70x isn’t helping the situation. If you think this is in my head I can’t help you. But I can help others understand that running this script with default settings is an awful and unnecessary idea.

@[email protected]
creator
link
fedilink
English
-1
edit-2
2Y

Your argument does not gain validity by adding irrelevant verbosity:

Federation ain’t doing great.

The linked issue has nothing to do with this script or lemmony.

Federated replication load scales with the number of instances multiplied by the number of communities they subscribe to.

That’s a hasty generalization that you just made up.

Server counts are growing at ~10x per month.

That’s great! I hope they keep growing!

The defaults of this script encourage single-user instances admins to bump their sub count ~70x from something like 100 communities to something more like 7000 communities.

Nobody is encouraging anyone to do anything.

Users of this script actually literally don’t understand how federation works. They think they’re proxying through to the upstream instance while they browse rather than getting firehosed with the entire lemmyverse by they’re asleep.

That single user asked a question and got berated by a jerk.

It doesn’t take a rocket surgeon to figure out that global federation worker queues are not in great shape, or that a default that encourages single-user instance owners who have no idea what they’re doing to bump their sub count 70x isn’t helping the situation. If you think this is in my head I can’t help you. But I can help others understand that running this script with default settings is an awful and unnecessary idea.

You can help others understand what it is. That’s a great thing to do. It would be nice if you could do that without being a dick.

@[email protected]
link
fedilink
English
22Y

Federated replication load scales with the number of instances multiplied by the number of communities they subscribe to.

That’s a hasty generalization that you just made that up.

Sigh. No. No, that’s actually how the computational complexity scales and it’s not a difficult analysis to perform. Good luck to you though.

eroc1990
link
fedilink
English
92Y

For anyone who might know:

So if I’m understanding this right, the bot account you create for this is the one subscribing to every community, so it’s known to the local system, right? As long as I’m not mixing up my main account and my bot account, there should be no observable change on my own account?

How is storage affected on this? If the bot account is subscribing to a number of communities across the fediverse, all that remote content is going to take up quite a bit of space, no?

And will 2FA be supported at any point?

@[email protected]
creator
link
fedilink
English
2
edit-2
2Y

So if I’m understanding this right, the bot account you create for this is the one subscribing to every community, so it’s known to the local system, right?

Yes

As long as I’m not mixing up my main account and my bot account, there should be no observable change on my own account?

Correct, I have it functioning this way and it works great.

How is storage affected on this? If the bot account is subscribing to a number of communities across the fediverse, all that remote content is going to take up quite a bit of space, no?

It does and it will continue to grow. This not not something the tool takes care of, not cleaning up anything old or stale. Space management and “unfollow” is on the roadmap! Currently I can only speak for myself and it is EVERYTHING and it is about 0.25 GB / day of database, and 6-10 GB / day of images.

And will 2FA be supported at any point?

Not on the roadmap. I don’t know how api calls in general work with 2fa since I have not tested or enabled it on my instance. :( Sorry.

EDIT: Changed database/pictures ratio after double checking actual numbers and not looking at used filesystem. :(

eroc1990
link
fedilink
English
22Y

Hey, thanks for replying! Good to know about the subscription ownership. I only ran the discovery portion of the script just to dip my toe in the water, because I feared what would happen if I subscribed. That said, if I use the discovery flag, that’s just exposing the different communities to my instance, right? It’s not going to retrieve any remote content?

Good to see that storage management is roadmapped. I probably won’t invoke the Subscribe side of this for my bot account until then.

Understandable about 2FA. I’ll just be smart about my password usage and watch for any updates on that.

Thanks again!

@[email protected]
creator
link
fedilink
English
32Y

It retrieves the last 10 posts and adds the community reference to your local database. It is the same as putting “[email protected]” in the search box and clicking search. The retrieval happens whether you look at the results or not.

eroc1990
link
fedilink
English
22Y

Gotcha. Well that was a miscalculation on my part haha. Good to know for the future, though.

@[email protected]
link
fedilink
English
8
edit-2
2Y

Hosting an instance myself, I’m not amused, because if forces my instance to literally sync all content there is on the lemmyverse, drastically increasing traffic, storage use etc.

Please don’t force resource consumption beyond any rational usage!

@[email protected]
link
fedilink
English
1
edit-2
2Y

people should just block Federation from “Lemmy.management” to start with. one less activitypub abuser.

@[email protected]
creator
link
fedilink
English
12Y

People can defederate from an instance for any reason they want, but if I get what you’re trying to say: you think people should defederate from any instance that has a user that subscribes to all of their communities.

maybe_its_flare
link
fedilink
English
2
edit-2
2Y

deleted by creator

@[email protected]
link
fedilink
English
172Y

I was working on something like this to add a bot user and follow active communities but got distracted. Looks like I can quit that side project hahah

@[email protected]
link
fedilink
English
52Y

No. Keep at it. More alternatives is betterer.

maybe_its_flare
link
fedilink
English
3
edit-2
2Y

deleted by creator

@[email protected]
link
fedilink
English
102Y

I salute your efforts for working on it anyway

@[email protected]
link
fedilink
English
8
edit-2
2Y

ahah thanks, for posterity this is how far i got. Only needed to add the command to follow https://github.com/Death916/lemmy-federation-bot

@[email protected]
creator
link
fedilink
English
42Y

I’m happy to help or take PRs for lemmony. There is also https://github.com/Fmstrat/lcs which I didn’t know about until well into lemmony.

Brad Ganley
link
fedilink
English
42Y

If I’ve already run the last version recently is there a reason to run this new version immediately?

@[email protected]
creator
link
fedilink
English
12Y

Not really. If it worked before, it should work the same, just has more options for control and granularity.

@[email protected]
link
fedilink
English
82Y

Saving this for when I make my own personal instance.

maybe_its_flare
link
fedilink
English
4
edit-2
2Y

deleted by creator

@[email protected]
creator
link
fedilink
English
2
edit-2
2Y

I actually wrote it with the flip side of your centralization argument in mind. If a community exists outside of the popular ones a user may never even know of its existence. Having more show up SHOULD be better to prevent centralization no? It requires the users to change their browsing behaviour but at least they don’t have gonsearching offsite.

maybe_its_flare
link
fedilink
English
2
edit-2
2Y

deleted by creator

Sisko Urso
link
fedilink
English
42Y

This seems pretty helpful, will spin it up soon and see how it goes.

@[email protected]
link
fedilink
English
02Y

During the weekend all my communities jumped to 20-30 subscribers, but no participation. I went to see if almost all of the new subscribers were some variation of this bot.

I mean it is not doing anything wrong, it just feels like a huge letdown to see that none of the growth was organic. Are people really creating instances just for the sake of lurking around? What is the point?

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  • Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
  • No spam posting.
  • Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
  • Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
  • No trolling.

Resources:

> Any issues on the community? Report it using the report flag.

> Questions? DM the mods!

  • 1 user online
  • 218 users / day
  • 9 users / week
  • 244 users / month
  • 841 users / 6 months
  • 0 subscribers
  • 542 Posts
  • 8.93K Comments
  • Modlog