Site manifest
The manifest is a JSON file at /.well-known/wall.json. It is how a Level 2 site tells a program where its feeds are
and what the wall may do. A program also finds it through <link rel="wall-manifest" href="/.well-known/wall.json">,
and checks the well-known path even when the <link> is missing. URLs in the manifest are absolute or relative to the
manifest URL. The JSON Schema is manifest.schema.json.
{ "version": 1, "policy": "allow", "name": "Example", "brand": { "accent": "#e0556f", "logo": "/logo-512.png", "bg": "#0e0e10" }, "feeds": [ { "id": "latest", "title": "Latest", "url": "/wall/feed/latest", "cursor": true }, { "id": "popular", "title": "Popular", "url": "/wall/feed/popular", "cursor": true }, { "id": "search", "type": "search", "url": "/wall/feed?q={query}" } ], "filters": [ { "id": "type", "title": "Type", "values": ["all", "photo", "video"], "param": "type" } ], "media": { "hosts": ["cdn.example.com"], "variants": { "thumb": 512, "focus": 1024, "full": 2560 }, "projections": ["flat", "equirect180"] }, "actions": { "like": { "method": "POST", "url": "/api/items/{id}/like", "auth": "session", "toggle": true }, "cart": { "mode": "deeplink", "url": "/cart/add/{id}" } }, "auth": { "login": "/login", "device_link": "/wall/link" }, "recipe": "/.well-known/wall-recipe.json", "embed": { "route": "/xr" }}Fields
Section titled “Fields”| Field | Meaning |
|---|---|
version | Integer, 1. Required. |
policy | allow (the default), deny (programs must not build a wall for this origin) or recipes-only (only the recipe you publish in recipe may be used). |
name | The name of the site. Shown in texts such as the sign-in notice. |
brand | accent, logo and bg. The wall uses them for its own colours and logo. |
feeds | Required, at least one. A feed with "type": "search" has {query} in its URL and is used for search. Every other feed is a browsable list. See Feeds. |
filters | Each filter has an id, a display title, its values and the query param it is sent in. The value all means no filter: the parameter is left out. |
media.hosts | Hosts that serve images and video with Access-Control-Allow-Origin: * (or the requesting origin). See Troubleshooting. |
media.projections | Video projections that appear in the feed. Absent means flat only. For HLS and DASH the host must send CORS on every segment too, see Video. |
media.resize | Rules that turn an image URL into smaller copies. See Image sizes. |
actions | Buttons that send a request or open a page. See Actions and login. |
auth | login (your sign-in page), device_link (the phone sign-in endpoint) and csrf. |
recipe | Your own recipe for your DOM. See Recipes. |
scopes | Feeds and pages for the creator (user), collection (board) and tag of an item. See Scopes. |
view | How the wall looks. See View customization. |
embed.route | Where your own Level 3 wall lives. |
brand.accent is drawn as text on the wall background, so it should have a contrast of at least 4.5:1 against brand.bg
(default #0e0e10) and the card surface (#1b1b1f). The validator checks it. Filled buttons use a darker shade of the accent, which the
wall works out itself; it logs a note in the console when it has to adjust a colour.
Scopes
Section titled “Scopes”scopes says where the wall goes when the viewer presses the creator, the collection or a tag of an item.
"scopes": { "user": { "feed": "/wall/feed/user?id={id}", "page": "/u/{id}" }, "board": { "feed": "/wall/feed/board?id={id}", "page": "/boards/{id}" }, "tag": { "feed": "/wall/feed/tag?tag={tag}", "page": "/tags/{tag}" }}{id}is the id of the creator or collection,{tag}the tag. Both are percent-encoded.- A
feedanswers like any feed. It must be on the manifest’s origin, or the wall ignores it and warns. The validator reports it as a failure. - A
pageis any http(s) URL. - A recipe can have
scopestoo. Itsfeedis read with the recipe’sapiand must be insidematch.
Where a button leads: if the scope has a feed, to a wall of those pictures (Back returns). Else to a page: the item’s
creator.url or collection.url, or the scope’s page, after a second press. Else there is no button.
Policy
Section titled “Policy”{ "version": 1, "policy": "deny", "feeds": [{ "id": "x", "url": "/x" }] }With policy: "deny", WellKnownAdapter makes page() reject with an AdapterError whose code is policy-denied,
and the embed script stops. See Security and privacy.