Skip to content

Frontend & UI Workspace

The Loryth user interface lives in ui/ and is managed as a pnpm 9 + Turborepo TypeScript monorepo. One React codebase powers the web app, Linux Electron desktop shell, and Capacitor Android shell.

Package Layout

Path Package Responsibility
ui/packages/contracts @loryth-ui/contracts Shared component prop contracts and UI interfaces
ui/packages/themes @loryth-ui/themes Wisteria Craft design tokens (default.json light, dark.json dark) and Vanilla Extract theme contract
ui/packages/web @loryth-ui/web Reusable React DOM primitives and design-system components
ui/packages/platform @loryth-ui/platform Typed platform bridge (web, desktop, android) and bridge-version.json
ui/packages/api @loryth-ui/api Generated OpenAPI TypeScript clients and TanStack Query hooks
ui/packages/app @loryth-ui/app Application shell, sidebar, Home/AI chat, and app modules
ui/apps/web @loryth-ui/web-app Browser entry point, Vite config, Playwright E2E suite, and screenshot generator
ui/apps/desktop — Electron Linux desktop wrapper and Fedora RPM packaging
ui/apps/android — Capacitor Android wrapper, native plugins, and APK release metadata

Common Commands

Run from ui/:

pnpm install --frozen-lockfile
pnpm lint
pnpm typecheck
pnpm test
pnpm build

Updating Screenshots

Repeatable desktop (1280×800) and phone (390×844) Light & Dark screenshots are captured from the built web bundle against seeded mock fixtures using Playwright (ui/apps/web/scripts/capture-screenshots.mjs).