this repo has no description

documentation: Updating popular feed example

Signed-off-by: Nick Gerakines <12125+ngerakines@users.noreply.github.com>

+18
+14
examples/popular/README.md
··· 2 2 3 3 This configuration file includes a feed that watches for posts with a tag. The feed is then sorted by a simple "popular" algorithm that takes into account the number of likes, replies, and quotes. 4 4 5 + ## How It Works 6 + 7 + The configuration file includes the `query` block that sets the query to sort by popular. The popular algorithm is relatively simple: 8 + 9 + S / pow((T + 2), G) 10 + 11 + `S` is the score of the post. When the post is first encountered, it is given a score of 1. Each time a reply is made or the post is liked, the score is incremented by 1. 12 + 13 + `T` is the time since the post was created in hours. 14 + 15 + `G` is the gravity factor. The higher the gravity, the faster the score will decrease over time. 16 + 17 + If two posts have the same score, then they are sorted by the time they were indexed by Supercell. 18 + 5 19 ## Instructions 6 20 7 21 1. Create the feed and replace `ATURI` with the full record AT-URI. Should look like `at://YOUR_DID/app.bsky.feed.generator/some_rkey`
+4
examples/popular/config.yml
··· 2 2 - uri: "ATURI" 3 3 name: "Popular" 4 4 description: "Popular posts with the tag #Supercell." 5 + query: 6 + type: popular 7 + gravity: 2.0 8 + limit: 300 5 9 matchers: 6 10 - type: rhai 7 11 script: "/path/to/popular.rhai"