Federation Discovery
Find other instances by URL with `spl discover`, or search the opt-in public directory by handle and topic. Also covers making your own work public and reading what others share.
Overview
Discovery answers a simple question: how do you find an instance worth connecting to? Syncropel gives you two ways, and you can use both:
- Direct, by URL: if you already know (or can guess) a peer's address, fetch its signed description and check exactly what it advertises before you connect. No middleman is involved. Covered first, below.
- The public directory: if you don't know who's out there, search an opt-in index by handle and topic. Instances choose to list themselves. The directory only holds a handle and a few topics, never your content.
Both end the same way: you reach a real instance at a real URL, and everything it shows you is signed by that instance. No central authority decides who you can find or reach.
If you already have a peer's URL and want to sync records with them, see the federation pairing guide. This guide is for finding instances and for sharing or reading public work.
Direct discovery: spl discover
Every instance publishes a description of itself (a "manifest") at /.well-known/syncropel. spl discover fetches it, checks the signature, and shows you what the peer advertises. You don't have to trust anything you can't check.
Prerequisites
An instance only publishes its federation details if it has an identity (a signing key):
# On the publishing instance (first time only).
spl init
# Or, if init was already run without a keypair:
spl identity generateThis creates the key the instance uses to sign its manifest. Without it, /.well-known/syncropel still lists what the instance can do, but the federation section is left out and callers see federation.enabled = false.
Fetch and verify a peer
spl discover --peer-url https://alice.example.comPeer: https://alice.example.com
DID: did:key:z6Mkf7...
Federation: enabled
Manifest version: 1
Signature: valid (expires 2026-07-21)
Advertises kinds: music.catalog.track, music.catalog.album
Pair endpoint: https://alice.example.com/v1/syncThe command checks the manifest's signature against the peer's public key. If the manifest was altered or the signature doesn't match, the command exits with an error and reports nothing it could not verify.
For scripts, get JSON output:
spl discover --peer-url https://alice.example.com --json \
| jq '{did: .federation_manifest.daemon.did, kinds: .federation_manifest.advertises.kinds}'Filter by what a peer accepts
--kind narrows the result to peers whose manifest advertises a given body.kind:
spl discover --peer-url https://alice.example.com --kind music.catalog.trackIf the peer doesn't advertise a match, the command exits with an error code. Use this in a script to check whether a peer accepts a kind before you pair.
What's in the manifest
{
"manifest_version": 1,
"daemon": { "did": "did:key:z6MkfYVB...", "version": "0.X.Y" },
"federation": {
"enabled": true,
"pair_endpoint": "/v1/sync",
"consent_policy": { "directory": "opt-in" }
},
"advertises": { "kinds": ["music.catalog.track"], "refs": [], "namespaces": [] },
"signature": { "alg": "Ed25519", "key_id": "did:key:z6MkfYVB...#key-1", "signature": "<base64>", "expires_at": "2026-07-21T00:00:00Z" }
}daemon.didis the peer's identity. The signature is checked against that identity's public key. A manifest signed by a different key is rejected.advertises.kindsis the opt-in list of record kinds the peer is willing to receive. An empty list is fine; it means the peer is open to pairing but advertises no kinds.signature.expires_atis how long the manifest stays valid. Instances sign a new one each time they start, and an expired manifest is rejected.
The public directory
Direct discovery works when you already know a URL. The public directory is how instances find each other when they don't: a voluntary, searchable index of instances that have chosen to be listed.
It is a phone book, not a gatekeeper:
- Opt-in. An instance is invisible until its owner turns discovery on. Off by default.
- Minimal. A listing carries a handle and a few topics, never your records, threads, or content.
- Self-attested. Each listing is signed by its instance and checked before it is indexed. The directory cannot forge or change a listing.
- Not authoritative. The directory is a convenience. You can still reach and verify any instance directly by URL, whether or not it is listed.
Make your instance discoverable
On a hosted instance, you choose at signup whether to be listed. Turn it on and your listing is published automatically. Turn it off and it is withdrawn. The listing advertises only your handle and the topics you choose.
You can change this at any time from your instance settings. Nothing about your records or threads is shared by being listed. Discoverability and making a thread public (below) are separate, independent choices.
Search the directory
The directory is searchable from Studio: open discovery and search by handle or topic; matching instances appear with their handle, topics, and a link to view their public work.
To query it directly, the directory exposes a public read:
curl "https://graph.syncropel.com/v1/directory/search?q=research"{
"results": [
{
"handle": "rae",
"advertise_topics": ["research", "writing"],
"public_threads": ["th_..."],
"peer_url": "https://rae.syncropel.app",
"matched_on": ["topic"]
}
]
}A result with a peer_url is reachable; public_threads lists the threads that instance has chosen to make readable (next section).
There is no spl directory command. Use Studio or HTTP for the directory, and spl discover --peer-url for discovery by URL.
Make your work public
Discoverability lists your instance. Making a thread public is what lets someone actually read it. The two are independent: you can be listed with nothing public, or make a thread public without being listed.
From Studio, open a note or workspace thread you own and use its visibility control:
- Full content: readers see the whole thread. This is the default for a document you mean to share.
- Structure only: readers see that the thread exists and its shape, but not its contents.
A thread stays public for about a week, then the grant expires on its own; you can make it private again at any time. The visibility Studio shows is always current.
To do the same over HTTP:
curl -X POST https://<your-instance>/v1/consent/grants \
-H "Authorization: Bearer $SPL_TOKEN" \
-d '{ "public": true, "thread": "th_...", "granted_level": "L0" }'granted_level is L0 for full content or L2 for structure-only. Revoke by deleting the grant (DELETE /v1/consent/grants/{grant_id}).
Making a thread public is done in Studio or over the API. The spl consent grant command covers cross-namespace and per-recipient sharing, but not the public scope.
Read someone's public work
From Studio, a directory result with public threads offers View public work. It reads the peer's public threads and renders them read-only, the same way your own threads render.
Over HTTP, a peer's public thread can be read from the peer's own instance without signing in:
# Returns the thread's records only if an active public grant covers it.
curl "https://rae.syncropel.app/v1/public/thread/th_..."A thread that isn't public returns 404, and the response never reveals whether a private thread exists. You get only the level the owner granted: a Full content grant returns the readable body; a Structure only grant returns shape without contents.
Connections
Discovering and reading a peer is read-only. To record an ongoing relationship (view, follow, or pair), you create a connection. Studio offers one-click connect from a directory result; you can also manage connections with spl connection (add, list, archive, revoke). Pairing, which enables two-way record sync, is covered in the federation pairing guide.
Security properties
- Signed. A peer's manifest and a directory listing are signed by the instance that owns them and checked before you trust them. A proxy or the directory cannot change what an instance advertises without being detected.
- Expiring. Manifests expire and are re-signed on each start. Expired manifests are rejected.
- Opt-in twice. Being listed and making a thread public are separate choices. The default is private and unlisted.
- Limited reads. A public read returns only what the owner's grant allows, either full content or structure only.
- No central authority. The directory is a convenience, not a gate. You can reach and verify any instance directly by URL.
Common troubleshooting
peer served /.well-known/syncropel but no federation_manifest key: the peer has no identity configured. Runspl initorspl identity generateon it.signature verification failed: the manifest was altered in transit, or the peer's identity belongs to a different key than the one that signed. Fetch again. If it keeps failing, the peer's identity is set up wrongly.manifest expired: the peer's manifest has expired. Ask its owner to restart it.- A directory result won't load its public work: the owner may have made the thread private again, or set it to structure only. A
404on a public read looks the same as "no such thread".
Next steps
- Federation pairing: once you've found a peer, pair to sync records two-way.
- Consent: the grant model behind public threads and cross-namespace sharing.
- Async federation: deliver records to peers that are offline through a relay.
- Capability manifest: the sibling manifest at
/.well-known/syncropel, covering the rest of the API.
Invite another instance
Use `spl federation invite` to pair with another instance, share namespaces, and allow threads in one command.
Async federation: pairing across offline peers
Use a relay so instances that are rarely online together can still share records. Covers what the relay protects, what it can see, and how it works alongside direct federation.