this post was submitted on 19 Mar 2023
39 points (100.0% liked)

Fediverse

17496 readers
24 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 4 years ago
MODERATORS
 

I want to announce a new version of the activitypub-federation crate. Over the last weeks I worked on major improvements to the usability and documentation. It now includes an extensive guide on getting started to implement federation from scratch, and also an example project which can directly be deployed to a server and federate with projects like Mastodon.

The library takes care of basic functionality like HTTP Signatures, activity sending, and fetching data from other servers. Application developers can focus on the main logic, and treat federation as another form of API. There is no restriction to the content being federated: you can implement a microblogging platform, link aggregator, video hosting site or any other type of social media. The goal is to encapsulate all basic functionality, so that developers can easily implement federation without any prior knowledge.

Using this library can help to share core Activitypub logic between different projects, so that the same code doesn’t have to be implemented and maintained separately by each project. This way improvements can benefit everyone. It also encourages the use of effective patterns to make Rust and Activitypub work together. All of this has been proven to work in Lemmy which uses this library and is the biggest Activitypub project written in Rust.

https://docs.rs/activitypub_federation

top 4 comments
sorted by: hot top controversial new old
[–] humanetech@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

Much appreciated, thank you very much. Esp. the attention to having good docs is a delight in the otherwise under-documented maze of fedi development.

[–] ksynwa@lemmygrad.ml 4 points 1 year ago

Thank you for your work o7

[–] jonny@neuromatch.social 2 points 1 year ago

@nutomic
this rocks, excited to check it out

[–] uriel@boseburo.ddns.net -1 points 1 year ago

@nutomic no well-known sh*t?

load more comments
view more: next ›