Skip to content

Examples ​

The repository includes complete projects you can run and adapt. Install its dependencies and build the packages once:

sh
git clone https://github.com/replayablejs/replayable.git
cd replayable
pnpm install --frozen-lockfile
pnpm build

DOM Word Ad ​

Try the DOM word ad

sh
pnpm --filter @replayablejs/example-basic-playable dev

Drag letters to complete words and reach the endcard. This example uses runtime assets, localization, audio and completion with ordinary DOM elements. It includes English and Armenian.

Pixi and Spine ​

Try the Pixi and Spine ad

sh
pnpm --filter @replayablejs/example-basic-pixi-playable dev

Reveal two animated cards. This example includes English and Spanish, a tutorial, inactivity hints, responsive layout, audio and a star-rating endcard. It installs the optional Spine integration before runtime readiness.

Three.js City Builder ​

Try City Builder

sh
pnpm --filter @replayablejs/example-basic-three-playable dev

Tap empty plots to build a woodland neighborhood. This example uses Meshopt-compressed Kenney models, instanced scenery, animated placement, idle plot hints, and an HTML logo and CTA. It supports portrait and landscape layouts and eight network exports in English.

Asset Processing ​

sh
pnpm --filter @replayablejs/example-basic-assets assets

The asset-only project demonstrates category layouts and processing rules. It generates resources and TypeScript modules rather than a playable application.

Adapt a Project ​

Copy its entry, configuration files and source assets together. Replace workspace dependencies with matching published Replayable versions. Change store URLs and campaign settings, and check all included resources' attribution and license terms before redistribution.

Stop development before running the example's build and export scripts. The playable examples configure eight networks. The DOM and Pixi examples each include two languages (sixteen variants); City Builder includes English (eight variants).

Released under the MIT License. Created by Sargis Sargsyan.