Proposal: one shared story record (community.lexicon.story)

I’m building Astra, a client for Bluesky, and I’d like to add stories. Three apps here already have them, each with a record of its own:

App Record Accounts holding one
Flashes blue.flashes.story.post (and the older app.flashes.story) 773 (+230)
Spark so.sprk.story.post 261
Grain social.grain.story 191

(Counted with com.atproto.sync.listReposByCollection on the bsky.network relay, 3 December 2026.)

A fourth record from me would help no one. I’d rather agree on one that all of us can write and read, so a story posted in any app shows up in every other, and the next app to add stories has one shape to learn instead of four.

Below is a draft. It takes most of its fields from the three records above. Nothing has shipped, so everything here can change, the name included.

The record

community.lexicon.story.post, key tid. Only media and createdAt are required.

Field What it is
media Open union of #image (JPEG, PNG or WebP) and #video (MP4), 5 MB at most, each with optional alt. A video also carries an optional poster still.
expiresInMinutes How long apps show the story, counted from createdAt: 1 to 10080, default 1440. The same field, default and range Flashes uses.
link One web address with an optional title, offered as a button or a swipe on the story. It is something the author attaches, not a pointer to the story’s own copies elsewhere.
location Union of community.lexicon.location.address, .geo and .hthree.
labels com.atproto.label.defs#selfLabels.
createdAt Datetime.

The rules that go with it

A schema can’t carry these, so they are the part I’d most like agreement on.

  • Time on show. A story is shown from createdAt for expiresInMinutes, never longer than 7 days, and not before createdAt.
  • Archive. After that, apps show the story only to its author, who can delete it. The record stays public in the repository until then, so apps shouldn’t word an archive as private.
  • One frame. Every story is made for a 9:16 portrait frame. Writers fit other shapes onto that canvas (1080 by 1920 for an image). Readers show a file of any other shape whole inside the frame, never cropped. That is why there is no aspectRatio.
  • Media as uploaded. Apps fetch the blob from the author’s PDS and show it unconverted, so the formats are fixed and video should be H.264 with AAC. 5 MB is the reference PDS’s default blob limit (its installer sets 300 MB), so it is the size no server should refuse.
  • Moderation as for posts. Self-labels, the reader’s blocks and mutes, and labels on the author or on the story record all apply. A story is reported like any record, with com.atproto.moderation.createReport and the story as its subject.

Highlights

community.lexicon.story.highlight: name, stories (up to 100 entries, each { "story": <at-uri> }, in play order), optional cover and labels, createdAt.

  • A story in a highlight stays on show to everyone, past its time included.
  • A highlight counts only stories from its own repository. Apps ignore any other entry, so nobody can put someone else’s archived story back on show.
  • A deleted story is skipped. Taking a story out of a highlight deletes nothing.

Against the existing records

Draft Flashes Spark Grain
Media image or video, 5 MB image, 10 MB image 5 MB, video 300 MB image or video, 5 MB
Time on show expiresInMinutes expiresInMinutes no field no field
Shape fixed 9:16 no field aspectRatio aspectRatio, required
Alt text yes no yes no
Self-labels yes no yes yes
Location yes no no yes
Link yes no no no
Text and facets no yes no no
Sound, placed embeds, captions no no yes no

I read these from the published schemas, so please correct anything I got wrong about your own record.

Open questions

  1. Video size. 5 MB keeps every server and every connection in play, but it is small for a video-first app: Spark’s record allows 300 MB. Is 5 MB right, or should video be allowed larger, with the poster covering the wait?
  2. Fixed frame or declared shape. Grain and Spark declare an aspect ratio. A fixed frame means every app draws every story the same way. Is that too strict for photo apps?
  3. Text. Flashes carries text and facets. I left text out because most apps bake it into the image, which leaves mentions with nowhere to live. Should an optional text with facets be in the first version?
  4. Sound and placed embeds. Spark has both. I’d leave them to later optional fields or sidecar records. Say if that’s wrong.
  5. Location. The place pin draft can already point at a story, since its subject is any record in the same repository. Should stories drop location and use a pin once that is settled? I’d be happy to.
  6. Reactions. No story-specific record: a reaction to a story would be the community.lexicon.interaction.reaction under discussion, with the story as its subject.
  7. Name and home. Is community.lexicon.story.* the right name, and is this namespace the right home? I understand additions here start with a working group, so tell me how to get one going if this belongs here.

What I’m asking

  • Flashes, Spark, Grain: would you read this record, and would you consider writing it? What would it need first?
  • Everyone: what would you change about the rules above?

Astra will write and read the record that comes out of this, and won’t ship stories before its name is settled.

The schemas

Both parse with @atproto/lexicon, and I’ve run sample records through them.

community.lexicon.story.post
{
  "lexicon": 1,
  "id": "community.lexicon.story.post",
  "defs": {
    "main": {
      "type": "record",
      "description": "A story: one image or short video that apps show for a limited time, counted from createdAt. Once that time is over the story is archived: apps show it only to its author, unless a highlight of the author's (community.lexicon.story.highlight) keeps it on show. The record itself stays in the repository, and stays public, until its author deletes it.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["media", "createdAt"],
        "properties": {
          "media": {
            "type": "union",
            "description": "What the story shows, made for one frame: portrait, 9 wide by 16 tall. An app shows a file of any other shape whole inside that frame. An app that meets a type it does not know leaves the story out.",
            "refs": ["#image", "#video"]
          },
          "expiresInMinutes": {
            "type": "integer",
            "description": "How long apps show the story, in minutes from createdAt. A story with no value is shown for 24 hours. The longest is 7 days.",
            "minimum": 1,
            "maximum": 10080,
            "default": 1440
          },
          "link": {
            "type": "ref",
            "ref": "#link",
            "description": "One web address that goes with the story, which apps offer as a button or a swipe on it."
          },
          "location": {
            "type": "union",
            "description": "Where the story was made. A named place or a coarse area is preferred to exact coordinates.",
            "refs": [
              "community.lexicon.location.address",
              "community.lexicon.location.geo",
              "community.lexicon.location.hthree"
            ]
          },
          "labels": {
            "type": "union",
            "description": "Self-label values for this story. Effectively content warnings.",
            "refs": ["com.atproto.label.defs#selfLabels"]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when the story was created. The time it is shown for is counted from here."
          }
        }
      }
    },
    "image": {
      "type": "object",
      "description": "A still image.",
      "required": ["image"],
      "properties": {
        "image": {
          "type": "blob",
          "description": "The image file, shown as uploaded. 1080 by 1920 pixels fills the frame.",
          "accept": ["image/jpeg", "image/png", "image/webp"],
          "maxSize": 5000000
        },
        "alt": {
          "type": "string",
          "description": "Alt text description of the image, for accessibility.",
          "maxGraphemes": 2000,
          "maxLength": 20000
        }
      }
    },
    "video": {
      "type": "object",
      "description": "A short video.",
      "required": ["video"],
      "properties": {
        "video": {
          "type": "blob",
          "description": "The mp4 video file, played as uploaded: no service converts it. H.264 video with AAC audio plays everywhere. 720 by 1280 pixels or more, in the frame's shape.",
          "accept": ["video/mp4"],
          "maxSize": 5000000
        },
        "poster": {
          "type": "blob",
          "description": "A still of the video in the frame's shape: what an app shows while the video loads, and wherever a story is drawn small. Writers should always set it, since no service makes one.",
          "accept": ["image/jpeg", "image/png", "image/webp"],
          "maxSize": 1000000
        },
        "alt": {
          "type": "string",
          "description": "Alt text description of the video, for accessibility.",
          "maxGraphemes": 2000,
          "maxLength": 20000
        }
      }
    },
    "link": {
      "type": "object",
      "description": "A web address that goes with a story.",
      "required": ["uri"],
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri",
          "description": "The address the story points to. Apps open only https and http addresses, and show where one leads before opening it."
        },
        "title": {
          "type": "string",
          "description": "What to call the link, such as the page's title. An app with no title shows the site's name.",
          "maxGraphemes": 100,
          "maxLength": 1000
        }
      }
    }
  }
}
community.lexicon.story.highlight
{
  "lexicon": 1,
  "id": "community.lexicon.story.highlight",
  "defs": {
    "main": {
      "type": "record",
      "description": "A named set of an account's own stories that stays on show. Apps list an account's highlights on its profile and show the stories in one to everyone, past their time included.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["name", "stories", "createdAt"],
        "properties": {
          "name": {
            "type": "string",
            "description": "What the highlight is called.",
            "minLength": 1,
            "maxGraphemes": 50,
            "maxLength": 500
          },
          "stories": {
            "type": "array",
            "description": "The stories in the highlight, in the order they play. Only stories in the same repository as the highlight count: an app ignores any other entry.",
            "items": { "type": "ref", "ref": "#item" },
            "maxLength": 100
          },
          "cover": {
            "type": "blob",
            "description": "A square picture the highlight is drawn with. With none, an app uses the first story's image or poster.",
            "accept": ["image/jpeg", "image/png", "image/webp"],
            "maxSize": 1000000
          },
          "labels": {
            "type": "union",
            "description": "Self-label values for the highlight's name and cover. Each story in it keeps its own.",
            "refs": ["com.atproto.label.defs#selfLabels"]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Client-declared timestamp when the highlight was created."
          }
        }
      }
    },
    "item": {
      "type": "object",
      "description": "One story in a highlight.",
      "required": ["story"],
      "properties": {
        "story": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of a community.lexicon.story.post record in the same repository as the highlight."
        }
      }
    }
  }
}

I feel like this lexicon is perhaps too limiting; Story’s on other platforms have many many more features, so it may be better to have “story elements” which is an open union with elements positioned by percentage within the story.

E.g., we’d probably want: text, location, mention, add yours (prompt), question, poll, reaction, reaction scale, link, hashtag, donation, countdown as available elements. Also important now is AI labelling (maybe this is a selfLabel)

I think drawings and backgrounds are rendered into the story image/video file, not a layer on top.

Audio on image stories or video stories tends to be overlaid on top, so transported separately from the base media.

A story could also have multiple links, and potentially link to AT URIs, not just HTTP URIs.

Some platforms have also rolled out “story captions” too now, independent of text overlaid on the story.

For localisation, I think it’d be wise to support alternative content in multiple languages, so making it an array of text: string, lang: bcp-code would be suggestible. (oddly this didn’t come up in Proposal: a community lexicon for standalone images )

Why use expiresInMinutes instead of say visibleUntil or something? Expires in suggests the record automatically gets deleted (it doesn’t), and also requires date time maths with createdAt.

I would strongly discourage using com.atproto.label.defs#selfLabels since these are not traceable back to the labeler that owns those labels (this is a floor in Bluesky’s labeler design), instead I’m working on a version that’ll have val & srcproperties in “selfLabels” so you know which labeler the value comes from.

1 Like

Oh, and also, we should probably design these with AT Protocol Spaces in mind from the get-go. Though I’m not sure how that exactly changes the design at all (I’d defer to @ngerakines.me for a question like that)

1 Like

Thanks for the tag, @thisismissem.social. I think this pushes toward a slightly different approach than the draft, but what @bunny is describing is a really good use case for spaces, specifically public spaces.

If a story is truly ephemeral, two things come to mind right away. The first is deniability. A record in a public repository is signed and committed, and it goes out over the firehose, so anyone who archives the network has cryptographic proof you posted it long after the 24 hours are up. The second is removal. When a story is done, the author should be able to take it down and have it actually be gone, not kept as a public record that apps politely agree to stop showing and that indexers keep tracking forever. I’d also treat those as two separate moments. A story expires when apps stop showing it as current; it’s removed when the author deletes it, and it’s no longer available at all. Most stories are removed at or shortly after expiry, but a story the author adds to a highlight is never removed. It keeps its original expiry for historical context, so an app can still show it was from a particular day, and it stays in the space as long as the highlight wants it.

What I’d propose is a model where every identity that wants public stories has its own public stories space, with its story records written only to that space. The space is readable by anyone by default, keeping stories as open and interoperable as the draft intends, and the space’s policy gives the author a real way to keep blocked people from reading their stories at all, rather than relying on every app to filter them out. Since story records never land in the public repository, they aren’t committed to the repo or broadcast on the firehose, and removing one actually deletes it rather than archiving it in public.

Most of the record shape in the draft carries over. community.lexicon.story.post would be written into the space instead of the repository, and an app that wants to show someone’s stories would read their stories space. Highlights fit naturally too: a highlight lives in the same space, and a story in a highlight is just one the author hasn’t removed, so it stays under the same access rules as everything else they’ve posted.

1 Like

Thank you both, this is the feedback I was hoping for.

@ngerakines.me spaces:

The case for spaces is clear, and splitting expiry (apps stop showing a story as current) from removal (the author deletes it) is cleaner than what I wrote. I see stories a little differently, though. What makes a story a story to me isn’t that it disappears, it’s that it’s current for a while and then stops being, where a post stays current for good. Keeping a story afterwards is part of that: its author keeps an archive, and a highlight puts a story back on show.

A public record does all of that, the same way posts do today, with blocks and mutes applied by apps. So I’d keep the record in the repository, with the draft’s rule that apps never call an archived story private or gone. Spaces could come later as an option for authors who want a story removed for good or kept from people they blocked, and as you say, the record would carry over unchanged.

@thisismissem.social the record itself:

  • Elements. Agreed that it needs room to grow. I’d add an optional elements array, an open union, each placed on the 9:16 frame. Lexicons have no floats, so positions would be integers, say 0 to 10000 of the frame’s width and height. I’d start with link, mention and hashtag, and leave polls, questions and reaction scales to later element types, since their answers need records of their own.
  • Links. The single link stays as the button or swipe, and link elements add more. AT URIs should work in both: the uri format already allows them, only my description said otherwise.
  • Text. An optional caption with facets and langs, apart from anything drawn into the image. That also covers the text Flashes has. For other languages I’d follow posts and use langs rather than translations inside the record, unless there’s a case I’m missing.
  • Sound. Agreed that it travels apart from the media. An optional sound file can come in a later version without breaking anything.
  • The time field. I’d keep minutes: that lets the schema hold the 7-day cap, where a date leaves every app to check it, and it’s the field Flashes already writes. I’m not attached to the name, though. It means “stops showing as current”, not deletion, so something like showForMinutes would say that better.
  • Labels. labels is already a union, so your traceable version can join it as a second type when it’s ready, and AI labelling would be one of its values. Is your draft up anywhere? Until then I’d keep selfLabels, since it’s what apps read today.

I’ll fold these into a second draft and post it here. And if this belongs with a working group, I’d be glad to help get one started.