go/lem-chat
Claude e6cd676278
feat: add lem-chat TypeScript web components
Standalone chat UI built with vanilla Web Components (Custom Elements +
Shadow DOM) that connects to the MLX inference server's SSE streaming
endpoint. Zero framework dependencies, single JS bundle output.

Components:
- <lem-chat>: Container with SSE client, config via attributes
- <lem-messages>: Scrollable message list with auto-scroll
- <lem-message>: Single message bubble with streaming + <think> tag support
- <lem-input>: Textarea with Enter to send, Shift+Enter for newline

Build: esbuild src/lem-chat.ts → dist/lem-chat.js (15KB ESM)
Replaces the monolithic chat.js in core/go-ml.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 18:23:59 +00:00
..
src feat: add lem-chat TypeScript web components 2026-02-24 18:23:59 +00:00
.gitignore feat: add lem-chat TypeScript web components 2026-02-24 18:23:59 +00:00
index.html feat: add lem-chat TypeScript web components 2026-02-24 18:23:59 +00:00
package-lock.json feat: add lem-chat TypeScript web components 2026-02-24 18:23:59 +00:00
package.json feat: add lem-chat TypeScript web components 2026-02-24 18:23:59 +00:00
tsconfig.json feat: add lem-chat TypeScript web components 2026-02-24 18:23:59 +00:00