Build beautiful AI chat applications with SvelteKit, Flowbite UI, and LangGraph in minutes, not months.
A complete, production-ready framework for creating real-time AI chat applications with professional Flowbite components, advanced LangGraph assistants, streaming responses, and enterprise-grade deployment capabilities.
Experience the power of professional design systems with our integrated Flowbite theme:
<!-- Beautiful AI chat in one component -->
<script>
import { LangGraphFrontend } from 'svelte-langgraph';
</script>
<LangGraphFrontend
userId="user123"
theme="flowbite"
darkMode={true}
/>
Note: Node.js 20 and earlier versions are not supported. This project requires Node.js 22+ for optimal performance and latest ECMAScript features.
Get everything running in under 2 minutes:
# 1. Clone and setup
git clone https://github.com/synergyai-nl/svelte-langgraph.git
cd svelte-langgraph
# 2. Configure environment
cp .env.example .env
# Edit .env with your API keys:
# OPENAI_API_KEY=your-key-here
# ANTHROPIC_API_KEY=your-key-here
# LANGSMITH_API_KEY=your-langsmith-key
# 3. Launch everything
docker-compose up -d
# 4. Open your browser
open http://localhost:3000
Demo credentials: demo
/ secret
For customization and development:
# Optional: Infrastructure for persistence (Terminal 1)
docker-compose up -d postgres redis
# Backend (Terminal 2)
cd examples/langgraph-backend
uv run serve
# Frontend (Terminal 3)
cd examples/dashboard
pnpm install && pnpm dev
# Visit http://localhost:5173
Our worldclass documentation covers everything from 5-minute quickstart to enterprise deployment:
Built with modern, scalable architecture patterns:
βββββββββββββββββββ WebSocket βββββββββββββββββββ HTTP/Streaming βββββββββββββββββββ
β Browser β βββββββββββββββΊ β SvelteKit β ββββββββββββββββββββΊ β FastAPI β
β (Flowbite UI) β β Frontend β β LangGraph β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β
βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ
β Socket.IO β β LangGraph Serverβ
β Server β β + AI Assistants β
βββββββββββββββββββ βββββββββββββββββββ
Perfect for building:
svelte-langgraph/
βββ packages/
β βββ svelte-langgraph/ # π¦ Complete library package
β βββ components/ # Flowbite UI components
β βββ stores/ # Socket.IO & state management
β βββ themes/ # Flowbite theme system
β βββ types.ts # LangChain-compatible types
βββ examples/
β βββ dashboard/ # π¨ SvelteKit frontend example
β βββ langgraph-backend/ # π FastAPI backend example
βββ docs/ # π Comprehensive documentation
βββ nginx/ # π Production nginx config
βββ docker-compose.yml # π³ Full-stack deployment
π¦ svelte-langgraph
Package:
π¨ Frontend Example:
π Backend Example:
<!-- Automatic Flowbite theming -->
<LangGraphFrontend userId="user123" theme="flowbite" />
<!-- Custom theme variants -->
<ThemeProvider theme={flowbiteTheme} variant="dark">
<ChatInterface />
</ThemeProvider>
<!-- Runtime theme customization -->
<ThemeProvider theme={customTheme} override={brandColors}>
<LangGraphFrontend userId="user123" />
</ThemeProvider>
Choose your journey:
I want to... | Start here | Time needed |
---|---|---|
Try it quickly | Quick Start | 5 minutes |
Learn step-by-step | Complete Tutorial | 30 minutes |
Customize the UI | Flowbite Theme Guide | 15 minutes |
Deploy to production | Deployment Guide | 1 hour |
Understand the architecture | Architecture Deep Dive | 20 minutes |
Explore these demo routes in the example app:
/
- Main dashboard with Flowbite components/flowbite
- Flowbite theme showcase/demo/paraglide
- Internationalization demo/api/health
- Backend health check endpoint# Install all dependencies (monorepo)
pnpm install
# Start backend
cd examples/langgraph-backend && uv run serve
# Start frontend (new terminal)
cd examples/dashboard && pnpm dev
# Visit http://localhost:5173
# Build library package
cd packages/svelte-langgraph && pnpm build
# Run all tests
nx run-many -t test
# Lint and type check
nx run-many -t lint,check
# Run all quality checks
nx run-many -t test,lint,check --output-style=stream
# Frontend-specific
cd examples/dashboard
pnpm test # Unit tests
pnpm test:e2e # End-to-end tests
pnpm check # TypeScript check
pnpm lint # ESLint
pnpm format # Prettier
# Backend-specific
cd examples/langgraph-backend
uv run pytest # Unit tests
uv run ruff check . # Lint
uv run ruff format . # Format
uv run pyright # Type check
# Production deployment
cp .env.example .env # Configure with real API keys
docker-compose -f docker-compose.prod.yml up -d
# Includes:
# - Nginx reverse proxy with SSL
# - PostgreSQL database
# - Redis for session storage
# - Prometheus + Grafana monitoring
See the Deployment Guide for detailed instructions.
We welcome contributions! See our Contributing Guide for:
MIT Β© Svelte LangServe Contributors
Ready to build amazing AI applications? Start with our 5-minute Quick Start Guide β
Built with β€οΈ using SvelteKit, Flowbite, and LangGraph
Documentation β’ Quick Start β’ Live Demo β’ GitHub