place.hud.view
A view of a collection's records: the joins that gather their related records, and a layout of components that draws them. Its record key is the NSID of the collection it renders. HUD's own validator, not this lexicon, is the authority on whether a view is valid.
Details · record, key nsid
| Kind | record |
|---|---|
| Record key | nsid |
| Authority | hud.place |
| Commit rev | 3n3jbjep26uju |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"backlinks": {
"properties": {
"collection": {
"format": "nsid",
"type": "string"
},
"path": {
"maxLength": 1024,
"type": "string"
}
},
"required": [
"collection",
"path"
],
"type": "object"
},
"detail": {
"properties": {
"count": {
"description": "A binding, or a literal integer.",
"type": "unknown"
},
"noun": {
"items": {
"maxLength": 32,
"type": "string"
},
"maxLength": 2,
"minLength": 2,
"type": "array"
}
},
"required": [
"count",
"noun"
],
"type": "object"
},
"head": {
"description": "What a page drawing the mode says of itself in its HTML head, to search engines and link previews, read against the mode's scope as an action's record is: each field a literal, a binding, or {\"$join\": [values]}, {\"$first\": [values]}, {\"$rkey\": path} and the rest of a template; one that reads nothing is left out. A trusted view's alone reaches the tree (_meta.ui.head).",
"properties": {
"at": {
"description": "The page's at-tags: an object of canonical, alternate and author, each structured data as jsonLd is (so {\"$each\": [array, template]} reads a list) that reads an AT URI or a list of them; what is not at:// is left out.",
"type": "unknown"
},
"canonical": {
"description": "The page's own path on its app's site, starting with /, once read.",
"type": "unknown"
},
"description": {
"description": "What the page shows, text once read.",
"type": "unknown"
},
"image": {
"description": "The picture a preview shows: a blob, or an https URL on the view's origins, once read.",
"type": "unknown"
},
"imageAlt": {
"description": "The picture's alt text, text once read.",
"type": "unknown"
},
"imageHeight": {
"description": "The picture's height in pixels, an integer once read, kept only with its width and an image of the view's own.",
"type": "unknown"
},
"imageWidth": {
"description": "The picture's width in pixels, an integer once read, kept only with its height and an image of the view's own.",
"type": "unknown"
},
"jsonLd": {
"description": "schema.org structured data: an object of templates, where {\"$each\": [array, template]} is the template read against each element of the array; what reads nothing is left out.",
"type": "unknown"
},
"noindex": {
"description": "Whether search engines should not index the page: true, or once read true, a list with something in it (labels) or a record (a group); a list of such templates holds where any of them does.",
"type": "unknown"
},
"title": {
"description": "The page's title, text once read.",
"type": "unknown"
},
"type": {
"description": "What the page is, as Open Graph's og:type.",
"knownValues": [
"website",
"article",
"profile"
],
"maxLength": 16,
"type": "string"
}
},
"type": "object"
},
"join": {
"description": "Gathers related records for each record in scope, stored at joins.<as>: by an at-uri or strongRef (ref), by each element of an array (each, with ref within it), or by the records of the same repository whose path holds the record's uri (backlinks). Or, at a mode's top level, a query join (query): a related query called once on the whole answer, its answer at joins.<as>.",
"properties": {
"as": {
"maxLength": 64,
"type": "string"
},
"backlinks": {
"ref": "#backlinks",
"type": "ref"
},
"collection": {
"description": "Refuses ref targets of any other collection.",
"format": "nsid",
"type": "string"
},
"each": {
"description": "A path to an array; ref is then a path within each element.",
"maxLength": 1024,
"type": "string"
},
"fresh": {
"description": "A query join asked each time, never an answer HUD keeps a few seconds for whoever asked it.",
"type": "boolean"
},
"join": {
"items": {
"ref": "#join",
"type": "ref"
},
"maxLength": 8,
"type": "array"
},
"limit": {
"maximum": 500,
"minimum": 1,
"type": "integer"
},
"mine": {
"description": "A query join's gate: a path as when's; the join is called only where it holds the signed-in account's DID.",
"maxLength": 1024,
"type": "string"
},
"orderBy": {
"items": {
"maxLength": 1024,
"type": "string"
},
"maxLength": 4,
"type": "array"
},
"params": {
"description": "A query join's params: each a literal, a binding {\"$\": path} or {\"$root\": path} into the main scope, or into an earlier query join's answer (joins.<as>…) where that join reads no other's.",
"type": "unknown"
},
"query": {
"description": "A query join's method: a query, called once on the whole answer.",
"format": "nsid",
"type": "string"
},
"ref": {
"description": "A path to an at-uri or a strongRef.",
"maxLength": 1024,
"type": "string"
},
"say": {
"ref": "#say",
"type": "ref"
},
"service": {
"description": "A query join's service: a DID with its service's #fragment.",
"maxLength": 2048,
"type": "string"
},
"unless": {
"description": "A query join's gate: a path as when's; the join is called only where it holds nothing.",
"maxLength": 1024,
"type": "string"
},
"when": {
"description": "A query join's gate: a path in the main scope or an earlier query join's answer; the join is called only where it holds something.",
"maxLength": 1024,
"type": "string"
}
},
"required": [
"as"
],
"type": "object"
},
"main": {
"description": "A view of a collection's records: the joins that gather their related records, and a layout of components that draws them. Its record key is the NSID of the collection it renders. HUD's own validator, not this lexicon, is the authority on whether a view is valid.",
"key": "nsid",
"record": {
"properties": {
"activity": {
"description": "What an account did in making one of the collection's records, a short past-tense verb (Posted), for its profile's recent activity: the verb, then the record's label as the list's summary reads it. A bundled collection view's alone, with a list summary.",
"maxGraphemes": 20,
"maxLength": 200,
"type": "string"
},
"app": {
"description": "The app the view's collection or query is of, as people name it (Bluesky): the name of its NSID's domain (app.bsky is bsky.app), where accounts' apps are shown. A bundled view's alone.",
"maxGraphemes": 40,
"maxLength": 400,
"type": "string"
},
"collection": {
"description": "The collection the view renders.",
"format": "nsid",
"type": "string"
},
"description": {
"description": "What the view shows, in one line.",
"maxLength": 200,
"type": "string"
},
"domain": {
"description": "The domain of the app whose page the view draws (knotless.dev), in place of a collection: an app page view, with page. A bundled view's alone.",
"maxLength": 253,
"type": "string"
},
"list": {
"description": "How a page of records is drawn.",
"ref": "#mode",
"type": "ref"
},
"measure": {
"description": "How wide the view would be drawn, where its host can give it the room: content, the host's reading width (the default); wide, a wider one (a profile's grid of pictures); full, all the room its host has for a view. A host decides how wide each is, or draws every view alike; a view drawn inside another's takes the room it is given.",
"knownValues": [
"content",
"wide",
"full"
],
"maxLength": 16,
"type": "string"
},
"measureWhen": {
"description": "How wide an answer is drawn, by what it holds: the measure of the first case whose when it holds something at, else measure. One view of a query so draws some answers wide (a camera's feed of galleries) and others at the reading width (a home feed).",
"items": {
"ref": "#measureCase",
"type": "ref"
},
"maxLength": 8,
"minLength": 1,
"type": "array"
},
"page": {
"description": "How an app page view draws its app's page. A bundled view's alone.",
"ref": "#page",
"type": "ref"
},
"pageSize": {
"description": "Records per page of a list, by default.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"parts": {
"description": "The view's own parts, an object of at most 16, each by its name (a lowercase letter, then letters and digits) a #part: what a Use node of its layouts draws as #name. Each is used.",
"type": "unknown"
},
"profile": {
"description": "The section the view adds to an account's profile, where the account uses what it draws. A bundled view's alone.",
"ref": "#profile",
"type": "ref"
},
"record": {
"description": "How one record is drawn.",
"ref": "#mode",
"type": "ref"
},
"records": {
"description": "The collections a method view draws as its query: a record of one opened by its at-uri answers as the query does, with params read from the record. No other bundled view names or draws the collection. A bundled method view's alone.",
"items": {
"ref": "#recordRoute",
"type": "ref"
},
"maxLength": 8,
"type": "array"
}
},
"required": [
"collection",
"description"
],
"type": "object"
},
"type": "record"
},
"measureCase": {
"description": "A measure an answer is drawn at where it holds something at a path.",
"properties": {
"measure": {
"description": "How wide the answer is then drawn, as the view's measure.",
"knownValues": [
"content",
"wide",
"full"
],
"maxLength": 16,
"type": "string"
},
"when": {
"description": "A path in the answer's scope (params.camera): the case holds where it is neither null, false, 0, \"\" nor empty.",
"maxLength": 200,
"type": "string"
}
},
"required": [
"when",
"measure"
],
"type": "object"
},
"mode": {
"properties": {
"head": {
"ref": "#head",
"type": "ref"
},
"join": {
"items": {
"ref": "#join",
"type": "ref"
},
"maxLength": 8,
"type": "array"
},
"layout": {
"ref": "#node",
"type": "ref"
},
"summary": {
"ref": "#summary",
"type": "ref"
}
},
"required": [
"layout"
],
"type": "object"
},
"node": {
"description": "A component of the catalog, its props (literal values or bindings {\"$\": path}), and its children where the component takes them.",
"properties": {
"children": {
"items": {
"ref": "#node",
"type": "ref"
},
"type": "array"
},
"component": {
"maxLength": 32,
"type": "string"
},
"props": {
"type": "unknown"
},
"slots": {
"description": "A Use node's: what fills its part's Slots, an object of nodes (#node) by slot name, each read where the Use is written.",
"type": "unknown"
}
},
"required": [
"component"
],
"type": "object"
},
"page": {
"description": "An app's page: query joins and a layout over its main scope, { domain, name, icon, actor, me, mine, entries, joins }: the app's domain, name and icon; the page's account (actor, { did, handle }: the one asked of, else the one signed in) and the one signed in (me, or null); whether they are one (mine); the app's entry points, each { title, call }; and the joins' answers.",
"properties": {
"head": {
"ref": "#head",
"type": "ref"
},
"join": {
"description": "Query joins alone, their params read from the main scope or an earlier join's answer.",
"items": {
"ref": "#join",
"type": "ref"
},
"maxLength": 8,
"type": "array"
},
"layout": {
"ref": "#node",
"type": "ref"
},
"pages": {
"description": "The as of the join that pages the page: a List, Covers, Gallery or Player of its answer is the page list, which a page more (its answer's cursor, given that join alone) grows.",
"maxLength": 64,
"type": "string"
},
"tag": {
"description": "What a #tag in the app's text opens, wherever a bundled view of the app draws it: { query, params, service? }, each param a literal or a binding into { tag, hashtag } (the word, and it after a #).",
"type": "unknown"
}
},
"required": [
"layout"
],
"type": "object"
},
"part": {
"description": "A piece of layout a view or an app's parts (place.hud.parts) name once and its layouts use wherever a node goes, through a Use node: drawn there over the value at the Use's scope, its Slot nodes filled by the Use's slots.",
"properties": {
"description": {
"description": "What the part draws, in one line.",
"maxGraphemes": 200,
"maxLength": 2000,
"type": "string"
},
"layout": {
"description": "What it draws: its top node a component that draws, not a Use or a Slot.",
"ref": "#node",
"type": "ref"
}
},
"required": [
"layout"
],
"type": "object"
},
"profile": {
"description": "A section of an account's profile, drawn with the view's own layout. A collection view's shows that collection's newest records (limit), where the account holds it; a method view's calls its query with params, each a literal or {\"$actor\": \"did\"}, the account's DID, where the account holds any collection of the query's domain.",
"properties": {
"limit": {
"default": 3,
"description": "A collection view's: how many records it shows.",
"maximum": 10,
"minimum": 1,
"type": "integer"
},
"params": {
"description": "A method view's: its query's params, each a string, number or boolean, or {\"$actor\": \"did\"}.",
"type": "unknown"
},
"title": {
"description": "The section's heading.",
"maxGraphemes": 40,
"maxLength": 400,
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
},
"recordActivity": {
"description": "What an account did in making one of the collection's records, for its profile's recent activity: the verb, then the record's label, or its noun where it has none.",
"properties": {
"label": {
"description": "A binding {\"$\": path} read against the record, its label.",
"type": "unknown"
},
"noun": {
"description": "The record's noun: [singular, plural], two strings of at most 32 characters, as a summary's noun.",
"type": "unknown"
},
"verb": {
"description": "A short past-tense verb (Posted).",
"maxGraphemes": 20,
"maxLength": 200,
"type": "string"
}
},
"required": [
"verb",
"noun"
],
"type": "object"
},
"recordRoute": {
"description": "A collection a method view draws as its query, and what making one of its records is.",
"properties": {
"activity": {
"ref": "#recordActivity",
"type": "ref"
},
"at": {
"description": "What the query's answer shows first, where it shows one thing at a time (a story in its account's archive): a binding {\"$\": path} read against the record as params are.",
"type": "unknown"
},
"collection": {
"description": "The collection, a record's NSID.",
"format": "nsid",
"type": "string"
},
"params": {
"description": "The query's params, each a string, number or boolean, or a binding {\"$\": path} read against the record as { uri, cid, did, value }.",
"type": "unknown"
}
},
"required": [
"collection",
"params"
],
"type": "object"
},
"say": {
"description": "What a tool's text says of a query join's answer: how many count finds in it, or the first line of label.",
"properties": {
"count": {
"description": "A path in the answer to an array or an integer.",
"maxLength": 1024,
"type": "string"
},
"label": {
"description": "A path in the answer to text.",
"maxLength": 1024,
"type": "string"
},
"noun": {
"items": {
"maxLength": 32,
"type": "string"
},
"maxLength": 2,
"minLength": 2,
"type": "array"
}
},
"required": [
"noun"
],
"type": "object"
},
"summary": {
"description": "The short text a tool answers with: a count of nouns, each record's label, and a detail count.",
"properties": {
"detail": {
"ref": "#detail",
"type": "ref"
},
"label": {
"description": "A binding, or a literal string.",
"type": "unknown"
},
"noun": {
"items": {
"maxLength": 32,
"type": "string"
},
"maxLength": 2,
"minLength": 2,
"type": "array"
}
},
"required": [
"noun"
],
"type": "object"
}
},
"id": "place.hud.view",
"lexicon": 1
}