Git Product home page Git Product logo

activitypub's Introduction

[WIP] Simple ActivityPub Server

まともに書き直すのは完成してから

参考サイト:

Webfinger

Webfingerは最初にhttps://${Domain}/.well-known/host-metaに問い合わせる
問い合わせた後、host-metatemplate=${URL}にアクセスする(${uri}acct:${User}@${Domain})

Person

ユーザーに関する詳細な情報(通知やフォローなど)を書く

{
  "@context": [ // 不明
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1"
  ],

  "url": "https://${Domain}/${User}", // ユーザーのプロフィールリンク?
  "type": "Person", // activitystreamsのPerson 明記

  "followers": "https://${Domain}/${User}/followers", // フォロワー 一覧
  "following": "https://${Domain}/${User}/following", // フォロー 一覧

  "id": "https://${Domain}/${User}", // ユーザーのID?
  "preferredUsername": "${User}", // ユーザーID
  "name": "${User}",  // 表示名
  "icon": { // Icon
      "mediaType": "image/png", // Iconの mime Type
      "type": "Image",
      "url": "https://${Domain}/${User}/icon" // IconのURL
  },
  "summary": "@${User} using on ${Domain}", // 概要

  "inbox": "https://${Domain}/${User}/inbox", // このユーザーへの宛先
  "outbox": "https://${Domain}/${User}/outbox" // このユーザーの発信元
}

openssl genrsa -out privatekey.pem 2048
秘密鍵
openssl rsa -in privatekey.pem -outform pem -pubout -out publickey.pem
公開鍵

めも First "2023-08-07T16:21:41Z" ~ "2023-08-06T15:39:38Z" Last "2022-11-26T02:10:49Z" ~ "2022-11-20T09:26:49Z" 新=>古 20件

activitypub's People

Contributors

aatomu avatar

Stargazers

Okuto Oyama avatar

Watchers

 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.