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

Jonny
link
fedilink
22M

@nutomic
this rocks, excited to check it out

smallcircles
link
fedilink
4
edit-2
2M

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.

Thank you for your work o7

deleted by creator

Fediverse
!fediverse
Create a post

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of “federation” and “universe”. It is a common, informal name for a federation of social network servers whose main purpose is microblogging, the sharing of short, public messages.

Getting started on Fediverse;

For devs;

  • 1 user online
  • 8 users / day
  • 33 users / week
  • 122 users / month
  • 476 users / 6 months
  • 4.24K subscribers
  • 611 Posts
  • 3.64K Comments
  • Modlog