Template of a custom feed generator service for the Bluesky network in Ruby
at 0.4 518 B view raw
1require_relative 'init' 2 3Dir[File.join(__dir__, 'feeds', '*.rb')].each { |f| require(f) } 4 5BlueFactory.set :publisher_did, 'did:plc:<your_identifier_here>' 6BlueFactory.set :hostname, 'feeds.example.com' 7 8# uncomment to enable authentication (note: does not verify signatures) 9# see Feed#get_posts(params, visitor_did) in app/feeds/feed.rb 10# BlueFactory.set :enable_unsafe_auth, true 11 12BlueFactory.add_feed 'kit', KitFeed.new 13BlueFactory.add_feed 'linux', LinuxFeed.new 14BlueFactory.add_feed 'starwars', StarWarsFeed.new