Establishing connection...

AI Chat


AI Chat is a lightweight, responsive chat interface designed to run LLM conversations at the edge. Utilizing Server-Sent Events (SSE) to stream text responses from Cloudflare’s model registry, it provides a performant chatbot workspace with minimal load-time overhead and client-side history preservation.

Technical Stack

Edge AI & Stream

Inference EngineCloudflare Workers AI LLMs
Models SupportedLlama-3-8B-Instruct, Mistral-7B
Stream APIServer-Sent Events (SSE)
LanguageTypeScript

Infrastructure

ComputeCloudflare Workers
AI TelemetryCloudflare AI Gateway (Rate limiting & logging)
Session CacheClient-side browser state (sessionStorage/localStorage)

Streaming with SSE: Instead of waiting for full LLM completions, the edge Worker streams individual tokens to the client as they are generated, improving perceived response times.

Core Features

  • Responsive Chat Interface — Clean, mobile-friendly layout optimized for typing, reading, and viewing code blocks.
  • AI Gateway Integration — Configured to run through Cloudflare AI Gateway to enable caching, logging, analytics, and custom rate limits.
  • Local History Persistence — Stores conversation history directly on the user’s browser, preventing server leaks and maintaining chat continuity across reloads.
  • Custom Prompts — Easily supports overriding the LLM’s system prompt or selecting different model categories directly from the web layout.
Cloudflare WorkersWorkers AIAI GatewayServer-Sent EventsTypeScriptLLM Streaming
visitor@christran.io — bash
visitor@christran.io:~$type a command and press Enter. try help or ls
visitor@christran.io:~$