A lightweight ActivityPub server

A fediverse server
in a single binary.

littleFedi is a small ActivityPub server written in Go. It ships as a single static executable with a server-rendered web interface, a Mastodon-compatible client API, a durable federation queue, moderation tools, and optional PostgreSQL and S3 support. No runtime to install, no services to wire together.

Beta software. Back up your data before upgrading.

Why this exists

I have spent a long time running servers for other people, and a good part of the last few years running fediverse infrastructure for a community. What I kept wanting was something I could put on a small machine, in a corner, and then stop thinking about. No runtime to keep current, no database server to babysit, no container stack, no build pipeline that breaks exactly the week I'm travelling (it always happens that week).

littleFedi is that. One static binary with an embedded database, an interface that works with JavaScript switched off, and operations that are easy to follow: a health endpoint, a readiness endpoint, a queue you can look at, and backups that restore. Small is where it starts. PostgreSQL and S3 builds are there when you need several processes sharing the work.

It's also written for the machines I actually use. FreeBSD, illumos, Linux, NetBSD and OpenBSD have their own service definitions and firewall examples in the download. I want the installation to make sense on those machines too.

It is not meant to replace anything. It borrows what the other fediverse platforms do well, fills a few gaps, and adds one more independent implementation. I think the fediverse is better off with many of them.

"Little" is affectionate. You don't have to decide up front between a personal server and a community one; the same installation can grow. Using fewer resources was never the only goal either. I also wanted something that asks less of you and doesn't tie you to one machine or one provider.

Features

  • One static binary

    Built with CGO disabled. No interpreter, no shared libraries, no external database unless you want one. Copy it to the machine and run it.

  • Federation

    ActivityPub, WebFinger, shared inboxes, relays, RSA HTTP signing, RSA and Ed25519 verification in draft and RFC 9421 formats, and FEP-8b32 Object Integrity Proofs.

  • Chronological timelines

    Home, local, federated, list, tag, direct and bubble, all in time order. The only ranked view is a separate page you have to open yourself.

  • Works without JavaScript

    Pages are rendered on the server. Posting, reading, settings and moderation all work with scripting off. Save a draft, edit a scheduled post, or just use the plain textarea.

  • Mastodon-compatible API

    OAuth, the REST API, WebSocket and SSE streaming, and Web Push. Clients that already speak Mastodon connect to it.

  • Static blogs

    Turn selected public posts into a plain static site with permalinks, an Atom feed, hashtag indexes and five themes, without leaving the fediverse.

  • littleMesh

    Federate from behind home NAT or CGNAT with no public address, no DNS name and no inbound port. The transport changes, ActivityPub does not.

  • Eleven themes and your own CSS

    Four skins that dress the interface as a macOS, Plasma, GNOME or Xfce application, four light and dark modes, and a per-account stylesheet.

  • SQLite or PostgreSQL

    SQLite is embedded. PostgreSQL and S3 are separate builds, so the default binary never carries their dependencies. Check the backup requirement on fallback platforms.

  • Monitoring and backups

    Health and readiness endpoints, Prometheus metrics, a durable queue with retries, built-in backups, and written runbooks for when it goes wrong.

From a Raspberry Pi to a cluster

There is one preset for constrained machines. Set low_power = true and littleFedi picks one database connection, one queue worker, one image decoder, a bounded memory cache, a 13 million pixel ceiling on decoded images, a 1600 pixel cap on stored uploads, cheaper thumbnail resampling and no dynamic gzip.

low_power = true

[media]
cache_remote = "off"

At the other end, build with make build-postgres-s3 and several processes share PostgreSQL and S3, with cross-process streaming and one process doing housekeeping. Public media and private account archives use separate buckets. Read the setup notes before you put users on it.

Numbers on this page describe defaults and presets, not benchmark results. Measure on your own hardware before promising anything to anyone.

Supported platforms

The download includes service files for FreeBSD, illumos, Linux, Alpine, NetBSD and OpenBSD. The deployment page lists their paths, service managers and firewall conventions.

  • FreeBSD
  • illumos
  • Linux
  • Alpine Linux
  • NetBSD
  • OpenBSD
  • macOS (development)
  • Windows (development)
  • Solaris (builds)
  • DragonFly BSD (builds)
  • AIX (builds)
  • Plan 9 (builds)
  • Android (builds)

Release binaries cover amd64, arm64 and 32-bit ARM, plus the less common Linux architectures the Go toolchain supports. macOS and Windows binaries are built for development and evaluation; the download has no service files for them.

The full download set covers 40 targets across 12 operating systems, including Solaris, DragonFly BSD, AIX, Plan 9 and Android. Blogs are included in every binary, with four choices of database and media storage. Being able to download a build does not mean it has been exercised on your hardware; check the platform and variant list before choosing one.

Compare the platform conventions

See it running

littleOne is the official instance, and it runs the same server described on this site. It is invite only for now, which is the advice given to every other operator here: do not open registration until somebody is willing to moderate.

You do not need an account to look. Signed-out visitors land on the local timeline, so the interface, the rendering and the themes are all visible from outside, with scripting off if you prefer.

What it does not do yet

Some things are missing or limited, and it is better to know before installing.

  • Trends, suggestions and endorsements always return empty results. There is no instance-wide popularity feature.
  • Remote custom emoji are parsed and rendered. Uploading and managing local custom emoji is not implemented.
  • Static blog generation is a single-process feature. Leave it off in a multi-process deployment.
  • Previous revisions of edited posts are not stored. Profile links are displayed but their ownership is not verified.
  • Capacity depends on your hardware and your peers. Try the storage setup and restore a backup before relying on it.

More