fyi.opensocial.template

A template for a tab for a group's site, published by whoever made it, as it's listed: its name, what it's for, its icon, and its latest version, a fyi.opensocial.templateVersion. A site names it by URI; an agent installs it as a skill. Keyed by the template's name.

Details · record, key any
Kindrecord
Record keyany
Authorityopensocial.fyi
Indexed

Record

record · key any

Properties

createdAt

requiredstring · datetime

description

requiredstring

One line saying what it is and when to use it; what an agent matches a request against.

  • maxLength: 3000
  • maxGraphemes: 300

icon

string

Its icon, as a square SVG, for choosing it: what's drawn in currentColor takes the colour of the text around it; a logo keeps its own colours. Shown as an image, so nothing in it runs.

  • maxLength: 20000

latest

requiredref

Its latest version: a fyi.opensocial.templateVersion in the same repo. A tab that doesn't name a version of its own is drawn from this one.

listed

boolean

Whoever made it asks for it to be listed where people look for things to add to their group. A host lists it only while groups on it keep it, every version it has is scanned with nothing found, and nothing labels it hidden. Not listed, unless it says so.

name

requiredstring

What a site and an agent call it: lowercase letters, digits and dashes. The same as the record key.

  • maxLength: 64

For one shared from a group's tab, within the group or with everyone: the namespace of the tab it was shared from. Sharing that tab again to the same place puts out a new version of this one.

  • maxLength: 13

Versions whoever made them took back, by CID: no tab is brought onto one, and a tab on one goes back to the last version before it that wasn't.

  • maxLength: 100
itemsstring · cid
  • maxLength: 128

updatedAt

string · datetime

When its latest version came out.

#aboutNew

object

Properties

in

requiredstring · nsid

The space's type the site makes with the tab.

label

requiredstring
  • maxLength: 300
  • maxGraphemes: 60

#entry

object

A tab, as the template suggests it, without the template itself.

Properties

accepts

array

Drafts its tabs take that only its page makes into what it keeps.

  • maxLength: 10
itemsref

The app servers it reads for the viewer, by the start of their methods' names. Bluesky's, for app.bsky, needs no naming.

  • maxLength: 10
itemsref

calls

array

The methods it may call for the viewer: the host's, and an app server's, like Bluesky's.

  • maxLength: 50
itemsstring · nsid

labels

array

Its words for what it lets people do, by record kind or method, to follow 'Lets people': 'post events'.

itemsref
Reference

news

array

Which of what its tabs read counts as something new in them.

  • maxLength: 10
itemsref

Whether a tab of it can have a public page, and how it's made.

Reference

reads

array

How what its tabs keep reads, where only its own method knows.

  • maxLength: 10
itemsref

records

array

Every kind of record it reads or writes, and where: nothing else is answered or done.

  • maxLength: 60

section

string

Where it's offered, adding a tab: talking and writing, planning, about the group, from elsewhere, or running the group (only in the group's site); hidden, not offered.

  • maxLength: 32
  • knownValues: talk | plan | about | elsewhere | run | hidden

What each tab made from it is asked, in its settings and when it's added: fields the site draws, whose answers its page reads as os.settings().

  • maxLength: 12
itemsref
Reference

slug

requiredstring
  • maxLength: 64

summary

string

One short line on what a tab of it shows, for choosing it.

  • maxLength: 1000
  • maxGraphemes: 100

title

string
  • maxLength: 640
  • maxGraphemes: 64

The app or standard whose records it shows and writes, said where it's offered: Bluesky, standard.site. Said only when its address is the authority of a record kind it reads or writes, or a method it calls: bsky.app for app.bsky.*.

Reference

#label

object

Properties

action

string

For that write alone.

  • maxLength: 16
  • knownValues: create | update | delete

noun

string

What the records are called, shown: "RSVPs". Empty for records it reads only to show others, like labels.

  • maxLength: 300
  • maxGraphemes: 40

nsid

requiredstring · nsid

A record kind it writes, or a method it calls.

text

string

What writing it, or calling it, lets people do: "post events".

  • maxLength: 300
  • maxGraphemes: 80

#outside

object

Its tabs can have a public page: its version's outside.js builds it on the host, from what's public.

Properties

path

string

The address it suggests: "/blog".

  • maxLength: 200

Names under /.well-known/ its public page also answers, at the page's path: site.standard.publication answers /.well-known/site.standard.publication/blog.

  • maxLength: 10
itemsstring
  • maxLength: 100

#recordUse

object

One kind of record a tab reads or writes, and where. A place is "group" (the group's own public repo), "members" (its members' public repos; read only, by members), "everyone" (anyone's public repo, which the host keeps whole), "accounts" (each named account's newest, fetched when asked; read only), "self" (the viewer's own public repo), or "space:<type>" (the group's spaces of that type, private to whoever each lets in).

Properties

collection

requiredstring · nsid

read

array

The places it reads this kind from.

  • maxLength: 8
itemsstring
  • maxLength: 320

write

array

The places it writes this kind to, and as whom.

  • maxLength: 8
itemsref
Reference

#setting

object

Properties

choices

array
  • maxLength: 20
itemsref
Reference

help

string
  • maxLength: 600
  • maxGraphemes: 160

key

requiredstring

What the page reads it as: os.settings().people.

  • maxLength: 32

kind

string · nsid

For a link, the kind of record it's to. For an about, the kind of thing: a space's type, or a record's collection.

label

requiredstring
  • maxLength: 300
  • maxGraphemes: 60

new

ref

For an about: a new one, made when the tab's added: a space of this type, for whoever its channel is for.

Reference

none

string

For an about: what a tab about none of them shows. Without it, a tab of it must be about one.

  • maxLength: 640
  • maxGraphemes: 64

type

requiredstring

people: some members, or everyone in the tab's channel (the default, which follows it). choice: one of choices, the first unless another is chosen. toggle: off unless turned on. text: a line of words. link: a record anywhere on the network, of kind, given by a link to it; its at:// URI. about: which one of the group's own the tab is for, of kind (a space's type, or a record's collection), kept as the tab's about: what it may read and write follows it, and the tab goes when it does. One at most.

  • maxLength: 16
  • knownValues: people | choice | toggle | text | link | about

#settingChoice

object

Properties

label

requiredstring
  • maxLength: 300
  • maxGraphemes: 60

value

requiredstring
  • maxLength: 64

#worksWith

object

Properties

name

requiredstring
  • maxLength: 300
  • maxGraphemes: 40

url

requiredstring · uri

#writeUse

object

One place a tab writes a kind of record to: as the viewer, into "self" or a space; or as the group, into "group" or a space — the group's own writes allowed by each space's grants to roles.

Properties

actions

array

Only these of making, changing and taking away; all of them, if none.

  • maxLength: 3
itemsstring
  • maxLength: 16
  • knownValues: create | update | delete

as

string
  • maxLength: 16
  • default: "viewer"
  • knownValues: viewer | group

by

string

As the group into "group" or the tab's own space: "readers" is whoever can see the tab, granted to them there, rather than the roles a space grants it to.

  • maxLength: 16
  • knownValues: readers

to

requiredstring

A place: "self", "group", or "space:<type>".

  • maxLength: 320

Similar lexicons

semantic match

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

  • A group's site, in its members space: channels of tabs, shown one at a time, each a whole HTML document drawn in a sandboxed frame. Authored by the group DID; written through putSite by whoever holds group.configure. Anyone else is handed only its public part, by the host. A group without one is shown the starter.

  • One version of a published template, as it was put out: never changed, so a tab that names it gets what was chosen. Its files are the template itself, as a folder of it has them: `template.html` (the page, drawn in a sandboxed frame with the site kit in front of it), `SKILL.md` (how to use it, for an agent), `outside.js` and `outside.html` (its public page, if its tabs can have one), `methods/<name>.js` with `lexicons/<name>.json` (the methods it brings, each a query every tab made from it answe

  • A template shared with everyone, for its own page: what it's called, who made it, what a tab of it does at its latest version, and every version. For anyone; never one shared within a group.

  • Share a tab you can see as a template, for whoever it's shared with to add: its page, its methods and the kinds of record it makes up, never anything written in it. Shared with the group, it's kept in the group's members space, for members to add to their channels. Shared with everyone as the group, it's published in the group's own repo, by whoever may publish for the group, for anyone with its link to add to their own group. Sharing the same tab again to the same place puts out a new version o

  • A tab you can see, as a template shared from it has it, for sharing it with everyone as yourself: its page, its methods and the kinds of record it makes up, the tab's namespace in them made the placeholder, and what a tab of it does. Its records are written in your own repo by you: a fyi.opensocial.templateVersion, each file a blob, and the fyi.opensocial.template listing it, at the record key given. Refused as shareTab refuses, and a new version whose kinds of record change in a way records alr