Fedify: an ActivityPub server framework's avatar

Fedify: an ActivityPub server framework

@[email protected] · 7 following · 371 followers

Fedify is a TypeScript library for building federated server apps powered by ActivityPub and other standards, so-called fediverse. It aims to eliminate the complexity and redundant boilerplate code when building a federated server app, so that you can focus on your business logic and user experience.

WebsiteGitHubJSRnpm

https://fedify.dev/

https://github.com/dahlia/fedify

https://jsr.io/@fedify/fedify

https://www.npmjs.com/package/@fedify/fedify

wolf aliceif's avatar
wolf aliceif

@[email protected] · Reply to aliceif's post

@aliceif

console output for fedify node hollo.x27.one
on the left, an ascii art version of the orange on black x27 server icon
on the right, information

Software:
  hollo v0.2.0
  https://docs.hollo.social/
  https://github.com/dahlia/hollo
Protocols:
  activitypub
Outbound services:
  atom1.0
Users:
  2 (total)
  1 (active half year)
  1 (active month)
Local posts:
  19
Local comments:
  16
Open registrations:
  No
console output for fedify node hollo.x27.one on the left, an ascii art version of the orange on black x27 server icon on the right, information Software: hollo v0.2.0 https://docs.hollo.social/ https://github.com/dahlia/hollo Protocols: activitypub Outbound services: atom1.0 Users: 2 (total) 1 (active half year) 1 (active month) Local posts: 19 Local comments: 16 Open registrations: No
Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

Starting with 1.3.0, you can customize the User-Agent header for every HTTP request that Fedify makes.

https://unstable.fedify.dev/manual/federation#useragent

userAgent

This API is available since Fedify 1.3.0.

The options for making User-Agent header in the HTTP requests that Fedify makes. By default, it contains the name and version of the Fedify library, and the name and version of the JavaScript runtime, e.g.:

Fedify/1.3.0 (Deno/2.0.4)
Fedify/1.3.0 (Node.js/v22.10.0)
Fedify/1.3.0 (Bun/1.1.33)

You can customize the User-Agent header by providing options like software and url. For example, if you provide the following options:

{
  software: "MyApp/1.0.0",
  url: "https://myinstance.com/"
}

The User-Agent header will be like:

MyApp/1.0.0 (Fedify/1.3.0; Deno/2.0.4; +https://myinstance.com/)

Or, you can rather provide a custom User-Agent string directly instead of an object for options.
userAgent This API is available since Fedify 1.3.0. The options for making User-Agent header in the HTTP requests that Fedify makes. By default, it contains the name and version of the Fedify library, and the name and version of the JavaScript runtime, e.g.: Fedify/1.3.0 (Deno/2.0.4) Fedify/1.3.0 (Node.js/v22.10.0) Fedify/1.3.0 (Bun/1.1.33) You can customize the User-Agent header by providing options like software and url. For example, if you provide the following options: { software: "MyApp/1.0.0", url: "https://myinstance.com/" } The User-Agent header will be like: MyApp/1.0.0 (Fedify/1.3.0; Deno/2.0.4; +https://myinstance.com/) Or, you can rather provide a custom User-Agent string directly instead of an object for options.
Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

We're fixing all HTTP requests from Fedify to include the proper User-Agent header.

Poes's avatar
Poes

@[email protected]

single file activity pub:

1. gitlab.com/edent/activity-bot/ from @Edent
2. val.town/v/minhee/FedifyOnValT from @[email protected]

(仮)'s avatar
(仮)

@[email protected]

origin指定で自動的にNodeinfoを取ってきてパースするとか普通に便利な機能が多い

RE:
https://misskey.io/notes/a04wampe1y1509us

(仮)'s avatar
(仮)

@[email protected]

fedify、既存のアプリにサクっとAP対応させるのに便利かもしれない

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

Have you heard of Val Town? Val Town is a kind of code pastebin + serverless function.

Actually, works just fine with Val Town. Here's a piece of ActivityPub software, implemented in about 170 lines of code, running on Val Town. Of course, it's built with Fedify!

Give it a follow @demo, and it will follow you back.

Curious to see how it was implemented? Check out the source code!

https://www.val.town/v/minhee/FedifyOnValTown

네이버 타이머's avatar
네이버 타이머

@[email protected]

Fedify lookup 생각보다 유용해 보이긴 하는데
(이거저거 들쑤셔볼때 액터 사이닝 안되어있어서 존나귀찮은적 많음)

맹꽁이's avatar
맹꽁이

@[email protected]

심심해서 포인트리스 fedify node -b로 출력해봤더니 파비콘 다 깨짐 ㅋㅋㅋㅋㅋㅋ
그리고 포인트리스 꽤 큰 인스턴스였구나
@Native

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

We've added the build guide to the CONTRIBUTING.md docs in the repository. We hope this is helpful for those who want to contribute to Fedify!

https://github.com/dahlia/fedify/blob/main/CONTRIBUTING.md#build

面条's avatar
面条

@[email protected] · Reply to 洪 民憙 (Hong Minhee)'s post

@hongminhee

totegamma's avatar
totegamma

@[email protected]

白背景が抜かれてしまっているが、一応弊インスタンスも(-b付きで)fetchできるようになった b付きじゃなくてもいけるように整えていくぞ

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected] · Reply to Fedify: an ActivityPub server framework's post

If Fedify's docs should be translated, what languages should it be in?

OptionVoters
简体中文4 (7%)
Español4 (7%)
Português6 (11%)
Français5 (9%)
Русский5 (9%)
हिन्दी4 (7%)
Bahasa Indonesia5 (9%)
日本語13 (23%)
اَلْعَرَبِيَّةُ4 (7%)
한국어7 (12%)
Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

What are your thoughts on Fedify's docs?

OptionVoters
Comprehensive and easy to understand4 (67%)
Comprehensive but hard to understand0 (0%)
Limited but easy to understand1 (17%)
Limited and hard to understand1 (17%)
Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

Visualize your server in the fediverse with the fedify node command and share it with us using the hashtag!

(See also how to install the fedify command.)

The result of fedify node https://hollo.social/@fedify command. The NodeInfo document is visualized along with the favicon.
The result of fedify node https://hollo.social/@fedify command. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup venera.social. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup venera.social. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup misskey.io. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup misskey.io. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup fosstodon.org. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup fosstodon.org. The NodeInfo document is visualized along with the favicon.
猫茶🍵's avatar
猫茶🍵

@[email protected]

いろんな鯖さんのfaviconを描画したくてついにfedifyをインストールした :blob_dancefloor:
楽しい!かわいい :blob_lovepunch:

Caipira's avatar
Caipira

@[email protected]


로고 출력 은근 잘 나왔다.

Ch. :animal_feed_trickcal:'s avatar
Ch. :animal_feed_trickcal:

@[email protected] · Reply to Ch. :animal_feed_trickcal:'s post

🤔
미스키 / 체리픽 안 됨

Porlam Nicla's avatar
Porlam Nicla

@[email protected]

:ablobaww:

Ch. :animal_feed_trickcal:'s avatar
Ch. :animal_feed_trickcal:

@[email protected]



파비콘을 이미지화해주는군요

fosstodon.org/@hongminhee/113401254560735839

Charles Chin's avatar
Charles Chin

@[email protected]


fedify node -b e5n.cc

fedify.dev/cli#fedify-node-vis

fedify node command
fedify node command
NTSK's avatar
NTSK

@[email protected]

:neocat_googly:

洪 民憙 (Hong Minhee)'s avatar
洪 民憙 (Hong Minhee)

@[email protected]

여러분의 인스턴스를 `fedify node` 커맨드를 써서 `neofetch` 스타일로 비주얼라이즈 해보고, 해시태그와 함께 올려보세요!

`fedify` 커맨드를 깔려면 아래 링크에 적힌대로 따라하시면 됩니다!

fedify.dev/cli#installation

`fedify node -b misskey.io` 커맨드의 아웃풋.
`fedify node -b misskey.io` 커맨드의 아웃풋.
`fedify node -b venera.social` 커맨드의 아웃풋.
`fedify node -b venera.social` 커맨드의 아웃풋.
`fedify node https://hollo.social/@fedify` 커맨드의 아웃풋.
`fedify node https://hollo.social/@fedify` 커맨드의 아웃풋.
`fedify node fosstodon.org` 커맨드의 아웃풋.
`fedify node fosstodon.org` 커맨드의 아웃풋.
const c30 = "せど";'s avatar
const c30 = "せど";

@[email protected]

c30's avatar
c30

@[email protected]

^Kur0den\d{4}$ :irai_houki_tyuu:'s avatar
^Kur0den\d{4}$ :irai_houki_tyuu:

@[email protected]

➜  ~ fedify node -b chpk.kur0den.net
✔ NodeInfo document fetched.
chpk.kur0den.net
================
Software:
  cherrypick v4.12.0
  https://github.com/kokonect-link/cherrypick
  https://github.com/kokonect-link/cherrypick
Protocols:
  activitypub
Outbound services:
  atom1.0
  rss2.0
Users:
  8 (total)
Local posts:
  41,891
Local comments:
  0
Open registrations:
  No

洪 民憙(ホン・ミンヒ)'s avatar
洪 民憙(ホン・ミンヒ)

@[email protected]

皆さんのフェディバース上のサーバーを`fedify node`コマンドで可視化して「」ハッシュタグで共有してください!
QT: hollo.social/@fedify/0192e1c1-
[参照]

Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

Visualize your server in the fediverse with the fedify node command and share it with us using the hashtag!

(See also how to install the fedify command.)

The result of fedify node https://hollo.social/@fedify command. The NodeInfo document is visualized along with the favicon.
The result of fedify node https://hollo.social/@fedify command. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup venera.social. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup venera.social. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup misskey.io. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup misskey.io. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup fosstodon.org. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup fosstodon.org. The NodeInfo document is visualized along with the favicon.
Fedify: an ActivityPub server framework's avatar
Fedify: an ActivityPub server framework

@[email protected]

Visualize your server in the fediverse with the fedify node command and share it with us using the hashtag!

(See also how to install the fedify command.)

The result of fedify node https://hollo.social/@fedify command. The NodeInfo document is visualized along with the favicon.
The result of fedify node https://hollo.social/@fedify command. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup venera.social. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup venera.social. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup misskey.io. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup misskey.io. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup fosstodon.org. The NodeInfo document is visualized along with the favicon.
The result of fedify lookup fosstodon.org. The NodeInfo document is visualized along with the favicon.
poes :pla:'s avatar
poes :pla:

@[email protected]

#fedify

minat tapi kayaknya terlalu overkill untuk 1 user instance, butuh postgres, redis dll.

Fedify CLI : node info for kauaku.us
Fedify CLI : node info for kauaku.us
洪 民憙(ホン・ミンヒ)'s avatar
洪 民憙(ホン・ミンヒ)

@[email protected]

misskey.ioに対するfedify nodeコマンドの出力結果。

Older →