net.anisota.observatory.element
One custom Observatory element — a button, note, quote, reminder, divider, spacer, heading or widget — as its own record, so it can be shared and saved ('learned') by other users, mirroring the spell architecture. Written by src/utils/observatoryElementService.js, which always writes exactly the payload key matching `type` and nothing for the others. The element's place and enabled state live in the separate ordering index at net.anisota.observatory.layout/self (entries: [{ rkey, enabled, order }]). Saved layouts (net.anisota.observatory.layout) embed snapshots of these elements rather than referencing them: a snapshot is this record's type, name, description and payload, without timestamps, attribution or $type.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | observatory.anisota.net |
| Indexed |
Record
record · key anyProperties
When the element was first crafted; kept across edits.
The original crafter, carried across a learn. Null when the writer had no attribution to record.
nullable
What the element is for, trimmed; may be empty.
The element's name, trimmed; may be empty. A button with an empty label shows its name.
Which kind of element this is, and so which one payload key the record carries. A reader skips a type it does not know.
maxLength: 32knownValues: button | note | quote | reminder | divider | spacer | heading | widget
When the element was last written.
#button
objectA tile that does something when tapped.
Properties
A theme-colour treatment: tinted (accent frame and leading text) or inverted (solid accent). primary/secondary/tertiary are legacy values older records carry. Null is none.
maxLength: 32knownValues: tinted | inverted | primary | secondary | tertiarynullable
The tile's label; empty means the action's catalog label, then the element's name.
Legacy geometry: what the row migration reads to place a tile that no layout row claims yet (half pairs up, full takes a row, xl a double-height row; sm/md/lg read as half). Rows are the geometry once a layout has them.
maxLength: 32knownValues: half | full | xl | sm | md | lg
The line under the label; empty means the action's catalog line, if any.
The tile's treatment; null is the standard tile.
maxLength: 32knownValues: primary | featured | quiet | bold | glow | barenullable
#buttonAction
objectWhat a button does.
Properties
display
stringpin-post only: open the post's thread page, or its card in a modal.
maxLength: 32knownValues: thread | modal
searchType
stringpin-search only: which results to open.
maxLength: 32knownValues: posts | actors
navigate: an in-app path. external: a web URL, opened outside the app. event: an app-wide surface by its event name (anisota:openPostComposer, anisota:openNotifications, …). spell: cast or lift the spell with this rkey. pin-post / pin-list: an at:// URI. pin-profile: a handle or DID. pin-search: a search query.
maxLength: 32knownValues: navigate | external | event | spell | pin-post | pin-profile | pin-list | pin-search
The path, URL, event name, spell rkey, at:// URI, handle or DID, or query the type names.
#createdBy
objectAttribution for the original crafter of this element.
#divider
objectA rule across the grid, optionally labelled. Nothing pairs across it.
Properties
#heading
objectA section heading across the grid.
#note
objectA note: a title over a body of text.
Properties
maxLength: 32knownValues: tinted | inverted | primary | secondary | tertiarynullable
maxLength: 32knownValues: half | full | xl | sm | md | lg
maxLength: 32knownValues: primary | featured | quiet | bold | glow | barenullable
#quote
objectA quotation and who said it.
Properties
maxLength: 32knownValues: tinted | inverted | primary | secondary | tertiarynullable
maxLength: 32knownValues: half | full | xl | sm | md | lg
maxLength: 32knownValues: primary | featured | quiet | bold | glow | barenullable
#reminder
objectA line of text that shows only inside its visibility window.
Properties
maxLength: 32knownValues: tinted | inverted | primary | secondary | tertiarynullable
maxLength: 32knownValues: half | full | xl | sm | md | lg
maxLength: 32knownValues: primary | featured | quiet | bold | glow | barenullable
#reminderVisibility
objectWhen a reminder shows, in local time. Hours are whole hours of the day (0-23): from startHour up to but not including endHour, wrapping past midnight when startHour > endHour (a 20-6 window belongs to the day it starts on). Either bound may stand alone; null leaves that side open. With neither, the reminder shows around the clock.
Properties
daysOfWeek
arrayThe days the window applies to (0 = Sunday … 6 = Saturday), by the day the window starts on. Absent or empty means every day. (Records written before this lexicon may carry null here, which reads the same as absent.)
maxLength: 7
minimum: 0maximum: 6
minimum: 0maximum: 23nullable
minimum: 0maximum: 23nullable
#source
objectProvenance. 'learned' was saved from another user's shared element (see originalUri/originalDid). Absent on an element crafted here.
Properties
originalDid
string · didDID of the user this element was learned from
originalUri
string · at-uriAT URI of the element record this one was learned from
type
stringknownValues: learned
#spacer
objectA piece of deliberate empty space across the grid.
Properties
xl is a double-height beat; anything else a single one.
maxLength: 32knownValues: full | xl | sm | md | lg | half
#widget
objectA live tile that reports something.
Properties
maxLength: 32knownValues: tinted | inverted | primary | secondary | tertiarynullable
What the widget shows. A writer coerces a kind it does not know to patterns; a reader draws one it does not know as patterns too.
maxLength: 32knownValues: patterns | heatmap | timeOfDay | level | activity | notifications | drafts | postingQueue | spells | quests | trends | lexicons | muteImpact
lexicons
refmetrics
arrayactivity only: the counters it shows, in the reader's order (score, postsRead, postsCreated, repliesSent, likesSent, repostsSent, likesReceived, repliesReceived, repostsReceived, quotesReceived). Written as ['score'] when none were picked.
maxLength: 32
showGoal
booleanactivity only: a single score counter shows progress toward the reader's patterns intention.
maxLength: 32knownValues: half | full | xl | sm | md | lg
maxLength: 32knownValues: primary | featured | quiet | bold | glow | barenullable
#widgetLexicons
objectlexicons only: which ranking to show, and over what window.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A saved Observatory grid layout. Each record is a complete, self-contained snapshot of a layout — built-in button configuration, the row geometry, the flattened tile order, and embedded element snapshots — so it can be shared by URL and saved ('learned') into another user's PDS without depending on the original author's element records, mirroring the spell architecture. Tile references are 'builtin:<key>' for built-in tiles or 'element:<index>' pointing into the embedded elements array. layout.r