Developers
Sticker packs
Publish a sticker pack Terminus can show: the manifest's fields, the limits Terminus applies, and how stickers appear in posts.
Terminus reads the farcaster-sticker-pack format, a draft from Vibeshift. A pack is one JSON file, the manifest, that lists pictures you host. Anyone can add your pack in Terminus by pasting the manifest's link.
The manifest
{
"format": "farcaster-sticker-pack",
"version": 1,
"id": "terminus",
"name": "Terminus",
"description": "The Terminus mark, with a face.",
"author": { "name": "Terminus", "url": "https://onterminus.com/" },
"usage": "Free to display, share and mirror in any client.",
"revision": "v1",
"stickers": [
{
"id": "hello",
"name": "Hello",
"alt": "Terminus waving hello",
"url": "https://onterminus.com/stickers/terminus/v1/hello.png",
"mimeType": "image/png",
"width": 512,
"height": 512,
"sha256": "bf61edc8c8f1d2b5c0a89a5f8c8602b292ac53afb4b956b06f62c683495e3aed",
"tags": ["hi", "hello", "wave", "greeting"]
}
]
}
Terminus's own pack is a complete example: onterminus.com/stickers/terminus/pack.json.
What Terminus checks
A pack that fails any of the first five isn't added. Text and tags that run over are cut short, not refused.
| Field | Rule |
|---|---|
format, version | Exactly "farcaster-sticker-pack" and 1. |
id | Lowercase letters, digits, . _ -; starts with a letter or digit; at most 64 characters. |
name | Required for the pack. |
stickers | Between 1 and 100, each with its own id, which follows the same rule as the pack's. |
Sticker url | https, at most 1,024 characters, on a named host: no port, no username or password, and no bare IP address. |
mimeType | Optional. If given, image/webp, image/png or image/gif. |
| Manifest size | At most 128 KB. |
| Text | name is cut to 100 characters, alt to 200, description to 300. |
tags | The first 12 for each sticker are kept, each cut to 40 characters. They're what search matches. |
Picture size isn't checked when a pack is added. Keep each picture under 2 MB: the phone apps keep their own copy only of pictures that size or smaller, and a bigger one loads through Terminus's proxy each time.
One address can have 20 new packs read a minute, and a person can add up to 50 packs.
How a sticker appears in a post
A sticker is an ordinary image embed whose URL is the sticker's url, which is why other apps show it as a picture. Terminus sends the URL as it is, with nothing added.
- A sticker reply is a reply with empty text and the sticker's URL as its one embed. Terminus draws these small under the post they answer.
- Taking one back deletes that reply.
- A cast is sticker-only when its text is empty and every embed is a known sticker URL.
Stickers in known packs are recognised by exact URL only, never by host or file name. When two packs list the same URL, the packs Terminus includes win, then packs the reader has added, then other known packs.
Markers from other senders
Draft 0.2 of the format lets a sender mark a sticker by adding a fragment to its URL. Terminus takes these two off before matching, and nothing else:
…/v4/too-rude.webp#e=e1258117
…/wave.webp#sticker=v1
…/wave.webp#sticker=v1&pack=https%3A%2F%2Fpacks.example%2Fhello.json&id=wave
Any other fragment, and any query string, counts as part of the URL.
A marker also makes a sticker of a picture from a pack Terminus doesn't know, as the draft asks: it's drawn small like any sticker. The marker must be sticker=v1, with pack and id together or neither, on an https .webp, .png or .gif. Such a sticker belongs to no pack in Terminus. When the marker names a pack, View Pack on the sticker reads that pack through Terminus's proxy, only once you tap it, and offers to add it; without one there's no pack to show. An unmarked picture is a sticker only if it's in a known pack, and a malformed marker leaves an ordinary picture.
Terminus doesn't read the draft's :pack:sticker: shortcodes or its Markdown image notation yet. Both show as the text they are.
Changing a pack
Never change the picture at a URL you've published, and never remove it. Posts link to it, and they'd change or break.
Put each revision's pictures under their own path, such as /v1/, and give a new look a new path, /v2/. Keep one unversioned manifest address that always answers with the newest revision; that's the link people add. Terminus's pack does this:
/stickers/terminus/pack.json the newest revision, cached for an hour
/stickers/terminus/v1/pack.json revision v1, never changes
/stickers/terminus/v1/hello.png never changes
Terminus reads a pack someone has added again about once an hour, and its proxy keeps each read for ten minutes. A sticker you add reaches people who already have your pack within about an hour and ten minutes, plus however long your server caches the unversioned manifest. Cache that address for only a few minutes if you want changes to show sooner.
Hosting
- Serve the manifest and pictures over
https. - Send
Access-Control-Allow-Origin: *on both, so web apps can read them. - Versioned pictures can be cached for good.
Terminus reads your manifest through its own proxy, so your server sees Cloudflare ask, not the person adding the pack.
Getting recognised
When anyone opens a pack's link in Terminus's Add a Pack by Link, the manifest goes into a list that Terminus apps use to recognise that pack's stickers in posts and offer the pack to readers. It's recorded when the pack is read for its preview, whether or not the person then adds it. Only the manifest is recorded, never who opened it. So the way to get your pack recognised is to open its link there once yourself.
That list is open to other apps too. See the sticker directory.
To have a pack removed from that list, email contact@rune.art.