Web stories written in Markdown.
Full-screen 9:16 cards, played with a tap or a swipe.
Récit webstory turns a Markdown file into a web story: full-screen cards in 9:16, one idea per
card, read one tap at a time. A card has a background (a color, the theme, an image or a muted
video), its text, a call to action if you want, or a motion block. The story below comes from
examples/;
tap its right half, swipe or press the arrow keys. It is also full screen under
Play, and in French.
The Markdown source of this story
examples/webstory-launch/launch.md
The webstory format
One card per scene
Each scene is a 9:16 card: its text, a background and a call to action, never more than one idea.
Tap, swipe, keys
Tap a half to go back or on, swipe, use the arrows; the pause button is always there.
Motion blocks
A card with type=stat, title or list is played by the blocks of motion, the same as in a film.
One image per card
recit export --to images writes a 1080×1920 PNG per card, listed in exports.json.
A vertical film
recit render plays the same file as a 9:16 film: the story and the film share one source.
Typed JSON twin
Every story has a typed JSON form, checked by the schema and convertible both ways.
Start a story
Create a story
10 srecit init --writes a story of Lorem cards.format webstory BashPlay it with live reload
1 minrecit devserves the player and reloads it when the story or a background changes. The Safe area button (or the key G) shades what a social app covers with its own buttons, for the preset picked beside it (instagram-,story tiktok…); the exported pictures stay clean.BashCheck and build
30 srecit validatechecks the cards (density, budget, backgrounds);recit buildwrites the player as static files.Bash
The full syntax is specified on docs.recit.dev.