April 24th, 2025

Creating your own federated microblog

Fedify is a framework for creating federated microblogs using ActivityPub. The tutorial guides users through setting up a project, emphasizing TypeScript for type safety, while noting limitations on account management.

Read original articleLink Icon
Creating your own federated microblog

Fedify is a framework designed for creating federated microblogs using the ActivityPub protocol, similar to platforms like Mastodon. This tutorial guides users through the process of building a single-user microblog that can interact with other federated services. It assumes familiarity with web application development, command-line interfaces, and basic programming concepts, but does not require prior knowledge of TypeScript or ActivityPub. The microblog will allow users to create posts, follow other accounts, and view their followers, but it imposes certain limitations, such as the inability to edit or delete posts and accounts. The tutorial emphasizes setting up a development environment using Node.js, installing the Fedify command-line tool, and initializing a project. Users will learn to run a local server and query ActivityPub objects. The tutorial also introduces TypeScript, highlighting its benefits for type safety and code completion. Visual Studio Code is recommended for its compatibility with TypeScript, and users are encouraged to install relevant extensions for a smoother coding experience. Overall, the tutorial provides a structured approach to building a basic federated microblog while allowing room for future enhancements.

- Fedify enables the creation of federated microblogs using the ActivityPub protocol.

- The tutorial is aimed at users with web development experience but does not require prior knowledge of TypeScript or ActivityPub.

- Users will learn to set up a development environment and initialize a Fedify project.

- The microblog allows basic functionalities like posting and following but has limitations on account management.

- TypeScript is recommended for its advantages in type safety and code completion.

Link Icon 8 comments
By @_heimdall - 1 day
I've never quite understood the appeal of ActivityPub.

Looking at the list of goals in the article, the only benefit in addition to what can easily be done with RSS is knowing who follows me. Maybe its just me, but if I'm writing to a blog or a microblog I just don't really care who follows me or even who reads it.

There are more social features built into ActivityPub, likes and shares for example, but at that point I'm likely not running my own server and am trusting a third party to do it for me. The idea that there are multiple hosts I can choose to trust rather than one centralized one feels more like a principled argument than one based on real benefits of, for example, owning my own content or censorship resistance.

By @AndrewStephens - about 23 hours
One of my issues with ActivityPub is that there is no such thing as a cut-down completely static AP feed for blogs. I want Mastodon users to be able to follow my static blog but I don't want to implement the machinery to have full interactivity.

Basically an RSS bridge would work fine. I know such things already exist but it would be cool if it was built into AP.

Right now I just manually post my blog post to my Mastodon account which is perfectly fine.

By @jskherman - about 17 hours
On a related note, see Hollo: https://github.com/fedify-dev/hollo
By @1dom - about 21 hours
This is really useful, thanks.

I've recently been playing around selfhosting a small single user activitypub server to see how it works. I can't understate how satisfying it's been to wallow in compared to a static site or serverless setup. It unexpectedly tickled that special "oooh, a _system_" part of my brain, a lot.

By @smjburton - 1 day
> To simplify the tutorial, we'll impose the following feature constraints:

> There is no search functionality.

This makes sense for the tutorial, but search functionality would be awesome for discovery, both in terms of people finding your blog as well as finding other interesting blogs to follow. Niche blogs seem more difficult to find these days when Google only seems to surface websites with the right keywords.

By @saltysalt - 1 day
I miss RSS.