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.

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr not from the namespace authority
Details · record, key any
Kindrecord
Record keyany
Authorityobservatory.anisota.net
Indexed

Record

record · key any

Properties

Reference

createdAt

requiredstring · datetime

When the element was first crafted; kept across edits.

createdBy

requiredref

The original crafter, carried across a learn. Null when the writer had no attribution to record.

  • nullable
Reference

description

requiredstring

What the element is for, trimmed; may be empty.

Reference
Reference

name

requiredstring

The element's name, trimmed; may be empty. A button with an empty label shows its name.

note

ref
Reference
Reference
Reference
Reference
Reference

type

requiredstring

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: 32
  • knownValues: button | note | quote | reminder | divider | spacer | heading | widget

updatedAt

requiredstring · datetime

When the element was last written.

Reference

#button

object

A tile that does something when tapped.

Properties

accent

requiredstring

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: 32
  • knownValues: tinted | inverted | primary | secondary | tertiary
  • nullable

action

requiredref
Reference

label

requiredstring

The tile's label; empty means the action's catalog label, then the element's name.

size

requiredstring

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: 32
  • knownValues: half | full | xl | sm | md | lg

subLabel

requiredstring

The line under the label; empty means the action's catalog line, if any.

variant

requiredstring

The tile's treatment; null is the standard tile.

  • maxLength: 32
  • knownValues: primary | featured | quiet | bold | glow | bare
  • nullable

#buttonAction

object

What a button does.

Properties

display

string

pin-post only: open the post's thread page, or its card in a modal.

  • maxLength: 32
  • knownValues: thread | modal

pin-search only: which results to open.

  • maxLength: 32
  • knownValues: posts | actors

type

requiredstring

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: 32
  • knownValues: navigate | external | event | spell | pin-post | pin-profile | pin-list | pin-search

value

requiredstring

The path, URL, event name, spell rkey, at:// URI, handle or DID, or query the type names.

#createdBy

object

Attribution for the original crafter of this element.

Properties

did

string · did

handle

string · handle

#divider

object

A rule across the grid, optionally labelled. Nothing pairs across it.

Properties

label

requiredstring

#heading

object

A section heading across the grid.

Properties

subtitle

requiredstring

title

requiredstring

#note

object

A note: a title over a body of text.

Properties

accent

requiredstring
  • maxLength: 32
  • knownValues: tinted | inverted | primary | secondary | tertiary
  • nullable

body

requiredstring

size

requiredstring
  • maxLength: 32
  • knownValues: half | full | xl | sm | md | lg

title

requiredstring

variant

requiredstring
  • maxLength: 32
  • knownValues: primary | featured | quiet | bold | glow | bare
  • nullable

#quote

object

A quotation and who said it.

Properties

accent

requiredstring
  • maxLength: 32
  • knownValues: tinted | inverted | primary | secondary | tertiary
  • nullable

attribution

requiredstring

body

requiredstring

size

requiredstring
  • maxLength: 32
  • knownValues: half | full | xl | sm | md | lg

variant

requiredstring
  • maxLength: 32
  • knownValues: primary | featured | quiet | bold | glow | bare
  • nullable

#reminder

object

A line of text that shows only inside its visibility window.

Properties

accent

requiredstring
  • maxLength: 32
  • knownValues: tinted | inverted | primary | secondary | tertiary
  • nullable

body

requiredstring

size

requiredstring
  • maxLength: 32
  • knownValues: half | full | xl | sm | md | lg

variant

requiredstring
  • maxLength: 32
  • knownValues: primary | featured | quiet | bold | glow | bare
  • nullable

visibility

requiredref

#reminderVisibility

object

When 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

The 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
itemsinteger
  • minimum: 0
  • maximum: 6

endHour

requiredinteger
  • minimum: 0
  • maximum: 23
  • nullable

startHour

requiredinteger
  • minimum: 0
  • maximum: 23
  • nullable

#source

object

Provenance. 'learned' was saved from another user's shared element (see originalUri/originalDid). Absent on an element crafted here.

Properties

originalDid

string · did

DID of the user this element was learned from

originalUri

string · at-uri

AT URI of the element record this one was learned from

type

string
  • knownValues: learned

#spacer

object

A piece of deliberate empty space across the grid.

Properties

size

requiredstring

xl is a double-height beat; anything else a single one.

  • maxLength: 32
  • knownValues: full | xl | sm | md | lg | half

#widget

object

A live tile that reports something.

Properties

accent

requiredstring
  • maxLength: 32
  • knownValues: tinted | inverted | primary | secondary | tertiary
  • nullable

kind

requiredstring

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: 32
  • knownValues: patterns | heatmap | timeOfDay | level | activity | notifications | drafts | postingQueue | spells | quests | trends | lexicons | muteImpact
Reference

metrics

array

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

itemsstring
  • maxLength: 32

showGoal

boolean

activity only: a single score counter shows progress toward the reader's patterns intention.

size

requiredstring
  • maxLength: 32
  • knownValues: half | full | xl | sm | md | lg

variant

requiredstring
  • maxLength: 32
  • knownValues: primary | featured | quiet | bold | glow | bare
  • nullable

#widgetLexicons

object

lexicons only: which ranking to show, and over what window.

Properties

view

requiredstring
  • maxLength: 32
  • knownValues: trending | top

window

requiredstring
  • maxLength: 32
  • knownValues: today | week | month | all

Similar lexicons

semantic match

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

  • net.anisota.observatory.layout

    record not from the namespace authority

    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