net.anisota.feed.template
A reusable post or reply: a stock answer, a fill-in-the-blanks message, or a pointer to an existing post to quote. The composer turns a template into an ordinary app.bsky.feed.post; nothing about the template travels with the published post. Text may contain {{key}} placeholders. Keys beginning with 'their.' or 'my.', and the key 'today', are filled by the client from context (the post being replied to, the signed-in account, the date); every other key is asked for when the template is used. Facets are deliberately absent: their byte offsets would shift once placeholders are filled, so the composer detects mentions, links and tags after filling, as it does for anything typed. How often a template is used is kept on the device, so using one never rewrites this record.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | feed.anisota.net |
| Indexed |
Record
record · key tidProperties
Client-declared timestamp when this template was created.
embed
unionAttached to every post made from the template. A record embed is how a template points at an existing post to quote.
group
stringOptional heading the picker files the template under, e.g. 'Questions' or 'Bug reports'.
maxLength: 640maxGraphemes: 64
keywords
arrayWords that, when they appear in the post being replied to, make the composer suggest this template first. Matched on the client, case-insensitively.
maxLength: 20
maxLength: 64
langs
arrayLanguages of the template text, when the writer set them. Clients may use them as a hint; they are not applied to posts automatically.
maxLength: 3
What the template is called in the picker, e.g. 'Is there an app?'.
maxLength: 640maxGraphemes: 64
shortcut
stringOptional short word. Typing a slash followed by it in the composer offers this template.
maxLength: 32
The post text, with optional {{key}} placeholders. May be empty when the template only carries an embed (a quote of an existing post, say). The filled result is held to the post limit by the composer, not here.
maxLength: 3000maxGraphemes: 300
updatedAt
string · datetimeClient-declared timestamp when this template was last edited.
use
stringWhere the composer offers the template: as a reply, on a new post, or both.
default: "any"knownValues: any | reply | post
variables
arrayHow to ask for each placeholder. A placeholder with no entry here is still asked for, with its key as the label. Context keys ('their.*', 'my.*', 'today') need no entry; one only supplies a label for when the context is missing, as when a reply template is used on a new post.
maxLength: 12
#variable
objectHow the composer asks for one {{key}} placeholder.
Properties
choices
arrayThe options for a 'choice' placeholder. Each is inserted as written.
maxLength: 12
maxLength: 3000maxGraphemes: 300
default
stringPre-filled answer, which can be changed when the template is used.
maxLength: 3000maxGraphemes: 300
hint
stringAn example or note shown under the answer field.
maxLength: 2000maxGraphemes: 200
The placeholder this describes, without braces: 'idea' for {{idea}}.
maxLength: 32
kind
string'text' asks for a free answer; 'choice' offers the strings in 'choices'.
default: "text"knownValues: text | choice
label
stringThe question asked when the template is used, e.g. 'What did they suggest?'.
maxLength: 640maxGraphemes: 64
optional
booleanWhen true the placeholder may be left blank, and it is removed from the text.
default: false
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
net.anisota.feed.draft
recordRecord containing a draft post that can be edited and later published as app.bsky.feed.post
-
net.anisota.feed.post
recordA post that can be created in the world of Anisota