--- title: "raea playable" summary: "Export a game as a playable ad: one page or ZIP for each ad network, under its size cap, from the same TSX that renders as the video ad." order: 5 sources: ["apps/playable/src/lib.rs"] --- `raea playable` turns a raea game into a playable ad: a short game served in place of a video ad inside other apps, ending on a card that opens the store. The same file renders with `raea render` as the video ad, because a game that nobody touches plays itself. Each network gets the page or ZIP it takes, with its own start, pause and store calls, checked against its 5 MB cap. Nothing in the page loads anything: pictures, sounds and the 3D renderer travel inside it. ```sh raea playable game.tsx -o out/playable --ios https://apps.apple.com/app/id123 --android https://play.google.com/store/apps/details?id=com.example raea playable game.tsx -o out/playable --networks applovin,google,preview --cta "Play free" ``` Before it bundles, the export refuses what a playable can't have: files read from disk at render time (`staticFile`; import the file instead), URLs and network calls, modules that need the native engine, `