Coder Social home page Coder Social logo

mashirozx / pub-relay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noellabo/pub-relay

0.0 2.0 0.0 121 KB

A service-type ActivityPub actor that will re-broadcast anything sent to it to anyone who subscribes to it.

License: GNU Affero General Public License v3.0

Crystal 100.00%

pub-relay's Introduction

pub-relay (fork by noellabo)

...is a service-type ActivityPub actor that will re-broadcast anything sent to it to anyone who subscribes to it.

Endpoints:

  • GET /actor
  • POST /inbox
  • GET /.well-known/webfinger
  • GET /.well-known/nodeinfo
  • GET /nodeinfo/2.0
  • GET /stats

Operations:

  • for Mastodon or compatible implementation
    • Send a Follow activity to the inbox to subscribe
      • Object: https://www.w3.org/ns/activitystreams#Public
    • Send an Undo of Follow activity to the inbox to unsubscribe
      • Object of object: https://www.w3.org/ns/activitystreams#Public
  • for Pleroma or compatible implementation
    • Follow actor with mix command or pleroma_ctl
      • MIX_ENV=prod mix pleroma.relay follow https://your.relay.hostname/actor
      • ./bin/pleroma_ctl relay follow https://your.relay.hostname/actor
    • Unfollow actor with mix command or pleroma_ctl
      • MIX_ENV=prod mix pleroma.relay unfollow https://your.relay.hostname/actor
      • ./bin/pleroma_ctl relay unfollow https://your.relay.hostname/actor
  • Send anything else to the inbox to broadcast it
    • Supported types: Create, Update, Delete, Announce, Undo, Move

Requirements:

  • All requests must be HTTP-signed with a valid actor
  • Only payloads that contain a linked-data signature will be re-broadcast
    • If the relay cannot re-broadcast, deliver an announce activity
  • Only payloads addressed to https://www.w3.org/ns/activitystreams#Public will be re-broadcast
    • Deliver all activities except Create

Installation

Download the binaries.

Usage

TODO

Contributors

pub-relay's People

Contributors

rx14 avatar noellabo avatar gargron avatar

Watchers

James Cloos avatar  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.