Chat App
Chat App
Chat App
The Chat App is a multi-provider LLM chat interface for FlowState. It provides real-time streaming conversations with support for Anthropic Claude, OpenAI GPT, and LM Studio models. The app features persistent conversation history, MCP (Model Context Protocol) tool integration, markdown rendering with syntax highlighting, and a responsive chat interface.
Key Features
- Multi-Provider Support: Anthropic Claude, OpenAI GPT, and LM Studio
- Streaming Responses: Real-time token-by-token response streaming
- Persistent Conversations: RxDB-backed conversation history with reactive updates
- MCP Tool Integration: Execute tools via FlowState MCP Gateway
- Markdown Rendering: Full markdown support with syntax-highlighted code blocks
- Model Selection: Switch between providers and models per conversation
- Organization/Workspace Isolation: Conversations scoped to org/workspace context
- Responsive Design: Sidebar navigation with conversation list
Target Users
| User Type | Primary Use Cases |
|---|---|
| Developers | Code assistance, debugging, API exploration with tool calls |
| Knowledge Workers | Document drafting, research, Q&A with persistent history |
| Teams | Shared workspace conversations with organization context |
| Power Users | Local model integration via LM Studio, custom system prompts |
Quick Links
- Features & Capabilities - Detailed feature documentation
- Getting Started - Set up and configure the app
Getting Started
Navigation
The app uses a simple navigation structure:
- Sidebar - Conversation list with new chat button
- Chat View (
/chat) - Main chat interface (redirects to new conversation) - Conversation (
/chat/:conversationId) - Active conversation view
Creating Your First Conversation
- Click the "New Chat" button in the sidebar
- A new conversation is automatically created and selected
- Select your preferred provider and model from the header dropdown
- Type your message and press Enter to send
- Watch the streaming response appear in real-time
Switching Models
- Open any conversation
- Click the model dropdown in the header
- Select from available providers (Anthropic, OpenAI, LM Studio)
- Choose a specific model within that provider
- The conversation will use the new model for subsequent messages
Using MCP Tools
If MCP Gateway is configured:
- Tools are automatically loaded when the app initializes
- The AI can invoke tools during conversations
- Tool calls appear with expandable arguments and results
- Status indicators show pending, success, or error states
App Identity
| Property | Value |
|---|---|
| Package | @epicdm/flowstate-app-chat |
| Base Path | /chat |
| Icon | message-square |
| Color | #06B6D4 (cyan-500) |
Related Packages
- @epicdm/flowstate-app-framework - App container framework
- @epicdm/flowstate-agents-llm-client - LLM client abstraction
- @epicdm/flowstate-mcp-client - MCP client for tool execution
- @epicdm/flowstate-collections - Database schemas
- @epicdm/flowstate-rxdb - Database utilities