Firefox add-on (Manifest V3) that lets you like, share, follow, reply to and mention the ActivityPub object or actor behind the page you are looking at — from your own fediverse account, using only the standard ActivityPub client-to-server API and OAuth 2.0. No Mastodon API.
It is a reference implementation for the ActivityPub API OAuth profile and for ActivityPub HTML Discovery, and a sibling of the Social Web Foundation's activitypub-browser-extension.
It also reacts to fediverse links (web+ap:, web+activitypub:,
web+follow:, web+like:, web+share:, acct:, fedi:): while you are
logged in, a click opens the popup over the page you are on. See
docs/test-links.md for every supported form.
A server without the ActivityPub API can still be connected when it publishes Activity Intents (FEP-3b86) in WebFinger: FediFox then lists links that open the action on that server. An account that has both gets the buttons and the links.
- An actor with
outbox,liked,following,followers. - OAuth 2.0 authorization-code + PKCE, discovered via the actor's
endpoints.oauthAuthorizationEndpoint/oauthTokenEndpointor RFC 8414. - Client registration via CIMD, RFC 7591 dynamic registration, or a manually issued client ID.
- Optional:
endpoints.proxyUrlfor reading remote objects with authorization.
The WordPress ActivityPub plugin implements all of the above and is the primary test bench.
npm install
npm run vendor # copies oauth4webapi into src/vendor
npm test
npm start # web-ext run
See docs/architecture.md and docs/testing.md.
client.json is a CIMD client
identity document. Its redirect_uris entry is a placeholder until the
add-on has run once — Firefox derives the actual redirect URL from the
add-on's own id (browser_specific_settings.gecko.id in manifest.json),
which isn't known outside of a running instance. To publish for real:
- Run the add-on once (
npm start) and readbrowser.identity.getRedirectURL()from the background console. - Put that value into
client.json'sredirect_uris. - Publish
client.jsonvia GitHub Pages. - Set
CIMD_URLinsrc/constants.jsto its published URL.
Until CIMD_URL is set, fedifox falls back to RFC 7591 dynamic client
registration, then to a manually entered client ID.
The icons are the Fediverse symbol ⁂ (three asterisks, U+2042), taken from the WordPress ActivityPub plugin's SVG. The toolbar symbol is theme-tinted while a page has no ActivityPub object and coloured when it does; on such pages the symbol also appears in the address bar.