Features
Everything littleFedi does
One server, one binary. This page is the long version: what is in it, how it behaves, and where the edges are. Anything listed as missing at the bottom of the overview is missing here too.
Timelines
Home, local, federated, list, tag, direct and bubble. All of them are in time order, newest first, and they stay that way. No score decides what you see, and nothing is inserted or hidden by an algorithm.
Blocks, mutes and filters are applied when a timeline is read, so a filter you change now applies to the page you load next, everywhere, without a rebuild.
Long posts fold in timelines, search results, profiles, catch-up and thread replies: the body is clamped, the cut edge fades, and a Show more control opens it. The fold is CSS, not server-side truncation, so the whole text is always in the page. A reader without stylesheets or scripting gets everything. The post a thread is focused on is never folded.
Signed-out visitors land on the local timeline. Set
public_local_timeline = false to send them to the sign-in page
instead. Set redirect_guests_to_about = true under
[web] to send visitors from / to the instance's
about page. These settings change the web entrance; public profiles, posts,
the client API and federation remain public.
There is also a Favourites page for posts you have liked. On a followed account's profile, Hide boosts removes its boosts from your home timeline while keeping its own posts.
Catch-up
The problem with chronological feeds is coming back after three days away: you end up scrolling for twenty minutes. Catch-up helps with that. It is a separate page at /catchup that you have to open yourself, and it never mixes with the timelines.
It ranks posts your home feed already received, using signals this instance already stores:
| Signal | Weight |
|---|---|
| Each account you follow who boosted the post | +2.5 |
| Favourites delivered here (log) | +1.0 |
| Boosts delivered here (log) | +0.8 |
| Replies delivered here (log) | +0.6 |
| Emoji reactions delivered here (log) | +1.0 |
| You interacted with the author in the last month | +1.2 |
| Carries a hashtag you follow | +1.0 |
| Continues a conversation you took part in | +0.8 |
| The post is a reply | -1.0 |
The total halves every twelve hours since the post reached your feed. The interaction counts are this instance's own view, the activities actually delivered to it, not a popularity figure fetched from somewhere else. No remote service is consulted and no ranking data leaves the machine.
Rules that are not weights:
- Your own posts are excluded, and so is anything you already favourited, bookmarked, boosted or replied to.
- A post with no displayable reason is not listed at all.
- At most two posts per author survive.
- Twenty entries, then the page ends. No pagination, no infinite scroll.
The only thing stored is a catchup marker, written when you press
Mark as read, and removed with the account like every other
marker. Pressing it moves a divider rather than emptying the page: older entries
stay listed under Already seen. Nothing about what you open, or
how long you look at it, is recorded or learned from.
Set catchup = false under [web] and the page and its
navigation entries disappear.
Posting and the composer
Posts, replies, boosts, favourites, emoji reactions, bookmarks, polls, quotes, filters, drafts, scheduled posts and boosts, and self-expiring posts that delete themselves around a per-post timer. Reactions accept Unicode and remote custom emoji the server has already seen. They stay separate from favourites and federate using FEP-c0e0.
The composer has three modes: plain text, Markdown, and a visual editor. The
visual mode publishes Markdown underneath, so a post keeps an editable source
and federates with the same text/markdown media type as one written
by hand. Its toolbar covers headings, bold, italic, strikethrough, links,
quotes, lists, inline and block code, horizontal rules, undo and redo. Tables
stay available from Markdown source.
Preview uses the same renderer as the server, so what you see is what gets published. It shows the authored post with content warnings, selected media, sensitivity, polls and quotes. Local files are previewed in the browser and are not uploaded until you actually submit.
Save a draft and come back to it from Drafts. The server keeps its text, audience, content warning, attachments and other composer settings. Publishing or scheduling it removes the draft. Pending scheduled posts can be reopened and edited, rather than cancelled and written again.
To schedule a boost, hold the boost button for half a second, or open the post and use Boost later. It appears on the Scheduled page, where you can move or cancel it. Drafts and scheduled boosts belong to the web interface; Mastodon apps do not have an API for them. Saving a draft and editing a scheduled post also work with ordinary forms and scripting off.
Reaction buttons, the six common choices and the text field are ordinary HTML forms. JavaScript adds the searchable emoji grid when it is opened; reactions do not depend on the grid, images or scripts.
The textarea, the Markdown checkbox and ordinary form submission keep working. The visual editor is optional.
Federation and cryptography
ActivityPub with WebFinger discovery, shared inboxes, relays, and a durable delivery queue that retries with backoff. Jobs are stored in the database, so a restart does not lose pending deliveries.
- HTTP Signatures
- Outbound RSA (PKCS#1 v1.5) for compatibility with everything already
deployed. Inbound RSA (
rsa-sha256,rsa-sha512,hs2019) and Ed25519 (hs2019,ed25519). Verification uses the exact advertised key ID. - RFC 9421 HTTP Message Signatures
- Inbound verification also accepts
Signature-Inputrequests, including RSA-PSS and the content digest used by Mastodon's newer signing path. Outbound HTTP requests still use the Cavage draft RSA format. - Actor keys
- New local accounts carry an Ed25519 pair alongside their RSA pair. Legacy
RSA stays in
publicKey; Ed25519 is advertised separately as anassertionMethodMultikey with the required0xed01multicodec. InboundpublicKeyBase64and Multikey encodings are normalized to PKIX PEM on ingest. - Object Integrity Proofs (FEP-8b32)
eddsa-jcs-2022verification of inbound activities, always on, and accepted even when the HTTP Signature is absent or fails. Outbound signing is behindfederation.sign_with_oipand off by default. Verified against the official FEP-8b32 test vector.- Legacy Linked Data Signatures
RsaSignature2017is still verified as a fallback for forwarded activities.- Federation policy
- Open federation by default, or an exact-host allowlist that applies to signed reads, inbound activities, remote fetches and delivery. Policy changes take effect without a restart and never erase stored content. Domain allows, Mastodon-compatible block imports and the optional reviewed commercial Big Tech list are managed separately, so an automatic refresh cannot overwrite a manual moderation decision.
Link previews travel with posts as FEP-8967 attachments. A receiving server can use the supplied card instead of fetching the same linked page again.
Local signing keys can be encrypted at rest with a key kept outside the database. The deployment guide covers conversion, backups and what happens if that key is lost. It also has compatibility checks to try with your peers and clients.
To connect the instance to a LitePub relay, follow the relay setup. You need its actor URL, and the follow handshake must finish before the relay is active.
Accounts and sign-up
Single-user and multi-user instances from the same binary. Which one you get is
a decision littlefedi init asks about, not a different build.
- Invitations, manual approval, verified email, and TOTP multi-factor authentication with recovery codes.
require_admin_mfarefuses to let an administrator work without a second factor.- Lists, follow requests, hashtag follows, featured tags, and per-account preferences.
- Up to four profile fields, shown below the bio and sent to other servers.
Links work, but littleFedi does not verify
rel=meownership. - Web Push notifications, plus opt-in administrator email alerts for new accounts and for signups that used a specific administrator's invite.
Registration is closed by default. A new server usually has nobody moderating it yet.
Moderation and administration
Almost everything in the admin console is also available as a CLI command, which helps if you lock yourself out of the web interface.
- Reports, audit logs, domain blocks, exact-host federation allows, account suspension, silencing and disabling.
- User administration from the shell: create, list, show, approve, reject, suspend, unsuspend, silence, unsilence, disable, enable, delete, reset a password, set an email, disable MFA, refresh remote actors.
- Relay management, invitations, media administration, and a queue view that deliberately omits payload bodies.
- An SMTP test that only ever sends to the current administrator's own address.
- A page that shows the configuration the server is actually running with.
littlefedi --config littlefedi.toml admin create-user --username alice --admin
littlefedi --config littlefedi.toml admin list-users
littlefedi --config littlefedi.toml admin reset-password --username alice
littlefedi --config littlefedi.toml admin domain-block create --domain example.invalid
littlefedi --config littlefedi.toml admin federation mode allowlist
The instance profile
What a server says about itself lives in one place, /admin/instance,
and changes apply without a restart.
| Field | Where it appears |
|---|---|
| Short description | Server directories, NodeInfo, the header of /about |
| Description | The top of /about, GET /api/v1/instance |
| Extended description | /about in full, GET /api/v1/instance/extended_description |
| Rules | /about, the registration form, GET /api/v1/instance/rules |
| Moderation contact | /about, the email field of both instance APIs |
| Terms of service | /terms, GET /api/v1/instance/terms_of_service |
The extended description and the terms are Markdown, rendered and sanitized
before publication. Leave the terms empty and this server publishes none:
/terms and its API endpoint answer 404, so clients hide the link
rather than opening an empty page.
The same fields exist in the [instance] section of the config file,
which init offers to fill in. The config file is the seed and the
admin console is the override; the console writes to the database rather than
back to the file. It is simpler to pick one and stick with it.
Rules do not follow the per-field fallback. Saving the profile even once makes the stored rules authoritative, including an empty list, so an administrator who clears the box publishes no rules instead of silently getting the configured ones back.
Media
Local disk or an S3-compatible object store, decided by a build tag and a configuration key. Two size knobs do different jobs and are easy to confuse:
[media]
max_file_size = 41943040 # bytes accepted per upload (default 40 MB)
max_stored_dimension = 2560 # downscale stored JPEG/PNG to this longest side
max_image_pixels = 16000000 # reject images decoding to more than this (0 = no limit)
max_stored_dimension is what keeps the media directory small.
Uploads are downscaled once, on arrival, and every later read moves the smaller
file: federation fetches, cache warming, backups. It applies to cached remote
media too, and it is destructive, because no full-resolution copy is kept.
Animated GIFs, WebP, video and audio are never re-encoded.
max_image_pixels bounds decoded memory instead, which a file-size
limit cannot: a small compressed file can declare an enormous canvas and decode
into gigabytes. Downscaling does not replace that bound, because an image must
be decoded in full before it can be shrunk.
Files under /media/ use unguessable public URLs, the same way
Mastodon does, so images embedded in federated posts render without a
littleFedi login. Status pages, API metadata and federation objects still
enforce visibility, but anyone who obtains a raw media URL can fetch that
file.
API, clients and streaming
A Mastodon-compatible OAuth flow and REST API, WebSocket and SSE streaming, and Web Push. Existing Mastodon clients connect and work. The legacy flow without PKCE is still supported, because some clients still need it.
The API also supports profile fields, private account notes, removing a follower and muting a conversation. Push subscriptions accept the standard and legacy encryption formats clients use. If an app subscribed before the legacy format was supported and pushes do not arrive, switch notifications off and on in that app to create a fresh subscription.
On the web notifications page, Mark all as read clears the unread state, including older pages, and keeps the entries. Delete all removes them. In the installed PWA, holding the notifications button marks them read from any page.
Discovery endpoints for trends, suggestions and endorsements return empty
results on purpose. Featured tags are implemented. Remote custom emoji are
parsed and rendered; local custom-emoji upload and management is not
implemented, so this server emits no local /emojis/{id} objects.
Your data: export, import, exit
An account can export itself, posts and media included, and import that archive into another littleFedi instance, along with its preferences, its custom CSS and its blog stylesheet. With S3 storage, account archives need a separate private bucket; see the S3 setup. Account migration and account deletion are supported, and deletion emits signed activities that other servers actually receive, as long as you keep the queue workers running while decommissioning.
There is also an instance self-destruct command, so a server can be shut down cleanly and tell its peers it is going away.
A same-domain replacement of an Akkoma or Pleroma instance needs a separate import tool, which is not in the public archive. Contact me through the issue tracker before planning that move. It is different from moving an account with ActivityPub's alias-and-Move mechanism.
Storage and build variants
Optional dependencies are kept out of the default binary by build tags, so the server you run on a small machine does not carry a PostgreSQL driver it will never open.
| Command | Tag | Adds |
|---|---|---|
make build | none | Embedded SQLite, local media. The default. |
make build-postgres | postgres | PostgreSQL storage and cross-process streaming |
make build-s3 | s3 | S3-compatible media storage and migration |
make build-postgres-s3 | both | The clustered profile |
make build-blog | blog | Static blog generation |
Interface, languages, accessibility
The web interface is rendered on the server. JavaScript improves it and is never required by it: the composer, the timelines, the settings pages, the moderation tools and the admin console all work with scripting off.
- Eleven themes, four of which dress the interface as a native application on macOS, Plasma, GNOME or Xfce, plus light, dark, true black and automatic modes, and a per-account custom stylesheet. See Theming.
- Seven interface languages: English, Italian, German, Spanish, French, Portuguese and Catalan. Catalan was contributed by Jolupa. Corrections and better wording are welcome through the issue tracker.
- Built-in themes are contrast-tested in the repository: text and muted text against every surface they can land on.
Operations
/healthreports process health,/readyzchecks readiness including storage, and/metricsexposes Prometheus metrics when enabled.- The process logs structured lines to stdout and lets the service manager decide where they go. Nothing in littleFedi assumes systemd, or syslog, or SMF.
- Built-in backups of the database, the configuration and, optionally, local owned media, with a manifest and a restore command.
- Housekeeping, remote media sweeps and periodic backups run on one designated process, so a cluster does not need a distributed election to decide who vacuums.
- Written runbooks for failed migrations, full disks, stuck queues, compromised keys, spam bursts, SMTP outages, media outages and database outages.
Known limits
- Trends, suggestions and endorsements are intentionally empty.
- Local custom emoji cannot be uploaded or managed.
- Blog generation is process-local. One process only.
- There is no general read-only mode. Closing registration and rejecting write paths at the edge is the documented substitute.
- The application rate limiter is per process, so a multi-process deployment needs a shared limit at the reverse proxy.
- The built-in media backup covers local owned media only. With
media.backend = "s3", asking forinclude_media = trueis rejected rather than producing an incomplete backup. - Edit history exposes the current revision only; previous revisions are not stored. Profile links have no verified ownership badge.
- Drafts and scheduled boosts are not exposed through the Mastodon API.