bluesky-social / feed-generator

ATProto Feed Generator Starter Kit
MIT License
919 stars 329 forks source link

Algo vs filter #84

Open eric-burel opened 6 months ago

eric-burel commented 6 months ago

Hi, I feel like naming the example algorithm whats-alf can be confusing as well as the following part of the readme:

1. Implement indexing logic in `src/subscription.ts`. 

   This will subscribe to the repo subscription stream on startup, parse events and index them according to your provided logic.

2. Implement feed generation logic in `src/algos`

   For inspiration, we've provided a very simple feed algorithm (`whats-alf`) that returns all posts related to the titular character of the TV show ALF. 

When you look at it, it's actually an algorithm that show the latest posts. The logic that filters ALF related posts is actually living in the subscription, when messages are indexed.

This makes sense because for simple feeds, you'll probably want to index as little as possible, so most of the filtering will happen there.

The change I would propose would be:

What do you think?