Spanish Tutor · SvelteKit
This implementation is available in the repository. Fork it, run locally, and adapt the lesson UI around the same Liforma web component embed.
cd examples/spanish-tutor/sveltekit
npm install
npm run dev
# http://localhost:3007 Copy .env.example to .env in the SvelteKit app. Phase 1 lessons use exp_01DEMO1SPANISHCAFE.
Load the CDN script and mount the experience custom element with the selected lesson's ID:
<script src="https://cdn.liforma.ai/sdk/v1/client.js"><\/script>
<liforma-experience experience-id="exp_01DEMO1SPANISHCAFE"></liforma-experience> src/lib/lessons.ts — lesson data and per-lesson experienceIdsrc/lib/components/LiformaEmbed.svelte — SDK loader + web componentsrc/routes/+page.svelte — lesson UI and close-before-switch flowUse the Liforma Spanish Tutor example as source material to build a SvelteKit app. Source repo folder: examples/spanish-tutor/sveltekit Preserve: - Liforma avatar embed via CDN web component (`<liforma-experience experience-id="..." />`) - microphone permission guidance - lesson selection with close-before-switch (no mid-session lesson change) - learning goal card and session status - transcript / session notes panel - responsive layout - environment variable names from .env.example - TypeScript and normal CSS (no Tailwind) Adapt: - branding - lesson content - avatar experience IDs per lesson - surrounding product UI