Skip to content

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/webstory-launch; tap its right half, swipe or press the arrow keys. It is also full screen under Play, and in French.

Violet gradient with two soft circles

Lorem ipsum.

Card 1 of 6

Lorem LaunchOpen fullscreen
The Markdown source of this story
examples/webstory-launch/launch.md
--- title: Lorem Launch description: A web story of six Lorem cards, in two languages lang: en format: webstory aspectRatio: 9:16 autoplay: true dur: 5 cover: backgrounds/hook.svg --- --- id=hook background=backgrounds/hook.svg alt="Violet gradient with two soft circles" overlay=bottom # Lorem ipsum. --- id=kicker background=gradient Dolor sit amet # One source, every screen. --- id=proof type=stat background=#2a1f4f dur=6 ```yaml value: "42" label: Lorem ipsum dolor caption: Sit amet, consectetur adipiscing ``` --- id=list background=theme ## Sed do eiusmod - Tempor incididunt - Ut labore - Dolore magna --- id=quote background=#0b0b0f overlay=full > Lorem ipsum dolor sit amet. :::notes Ut enim ad minim veniam, quis nostrud exercitation. ::: --- id=cta background=#1d1640 # Try it now ::cta[Get started]{href=https://recit.dev}

Start a story

  1. Create a story

    10 s

    recit init --format webstory writes a story of Lorem cards.

    TerminalBash
    npx recit init launch.md --format webstory
  2. Play it with live reload

    1 min

    recit dev serves 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.

    TerminalBash
    npx recit dev launch.md
  3. Check and build

    30 s

    recit validate checks the cards (density, budget, backgrounds); recit build writes the player as static files.

    TerminalBash
    npx recit validate launch.md && npx recit build launch.md

The full syntax is specified on docs.recit.dev.