SvelteChatKit Offers a Provider-Agnostic Streaming Chat UI Kit for SvelteKit
SvelteChatKit is an open-source, provider-agnostic UI kit for SvelteKit 2 and Svelte 5 (runes). It simplifies building AI interfaces with modular state management, streaming support, and plug-and-play config providers.
Why it matters
It allows developers to build chat interfaces that are not locked into a single LLM vendor.
TL;DR
- 01Provider-agnostic design supports multiple LLM backends.
- 02Native support for Svelte 5 runes and SvelteKit 2.
- 03Built-in mobile optimizations and security sanitization.
Universal Chat Interface
SvelteChatKit uses a ChatProvider contract, enabling you to plug in any LLM backend. It supports streaming responses over SSE, NDJSON, or raw text.
Production-Ready UX
The layout is optimized for mobile screens (including 16px inputs to prevent iOS auto-zoom) and includes markdown rendering via marked, syntax highlighting via highlight.js, and sanitization using DOMPurify.