Live · Personal site
robert-kirsammer.com
A prerendered SvelteKit site built from plain Markdown and YAML, paired with a grounded SSE assistant and automated weekly token tracking.
- databases on the page path
- 0
- hand-rolled locales (EN / DE)
- 2
- strict CSP, zero inline styles
- hash
- Every public page prerenders from Markdown and YAML in the repo and passes through an explicit HTML sanitizer.
- Self-hosted fonts, native scrolling, and zero runtime canvas loops keep navigation instant.
- The Ask assistant retrieves from local site content and public GitHub repos over SSE, with chat history kept strictly in browser IndexedDB.
- Weekly token data is pulled across local machines via ccusage and T3 usage exports into a sanitized JSON snapshot.
Architecture
A Bun monorepo with a SvelteKit 2 / Svelte 5 frontend in apps/web, shared TypeScript packages for config and API types, and a staged Rust (Axum) workspace for future dynamic surfaces. Public pages ship as static HTML from /content with zero database or CMS round trips, deployed on Vercel behind Cloudflare DNS.
Bilingual without a framework
English lives at / and German under /de using a typed TypeScript message catalog and mirrored Markdown trees, falling back cleanly per slug. Every fresh load starts in English with no navigator.language guessing or localStorage; language switches are explicit links with hreflang alternates.
Ask assistant & CSP discipline
Pressing ⌘K opens an assistant behind /api/chat. It scores site pages lexically, optionally pulls public project READMEs or web snippets strictly wrapped as reference data, and streams over Server-Sent Events while keeping conversation history only in browser IndexedDB.
SvelteKit runs in strict hash-mode CSP: inline scripts and style="" attributes are disallowed, dynamic layout values are set via CSSOM, and Schibsted Grotesk + JetBrains Mono are self-hosted in static/fonts.