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
| Kind | record |
|---|---|
| Record key | any |
| Authority | opensocial.fyi |
| Indexed |
Showing version bafyreiahmmalrz47xfn5zzxmerciuw6girogqjhax7624h3fhjbsnahwfm. Show the latest
Record
record · key anyProperties
One line saying what it is and when to use it; what an agent matches a request against.
maxLength: 3000maxGraphemes: 300
icon
stringIts 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
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
booleanWhoever 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.
What a site and an agent call it: lowercase letters, digits and dashes. The same as the record key.
maxLength: 64
takenBack
arrayVersions 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
maxLength: 128
updatedAt
string · datetimeWhen its latest version came out.
#aboutNew
object#entry
objectA tab, as the template suggests it, without the template itself.
Properties
accepts
arrayDrafts its tabs take that only its page makes into what it keeps.
maxLength: 10
appviews
arrayThe app servers it reads for the viewer, by the start of their methods' names. Bluesky's, for app.bsky, needs no naming.
maxLength: 10
calls
arrayThe methods it may call for the viewer: the host's, and an app server's, like Bluesky's.
maxLength: 50
labels
arrayIts words for what it lets people do, by record kind or method, to follow 'Lets people': 'post events'.
reads
arrayHow what its tabs keep reads, where only its own method knows.
maxLength: 10
records
arrayEvery kind of record it reads or writes, and where: nothing else is answered or done.
maxLength: 60
section
stringWhere 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: 32knownValues: talk | plan | about | elsewhere | run | hidden
settings
arrayWhat 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
maxLength: 64
summary
stringOne short line on what a tab of it shows, for choosing it.
maxLength: 1000maxGraphemes: 100
title
stringmaxLength: 640maxGraphemes: 64
worksWith
refThe 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.*.
#label
objectProperties
action
stringFor that write alone.
maxLength: 16knownValues: create | update | delete
noun
stringWhat the records are called, shown: "RSVPs". Empty for records it reads only to show others, like labels.
maxLength: 300maxGraphemes: 40
A record kind it writes, or a method it calls.
text
stringWhat writing it, or calling it, lets people do: "post events".
maxLength: 300maxGraphemes: 80
#outside
objectIts tabs can have a public page: its version's outside.js builds it on the host, from what's public.
#recordUse
objectOne 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
read
arrayThe places it reads this kind from.
maxLength: 8
maxLength: 320
#setting
objectProperties
choices
arraymaxLength: 20
help
stringmaxLength: 600maxGraphemes: 160
What the page reads it as: os.settings().people.
maxLength: 32
kind
string · nsidFor 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.
maxLength: 300maxGraphemes: 60
new
refFor an about: a new one, made when the tab's added: a space of this type, for whoever its channel is for.
none
stringFor an about: what a tab about none of them shows. Without it, a tab of it must be about one.
maxLength: 640maxGraphemes: 64
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: 16knownValues: people | choice | toggle | text | link | about
#settingChoice
object#worksWith
object#writeUse
objectOne 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
arrayOnly these of making, changing and taking away; all of them, if none.
maxLength: 3
maxLength: 16knownValues: create | update | delete
as
stringmaxLength: 16default: "viewer"knownValues: viewer | group
by
stringAs 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: 16knownValues: readers
A place: "self", "group", or "space:<type>".
maxLength: 320
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
fyi.opensocial.site
recordA 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.
-
fyi.opensocial.shareTab
procedureShare 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