Examples
The repository includes complete projects you can run and adapt. Install its dependencies and build the packages once:
git clone https://github.com/replayablejs/replayable.git
cd replayable
pnpm install --frozen-lockfile
pnpm buildDOM Word Ad
pnpm --filter @replayablejs/example-basic-playable devDrag 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
pnpm --filter @replayablejs/example-basic-pixi-playable devReveal 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
pnpm --filter @replayablejs/example-basic-three-playable devTap 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
pnpm --filter @replayablejs/example-basic-assets assetsThe 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).