Coder Social home page Coder Social logo

bluesky-feeds-tech's Introduction

bluesky-feeds-test

Sample feed generator implementation based on the official Bluesky example

When you run this server, it will create a minimal feed and the two other endpoints needed to host a feed. A good starting place would be the ./src/server.ts file that serves those endpoints. See the ./src/feeds/ directory for more. There is also an option MVP firehose feed example that can be enabled (see instructions below).

Setup

NOTE: Important to use Node 18 or the publish script will not work

npm install

Create a .env file

BLUESKY_SERVER=wss://bsky.social
# REDIS_URL=redis:/127.0.0.1:6379

HOSTNAME=localhost
PORT=3000

PUBLISHER_DID=did:example:bob

# These can be only local envs
PUBLISHER_HANDLE=user.bsky.social
PUBLISHER_PASSWORD=abcd-1234-efgh-5678

# BACKFILL_FEEDS=true

Optional for the "love" feed

  • Run a redis server
  • Uncomment and update the .env line for REDIS_URL
  • Uncomment the feeds line with both the minimal and feeds line

Run

npm run dev

Goto http://localhost:3000 and look at the listed links

Publish Feeds

Deploy this server somewhere (like fly.io) and set the HOSTNAME env to match it's location and PUBLISHER_DID to the account you want to place these feeds in.

Verify that the urls in the root page look good.

Locally update (no need to in "production") in the PUBLISerH_HANDLE and PUBLISHer_PASSWORD to an App Credential for the destination account.

npm run publish-feeds

bluesky-feeds-tech's People

Contributors

robpc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.