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.

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityfeed.anisota.net
Indexed

Record

record · key tid

Properties

createdAt

requiredstring · datetime

Client-declared timestamp when this template was created.

embed

union

Attached to every post made from the template. A record embed is how a template points at an existing post to quote.

group

string

Optional heading the picker files the template under, e.g. 'Questions' or 'Bug reports'.

  • maxLength: 640
  • maxGraphemes: 64

Words 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
itemsstring
  • maxLength: 64

langs

array

Languages 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
itemsstring · language

name

requiredstring

What the template is called in the picker, e.g. 'Is there an app?'.

  • maxLength: 640
  • maxGraphemes: 64

shortcut

string

Optional short word. Typing a slash followed by it in the composer offers this template.

  • maxLength: 32

text

requiredstring

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: 3000
  • maxGraphemes: 300

updatedAt

string · datetime

Client-declared timestamp when this template was last edited.

use

string

Where the composer offers the template: as a reply, on a new post, or both.

  • default: "any"
  • knownValues: any | reply | post

How 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
itemsref
Reference

#variable

object

How the composer asks for one {{key}} placeholder.

Properties

choices

array

The options for a 'choice' placeholder. Each is inserted as written.

  • maxLength: 12
itemsstring
  • maxLength: 3000
  • maxGraphemes: 300

default

string

Pre-filled answer, which can be changed when the template is used.

  • maxLength: 3000
  • maxGraphemes: 300

hint

string

An example or note shown under the answer field.

  • maxLength: 2000
  • maxGraphemes: 200

key

requiredstring

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

string

The question asked when the template is used, e.g. 'What did they suggest?'.

  • maxLength: 640
  • maxGraphemes: 64

optional

boolean

When true the placeholder may be left blank, and it is removed from the text.

  • default: false

Similar lexicons

semantic match

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