AD
Boost Your Brand on BlueSky—Exclusive banner space to amplify your reach within the BlueSky community.
BSkyInfo LogoBskyInfo
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryArticlesGuidesGlossaryBluesky SDKsSponsor
Submit
All ToolsCategoriesCollectionsFeed DirectoryLabeler DirectoryGuidesGlossaryArticlesBluesky SDKsSponsorSubmit
  1. SDKs
  2. /JavaScript
  3. /Contrails
jcsalterego

Contrails

A JavaScript SDK for Bluesky and AT Protocol by jcsalterego

Contrails is an ATProto Feed Generator backed by Cloudflare Workers and Bluesky Search.

GitHub Stats

81stars
95forks
1contributors
9open issues

Dates

Created:May 31, 2023
Last updated:April 27, 2025

README

The following content is from Contrails's GitHub repository. All rights reserved by the original author.

Contrails

Contrails is an ATProto Feed Generator backed by Cloudflare Workers and Bluesky Search.

Fork or copy the repository and edit CONFIG.md to define your feed generator.

Deploy right from GitHub Actions to Cloudflare Workers.

The current release is 0.2.5.

Requirements

  • Bluesky Social account
  • GitHub account (Sign up or Login)
  • Cloudflare account (Sign up or Login)
  • A moderate-to-high tolerance for adventure

Installation & Configuration: The Short Version

  1. Create a Cloudflare Worker
  2. Create a Cloudflare API Token (the Edit Workers template is fine)
  3. Create a Bluesky App Password
  4. Fork this repository
  5. In your fork's Settings > Secrets and variables > Actions, set the following:
  • Variable: BLUESKY_HANDLE
  • Variable: CLOUDFLARE_ACCOUNT_ID
  • Variable: CLOUDFLARE_WORKER_NAME
  • Secret: BLUESKY_APP_PASSWORD
  • Secret: CLOUDFLARE_API_TOKEN
  1. Edit CONFIG.md in your fork
  2. Go to Actions > 1. Check Requirements, select Run Workflow, refresh and wait for completion
  3. Go to Actions > 2. Deploy to Cloudflare, select Run Workflow, refresh and wait for completion
  4. Go to Actions > 3. Publish Feed Generator, select Run Workflow, refresh and wait for completion
  5. Visit the BLUESKY_HANDLE profile, e.g. https://bsky.app/profile/jcsalterego.bsky.social and then the Feeds tab

The longer (and incomplete) instructions can be found in INSTALL.md.

Upgrading

The first step before any major upgrade is to make a copy of your markdown config file. Your best bet is to save it in a separate directory such as backup_configs/, or you will have to remember to set isEnabled to false so it doesn't get picked up as a live config!

In the event you'd like to pull in the latest changes into a fork of Contrails, GitHub has great documentation here: GitHub Docs: Syncing a fork

Changelog

0.2.5

  • Fixes deleteFeedGenerator #28

0.2.4

  • denyList support. #13

0.2.3

  • FIX: publishFeedGenerator threw an error. #19

0.2.2

  • FIX: Quoted phrases such as "blue sky" work again. This will require case-insensitive matches, e.g. blue sky, Blue Sky or BLUE SKY.

0.2.1

  • +reposts and +replies support. Note: Reposts will not be attributed ("reposted by User").

0.2.0

  • Pagination
  • Safe Mode

0.1.0

  • New search term type: Users

0.0.4

  • New search term type: Pinned posts

0.0.3

  • Multiple feed support
  • Ignore blockquotes in CONFIG.md (to allow comments).

0.0.2

  • Delete Feed Generator workflow

0.0.1

  • Initial Release

Etymology

Ed. Note: Bluesky Search is now called Palomar.

Publishing Diagram

flowchart LR
    subgraph Bluesky
        PDS["PDS"]
    end
    subgraph GitHub
        subgraph MD_Config["CONFIG.md"]
            searchTerms
        end
        subgraph CloudflareDeploy["Cloudflare Deploy"]
            Worker_JS
            CloudflareApiToken("CLOUDFLARE_API_TOKEN")
            CloudflareAccountID("CLOUDFLARE_ACCOUNT_ID")
            CloudflareWorkerName("CLOUDFLARE_WORKER_NAME")
        end
        subgraph BlueskyDeploy["Bluesky Deploy"]
            PublishFeedGenerator
            BlueskyHandle("BLUESKY_HANDLE")
            BlueskyAppPassword("BLUESKY_APP_PASSWORD")
        end
        MD_Config --> Worker_JS["worker.js"]
        MD_Config --> PublishFeedGenerator["publishFeedGenerator.ts"]
    end
    subgraph "Cloudflare Worker"
        CloudflareWorker[worker.js]
    end
    CloudflareDeploy -->|Deploy to Cloudflare| CloudflareWorker
    BlueskyDeploy -->|Publish Feed Generator| PDS

Query Diagram

sequenceDiagram
    actor CoffeeTeaLover
    participant Bluesky
    participant Cloudflare as Cloudflare Worker
    participant Bluesky Search
    CoffeeTeaLover->>+Bluesky: get Coffee&Tea custom feed
    Bluesky->>+Cloudflare: get Coffee&Tea custom feed
    Cloudflare->>+Bluesky Search: search "coffee" and "tea"
    Bluesky Search->>+Cloudflare: posts matching "coffee" and "tea"
    Cloudflare->>+Bluesky: IDs of posts matching "coffee" and "tea"
    Bluesky->>+CoffeeTeaLover: posts for Coffee&Tea custom feed

LICENSE

2-Clause BSD

Topics

blueskycloudflare-workersfeed-generator

Related SDKs

mary-extatcute

a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky.

318•JavaScript
aliceisjustplayinglabeler-starter-kit-bsky

Use this repository to get started with your own Bluesky Labeler.

167•JavaScript
bluesky-socialfeed-generator

ATProto Feed Generator Starter Kit

1856•JavaScript
bluesky-socialatproto

AT Protocol Reference Implementation (TypeScript)

8526•JavaScript
skyware-jsfirehose

A dead simple client for subscribing to an ATProto Relay ("firehose").

37•JavaScript
skyware-jsjetstream

A fully typed client for the Bluesky Jetstream (https://github.com/bluesky-social/jetstream) service.

47•JavaScript

Resources

GitHub Repository

License

NOASSERTION

Author

jcsalterego
jcsalterego

Activity

Last commit: April 27, 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 listFirsto

This website may contain affiliate links

© 2025 BskyInfo. All rights reserved.