Files
tern-web/README.md
T
Mateusz PstruchaandClaude Opus 5 1145e31af6 Initial webapp scaffold
Vite + Svelte 5 + TypeScript with no other runtime dependencies, per the
client spec's speed-and-simplicity priority. Wires up the decided palette
with light/dark/system switching, a two-pane desktop shell, and a thin
API client against the sync server.

Deliberately no PWA/service worker, matching the spec's scope cut.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 19:01:07 +02:00

1.4 KiB

tern-web

Desktop webapp client for Tern — see docs/webapp-client-spec.md and docs/branding-spec.md.

Status: thin scaffold. This is a minimal placeholder, not a built-out feature set — the server side (IMAP sync + REST API) was the priority for this first pass. What's here:

  • Vite + Svelte 5 + TypeScript, no other runtime dependencies, per the spec's "fast and simple" priority (§1) and browser-API-only approach (§5).
  • The decided color palette wired up as CSS custom properties with data-theme light/dark/system switching (§4).
  • A two-pane shell (folder list / message list / reading pane) that calls the real tern-server REST API for folders and messages, plus a login form against /api/auth/login.
  • No PWA, no service worker, no offline cache — matches §2's explicit scope cut.

Not built yet (left for later passes, matching the server's docs/server-architecture-spec.md §9 build order): compose/reply, tag/rule management UI, search, keyboard shortcuts (§4a/§9 open item), sandboxed HTML mail rendering (§6), WebSocket live updates (falls back to nothing right now — no polling loop wired up either).

Running

Requires tern-server running on 127.0.0.1:8080 (see ../server/README.md) — the dev server proxies /api to it.

npm install
npm run dev

npm run check runs svelte-check for type errors.