https://github.com/polyvariant/scala-feed
Bluesky feed for Scala
https://github.com/polyvariant/scala-feed
Last synced: about 1 month ago
JSON representation
Bluesky feed for Scala
- Host: GitHub
- URL: https://github.com/polyvariant/scala-feed
- Owner: polyvariant
- License: mit
- Created: 2024-11-26T20:28:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-12T11:30:18.000Z (7 months ago)
- Last Synced: 2025-08-12T13:34:02.999Z (7 months ago)
- Language: TypeScript
- Size: 160 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scala feed generator for Bluesky
This repository is a customized fork of https://github.com/bluesky-social/feed-generator
Want to be up to date with Scala news on Bluesky? Just follow the feed at https://bsky.app/profile/michal.pawlik.dev/feed/scala-feed
# Implementation details
## Content collection
The [FirehoseSubscription.ts](src/FirehoseSubscription.ts) is a class that collects selected messages in the database. It also removes them from the feed if they are removed upstream.
## Content filtering
The `isAboutScala` function defined in [src/scala/index.ts](src/scala/index.ts) decides if content should be saved to database.
## Feed generation algorithm
You can find the algorithm generating the feed in [src/algos/scala-feed.ts](src/algos/scala-feed.ts). It simply fetches all known records from database sorted by indexing time, there's no sophisticated logic involved.