CLI tool for Fediverse lookups. Ideal for debugging.
Find a file
2025-04-24 19:03:45 +02:00
cmd Add version 2025-04-24 18:29:42 +02:00
formatter Improve output 2025-04-24 17:29:55 +02:00
resolver Clean up code 2025-04-24 18:21:44 +02:00
.gitignore Remove binary from git 2025-04-24 14:00:34 +02:00
.gitlab-ci.yml Reduce the binary a bit by removing debug symbols from the binary 2025-04-24 19:03:45 +02:00
demo-fediresolve.png Improve readme and add CI 2025-04-24 17:51:31 +02:00
go.mod Fix mod tidy 2025-04-24 18:12:24 +02:00
go.sum Fix mod tidy 2025-04-24 18:12:24 +02:00
LICENSE Add new file 2025-04-24 14:24:31 +02:00
main.go Update url 2025-04-24 14:24:00 +02:00
README.md Fix example user profile 2025-04-24 18:32:07 +02:00

FediResolve

FediResolve is a command-line tool for resolving and displaying Fediverse content.

It can parse and display ActivityPub content from various Fediverse platforms including Mastodon, Mbin, Lemmy, PeerTube, and others. For easy reading or debugging purposes.

Features

  • Resolve Fediverse URLs to their ActivityPub representation
  • Resolve Fediverse handles (e.g., @username@domain.tld)
  • Display both the full JSON data and a human-readable summary
  • Support for various ActivityPub types (Person, Page, Note, Article, etc.)
  • Automatic resolution of shared/forwarded content to the original source

Demo of FediResolve

Download

FediResolve for Linux

Installation

Either download the prebuild binary from releases or build from source, see below.

Prerequisites

  • Go 1.21 or later

Building from source

git clone https://gitlab.melroy.org/melroy/fediresolve.git
cd fediresolve
go build

Usage

Basic usage

# Provide a URL or handle as an argument
./fediresolve https://mastodon.social/@user/12345
./fediresolve @username@domain.tld

# Or run without arguments and enter the URL/handle when prompted
./fediresolve

Examples

Resolving a Mbin thread

./fediresolve https://kbin.melroy.org/m/til/t/875629/Context7-Up-to-date-documentation-for-LLMs-and-AI-code-editors

Resolving a Mastodon post

./fediresolve https://mastodon.melroy.org/@melroy/114297155915355913

Resolving a user profile

./fediresolve @melroy@mastodon.melroy.org

How it works

FediResolve uses the following process to resolve Fediverse content:

  1. For handles (@username@domain.tld), it uses the WebFinger protocol to discover the ActivityPub actor URL
  2. For URLs, it attempts to fetch the ActivityPub representation directly. Or if the content is needs to be resolved from another Fediverse instance.
  3. Content is parsed and displays both the raw JSON object and a nice looking summary.

License

MIT