Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 1.18 KB

File metadata and controls

27 lines (14 loc) · 1.18 KB

Examples

This folder contains small Layla mini-app examples. Each one demonstrates a different SDK usage pattern.

chat

A basic chat UI demonstrating OpenAI-compatible API usage.

Use this example to see the smallest practical chat integration: creating a LaylaSDK client, sending chat messages, streaming responses into the UI, and stopping an active generation.

chess

A chess mini-app demonstrating character integration, external libraries, and website-hosted output.

Use this example to see how a mini-app can obtain character information, fetch and display character images, use external libraries such as Stockfish, and host the result on a website.

tarrot

A tarot reading mini-app demonstrating in-context chat and bundling assets into one HTML file.

Use this example to see how a mini-app can keep local interaction context, pass that context into chat prompts, and package a richer visual experience with bundled assets.

swipe

A swipe-style character generator demonstrating image generation and creating new characters.

Use this example to see how a mini-app can generate images, build Character Card V2 data, and save newly created characters back into Layla.