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.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · record, key nsid
Kindrecord
Record keynsid
Authorityhud.place
Commit rev3n3jbjep26uju
Indexed

Record

record · key nsid

Properties

activity

string

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.

  • maxLength: 200
  • maxGraphemes: 20

app

string

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.

  • maxLength: 400
  • maxGraphemes: 40

collection

requiredstring · nsid

The collection the view renders.

description

requiredstring

What the view shows, in one line.

  • maxLength: 200

domain

string

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

list

ref

How a page of records is drawn.

Reference

measure

string

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.

  • maxLength: 16
  • knownValues: content | wide | full

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).

  • minLength: 1
  • maxLength: 8
itemsref
Reference

page

ref

How an app page view draws its app's page. A bundled view's alone.

Reference

pageSize

integer

Records per page of a list, by default.

  • minimum: 1
  • maximum: 100

parts

unknown

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.

The section the view adds to an account's profile, where the account uses what it draws. A bundled view's alone.

Reference

How one record is drawn.

Reference

records

array

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.

  • maxLength: 8
itemsref
Reference

#detail

object

Properties

count

requiredunknown

A binding, or a literal integer.

noun

requiredarray
  • minLength: 2
  • maxLength: 2
itemsstring
  • maxLength: 32

#head

object

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

unknown

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.

canonical

unknown

The page's own path on its app's site, starting with /, once read.

What the page shows, text once read.

image

unknown

The picture a preview shows: a blob, or an https URL on the view's origins, once read.

imageAlt

unknown

The picture's alt text, text once read.

The picture's height in pixels, an integer once read, kept only with its width and an image of the view's own.

imageWidth

unknown

The picture's width in pixels, an integer once read, kept only with its height and an image of the view's own.

jsonLd

unknown

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.

noindex

unknown

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.

title

unknown

The page's title, text once read.

type

string

What the page is, as Open Graph's og:type.

  • maxLength: 16
  • knownValues: website | article | profile

#join

object

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

requiredstring
  • maxLength: 64

collection

string · nsid

Refuses ref targets of any other collection.

each

string

A path to an array; ref is then a path within each element.

  • maxLength: 1024

fresh

boolean

A query join asked each time, never an answer HUD keeps a few seconds for whoever asked it.

join

array
  • maxLength: 8
itemsref
Reference

limit

integer
  • minimum: 1
  • maximum: 500

mine

string

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

orderBy

array
  • maxLength: 4
itemsstring
  • maxLength: 1024

params

unknown

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.

query

string · nsid

A query join's method: a query, called once on the whole answer.

ref

string

A path to an at-uri or a strongRef.

  • maxLength: 1024

say

ref
Reference

service

string

A query join's service: a DID with its service's #fragment.

  • maxLength: 2048

unless

string

A query join's gate: a path as when's; the join is called only where it holds nothing.

  • maxLength: 1024

when

string

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

#measureCase

object

A measure an answer is drawn at where it holds something at a path.

Properties

measure

requiredstring

How wide the answer is then drawn, as the view's measure.

  • maxLength: 16
  • knownValues: content | wide | full

when

requiredstring

A path in the answer's scope (params.camera): the case holds where it is neither null, false, 0, "" nor empty.

  • maxLength: 200

#mode

object

Properties

head

ref
Reference

join

array
  • maxLength: 8
itemsref
Reference

layout

requiredref
Reference
Reference

#node

object

A component of the catalog, its props (literal values or bindings {"$": path}), and its children where the component takes them.

Properties

itemsref
Reference

component

requiredstring
  • maxLength: 32

props

unknown

slots

unknown

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.

#page

object

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

join

array

Query joins alone, their params read from the main scope or an earlier join's answer.

  • maxLength: 8
itemsref
Reference

layout

requiredref
Reference

pages

string

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

tag

unknown

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 #).

#part

object

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

What the part draws, in one line.

  • maxLength: 2000
  • maxGraphemes: 200

layout

requiredref

What it draws: its top node a component that draws, not a Use or a Slot.

Reference

#profile

object

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

integer

A collection view's: how many records it shows.

  • minimum: 1
  • maximum: 10
  • default: 3

params

unknown

A method view's: its query's params, each a string, number or boolean, or {"$actor": "did"}.

title

requiredstring

The section's heading.

  • maxLength: 400
  • maxGraphemes: 40

#recordActivity

object

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

unknown

A binding {"$": path} read against the record, its label.

noun

requiredunknown

The record's noun: [singular, plural], two strings of at most 32 characters, as a summary's noun.

verb

requiredstring

A short past-tense verb (Posted).

  • maxLength: 200
  • maxGraphemes: 20

#recordRoute

object

A collection a method view draws as its query, and what making one of its records is.

Properties

Reference

at

unknown

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.

collection

requiredstring · nsid

The collection, a record's NSID.

params

requiredunknown

The query's params, each a string, number or boolean, or a binding {"$": path} read against the record as { uri, cid, did, value }.

#say

object

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

string

A path in the answer to an array or an integer.

  • maxLength: 1024

label

string

A path in the answer to text.

  • maxLength: 1024

noun

requiredarray
  • minLength: 2
  • maxLength: 2
itemsstring
  • maxLength: 32

#summary

object

The short text a tool answers with: a count of nouns, each record's label, and a detail count.

Properties

Reference

label

unknown

A binding, or a literal string.

noun

requiredarray
  • minLength: 2
  • maxLength: 2
itemsstring
  • maxLength: 32

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • place.hud.ui

    object

    A view resolved on the server: its layout drawn against its data, as a tree a client draws with nothing left to interpret, sent as a tool result's _meta.ui. Nodes are told apart by their component (c), not by $type: a node's props (p) are as the def named for its component describes (#textProps for Text, #errorProps for Error), and its items as the def its component's items name. A number with a fraction (a picture's ratio, a Stat's value, a track's duration) is a JSON number, which no lexicon t

  • place.hud.parts

    record not from the namespace authority

    An app's shared parts: pieces of layout its views use, each by <domain>#name.