place.hud.app
Kept in the account that published it, keyed by a name it picks (1 to 64 of a-z, 0-9 and -), its address /a/<handle>/<key>. HUD reads it, and its blobs by CID, from that account's PDS (place.hud.getFrameApp), and runs its document with no network, no cookies and nothing of the page's. Republishing replaces it: entries name the version that wrote them.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | hud.place |
| Commit rev | 3n3kx77n2xdju |
| Indexed |
Showing version bafyreigod6eh5zev6pyf3rmcsm443akq7dhbg5h4nf7pu4lrxv4qol7poe. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"collection": {
"description": "A collection an app reads or writes beyond its entries.",
"properties": {
"collection": {
"format": "nsid",
"type": "string"
}
},
"required": [
"collection"
],
"type": "object"
},
"kind": {
"description": "A kind of entry an app saves (place.hud.app.entry).",
"properties": {
"def": {
"description": "A lexicon object def (type object, its properties and which are required) each entry's data is checked against. A bytes field names its maxLength, and a kind's bytes fields hold at most 700000 bytes together.",
"type": "unknown"
},
"name": {
"description": "Its name, a def's in the app's lexicon: 1 to 64 letters and digits in lowerCamelCase, as lap or bestLap.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"name",
"def"
],
"type": "object"
},
"main": {
"description": "Kept in the account that published it, keyed by a name it picks (1 to 64 of a-z, 0-9 and -), its address /a/<handle>/<key>. HUD reads it, and its blobs by CID, from that account's PDS (place.hud.getFrameApp), and runs its document with no network, no cookies and nothing of the page's. Republishing replaces it: entries name the version that wrote them.",
"key": "any",
"record": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"html": {
"accept": [
"text/html"
],
"description": "Its document, UTF-8, everything it loads inline: framed sandboxed, allowed scripts and nothing else.",
"maxSize": 2000000,
"type": "blob"
},
"icon": {
"accept": [
"image/png",
"image/webp"
],
"description": "Its icon, square.",
"maxSize": 256000,
"type": "blob"
},
"kinds": {
"description": "The kinds of entry it saves, each checked against its def before it is written.",
"items": {
"ref": "#kind",
"type": "ref"
},
"maxLength": 16,
"minLength": 1,
"type": "array"
},
"name": {
"description": "What the app is called.",
"maxGraphemes": 64,
"maxLength": 640,
"type": "string"
},
"origins": {
"description": "The https origins its document may load pictures, audio and video from, each one a view HUD trusts names: its frame's policy lets them in img-src and media-src alone, never to fetch, script or frame. None, where it is left out.",
"items": {
"ref": "#origin",
"type": "ref"
},
"maxLength": 8,
"type": "array"
},
"reads": {
"description": "Public collections it reads beyond its entries (place.hud.listAppRecords, place.hud.getAppRecords): anyone's records of them, from HUD's index and their PDSes. Not place.hud.* collections.",
"items": {
"ref": "#collection",
"type": "ref"
},
"maxLength": 16,
"type": "array"
},
"summary": {
"description": "What it is, in a sentence or two, as its page and its link's preview say.",
"maxGraphemes": 300,
"maxLength": 3000,
"type": "string"
},
"words": {
"accept": [
"application/json"
],
"description": "Its words, as a JSON object by language (en among them): each language's words by key, as the app reads them.",
"maxSize": 512000,
"type": "blob"
},
"writers": {
"description": "Who may write its entries, when given: place.hud.createAppEntry refuses anyone else, and place.hud.listAppEntries leaves out others' entries. Anyone, where it is left out.",
"items": {
"ref": "#writer",
"type": "ref"
},
"maxLength": 200,
"type": "array"
},
"writes": {
"description": "Collections it writes in the person's own repository beyond its entries (place.hud.createAppRecord, place.hud.deleteAppRecord), once they allow it: each one whose record lexicon HUD bundles, never HUD's own, com.atproto.* or app.bsky.actor.profile.",
"items": {
"ref": "#collection",
"type": "ref"
},
"maxLength": 8,
"type": "array"
}
},
"required": [
"name",
"html",
"kinds",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"origin": {
"description": "An origin an app loads media from.",
"properties": {
"url": {
"description": "https://host, or https://host:port: no path.",
"format": "uri",
"maxLength": 256,
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
},
"writer": {
"description": "An account an app lets write its entries.",
"properties": {
"did": {
"format": "did",
"type": "string"
}
},
"required": [
"did"
],
"type": "object"
}
},
"description": "A frame app someone published for HUD to run: an HTML document in a sandboxed frame, and the kinds of entry it saves.",
"id": "place.hud.app",
"lexicon": 1
}