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

Fediverse

757 readers
1 users here now

A community dedicated to fediverse news and discussion.

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

Getting started on Fediverse;

founded 5 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
[–] ksynwa@lemmygrad.ml 5 points 2 years ago

Thank you for your work o7

[–] humanetech@lemmy.ml 4 points 2 years ago* (last edited 2 years 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.

[–] uriel@boseburo.ddns.net 3 points 2 years ago

@nutomic no well-known sh*t?

[–] jonny@neuromatch.social 2 points 2 years ago

@nutomic
this rocks, excited to check it out

load more comments
view more: next ›