Skip to main content

Lemmy Community Seeder (LCS)

When launching a new Lemmy instance, your All feed will have very little populated. Also as a small instance, new communities that crop up may never make their way to you. LCS is a tool to seed communities, so your users have something in their All feed, right from the start. It tells your instance to pull the top communities and the communities with the top posts from your favorite instances (and subscribe to them with the specified user).

Usage

In docker-compose:

version: '2.1'

services:

lcs:
image: nowsci/lcs
container_name: lcs
environment:
LOCAL_URL: https://lemmy.domain.ext
LOCAL_USERNAME: user
LOCAL_PASSWORD: password
REMOTE_INSTANCES: '[
"beehaw.org",
"lemmy.world",
"lemmy.ml",
"sh.itjust.works",
"lemmy.one" ]'
POST_COUNT: 50
COMMUNITY_COUNT: 50
COMMUNITY_SORT_METHODS: '[
"TopAll",
"TopDay" ]'
COMMUNITY_TYPE: All
IGNORE: '[
"feddit.de",
"feddit.nl" ]'
SECONDS_AFTER_COMMUNITY_ADD: 17
MINUTES_BETWEEN_RUNS: 240
NSFW: false
restart: unless-stopped

Manually:

cd src
export LOCAL_URL=https://lemmy.domain.ext
export LOCAL_USERNAME=user
export LOCAL_PASSWORD=password
export REMOTE_INSTANCES='["beehaw.org","lemmy.world","lemmy.ml","sh.itjust.works","lemmy.one"]'
export POST_COUNT=50
export COMMUNITY_COUNT=50
export COMMUNITY_SORT_METHODS='["TopAll","TopDay"]'
export COMMUNITY_TYPE=All
export IGNORE='["feddit.de", "feddit.nl"]'
export SECONDS_AFTER_COMMUNITY_ADD=17
export MINUTES_BETWEEN_RUNS=240
export NSFW=false
npm install
npm start

Variables

VariableDescription
LOCAL_URLThe URL of your instance
LOCAL_USERNAMEUsername of a user for your instance
LOCAL_PASSWORDPassword of a user for your instance
REMOTE_INSTANCESAn array of remote instances you would like to pull top communities from
POST_COUNTThe number of top posts to pull from each instance, for each sort method
COMMUNITY_COUNTThe number of top communities to pull from each instance, for each sort method
COMMUNITY_SORT_METHODSThe sort methods you would like to search by
COMMUNITY_TYPEWhether to pull all communities or just local ones
IGNOREIf a string exists in the community name, it will be ignored
SECONDS_AFTER_COMMUNITY_ADDHow long to sleep after adding a new community to your instance
MINUTES_BETWEEN_RUNSHow long to wait between runs
NSFWTo add or not to add NSFW communities