1import { defineLofiApp } from "@nzip/lofi";2import { app as schema } from "./schema.ts";34/** Author-owned composition for the hosted demo at demo.lofi.host. */5export const app = defineLofiApp({6 name: "lofi-demo",7 databaseName: "lofi-demo",8 schema,9 storage: "durable" as const,10 // Identity is local-first: first boot opens a private, on-device account with11 // no sign-in. The demo compiles without a managed Jazz app, so data stays in12 // this browser unless the visitor enrolls their own sync ticket through the13 // AccountGate island.14 //15 // Device credentials (WebAuthn/PRF) bind to their origin; the demo's16 // production hostname is pinned so passkeys can enroll there, while17 // localhost keeps working for development without configuration.18 credentialOrigins: ["demo.lofi.host"] as readonly string[],19 sync: { adapter: "jazz" as const },20 repositoryUrl: "https://github.com/FelineStateMachine/lofi",21});