AD
Launch on Firsto—Launch your project today — get a DR57 backlink instantly.
BSkyInfo LogoBskyInfo
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryArticlesGuidesGlossaryBluesky SDKsSponsor
Submit
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryGuidesGlossaryArticlesBluesky SDKsSponsorSubmit
  1. SDKs
  2. /Python
  3. /bluesky-feed-generator
MarshalX

bluesky-feed-generator

A Python SDK for Bluesky and AT Protocol by MarshalX

🦋 Bluesky custom feed algorithms server in Python 🐍

GitHub Stats

293stars
89forks
7contributors
3open issues

Dates

Created:May 27, 2023
Last updated:November 17, 2025

README

The following content is from bluesky-feed-generator's GitHub repository. All rights reserved by the original author.

ATProto Feed Generator powered by The AT Protocol SDK for Python

Feed Generators are services that provide custom algorithms to users through the AT Protocol.

Official overview (read it first): https://github.com/bluesky-social/feed-generator#overview

Getting Started

We've set up this simple server with SQLite to store and query data. Feel free to switch this out for whichever database you prefer.

Next, you will need to do two things:

  1. Implement filtering logic in server/data_filter.py.
  2. Copy .env.example to .env
  3. Optionally implement custom feed generation logic in server/algos.

We've taken care of setting this server up with a did:web. However, you're free to switch this out for did:plc if you like - you may want to if you expect this Feed Generator to be long-standing and possibly migrating domains.

Publishing your feed

To publish your feed, simply run python publish_feed.py.

To update your feed's display data (name, avatar, description, etc.), just update the relevant variables in .env and re-run the script.

After successfully running the script, you should be able to see your feed from within the app, as well as share it by embedding a link in a post (similar to a quote post).

Running the Server

Install Python 3.7+.

Run setupvenv.sh to setup a virtual environment and install the dependencies:

./setupvenv.sh

Note: To get value for FEED_URI you need to publish the feed first

To run a development Flask server:

flask run

Warning The Flask development server is not designed for production use. In production, you should use production WSGI server such as waitress behind a reverse proxy such as NGINX instead.

pip install waitress
waitress-serve --listen=127.0.0.1:8080 server.app:app

To run a development server with debugging:

flask --debug run

Note: Duplication of data stream instances in debug mode is fine.

Warning: If you want to run server in many workers, you should run Data Stream (Firehose) separately.

Endpoints

  • /.well-known/did.json
  • /xrpc/app.bsky.feed.describeFeedGenerator
  • /xrpc/app.bsky.feed.getFeedSkeleton

License

MIT

Topics

atpatprotoblueskybluesky-feedbluesky-generatorbskycustom-feedfeed-generator

Related SDKs

snarfedbridgy-fed

🌉 A bridge between decentralized social networks

1108•Python
snarfedgranary

💬 The social web translator

500•Python
MarshalXpython-libipld

🏎️ Fast Python library to work with IPLD: DAG-CBOR, CID, CAR, multibase

22•Python
MarshalXatproto

The AT Protocol (🦋 Bluesky) SDK for Python 🐍

626•Python
bluesky-socialcookbook

A collection of example projects and scripts for atproto development.

189•Python
Gorcenskiskeeter-deleter

A script for auto-deleting Bluesky posts

85•Python

Resources

GitHub RepositoryProject Website

License

MIT

Author

MarshalX
MarshalX

Activity

Last commit: November 17, 2025
Commit frequency: Unknown

Our Sponsors

Your Brand Here!

50K+ engaged viewers every month

Limited spots available!

📧 Contact us via email🦋 Contact us on Bluesky
BSkyInfo LogoBskyInfo

The Most Comprehensive Bluesky Tools Directory

Stay updated with the latest Bluesky tools and ecosystem news 🦋

Bluesky butterfly logo
Quick LinksSubmit a ToolSponsorAboutLegal Information
ToolsFeed DirectoryLabeler DirectorySchedulingAnalyticsAll ToolsCategoriesCollectionsTags
ResourcesArticlesBluesky GuidesBluesky GlossaryBluesky SDKsBluesky ResourcesSkyRaffleMeida Coverage
Our ProductsRaffleBlueAiTeach ToolsLaiewAI affiliate listFirstoCoast Fire CalculatorAsphalt CalculatorDog Names World

This website may contain affiliate links

© 2025 BskyInfo. All rights reserved.