deep-chat
llms.txt3.7k starsChanged 3 years agoMITView on GitHub
Web component (deep-chat) and React wrapper (deep-chat-react) for AI chat interfaces. Request body: {messages: MessageContent[]} for text-only, or FormData with files array and message{index} properties for file uploads. Parse FormData on server with formData.get("message1"). Supports: AssemblyAI, Azure, BigModel, Claude, Cohere, DeepSeek, Dify, Gemini, Groq, HuggingFace, Kimi, MiniMax, Mistral, Ollama, OpenAI, OpenRouter, OpenWebUI, Perplexity, Qwen, StabilityAI, Together, X maxMessages behavior: undefined = only input text/files sent (no history); 0 or below = all messages; 1 = only new user message; 2…
- Installs packages
- Sends data out
Trending
Quiet since September.about the whole repository
Who's talking about OvidijusParsiunas/deep-chat
- A Hacker News story“Show HN: Deep Chat – AI chat component”Hacker News · Oct 15, 2023 · 68 points
- @github-trending.bsky.social“📦 OvidijusParsiunas / deep-chat ⭐ 2,763 (+31) 🗒 TypeScript Fully customizable AI chatbot component for …”Bluesky · Sep 20, 2025 · 2 likes
- @github-trending-js.bsky.social“📦 OvidijusParsiunas / deep-chat ⭐ 2,763 (+31) 🗒 TypeScript Fully customizable AI chatbot component for …”Bluesky · Sep 20, 2025 · 2 likes
- @github-trending-js.bsky.social“📦 OvidijusParsiunas / deep-chat ⭐ 2,069 (+72) 🗒 TypeScript Fully customizable AI chatbot component for …”Bluesky · Apr 8, 2025 · 1 likes
- sutasmantas/website-ai-assistant“deps: bump the npm-dependencies group across 1 directory with 20 updates”GitHub · Sep 4, 2026
The biggest 5 of 48 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 48
Talked about on GitHub, Bluesky and Hacker News (48 times).
On GitHub · 44
- Sep 4, 2026deps: bump the npm-dependencies group across 1 directory with 20 updates — sutasmantas/website-ai-assistant0 reactions
- Aug 31, 2026chore(deps): bump deep-chat from 2.5.0 to 2.5.1 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions
- Jul 27, 2026build(deps): bump the frontend-minor-patch group across 1 directory with 15 updates — WILLIAMMDN/daemon0 reactions · 1 comment
- Jul 24, 2026build(deps): bump the frontend-minor-patch group across 1 directory with 12 updates — WILLIAMMDN/daemon0 reactions · 1 comment
- Jul 20, 2026chore(deps): bump deep-chat from 2.4.2 to 2.5.0 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions · 1 comment
39 more on GitHub
- Jul 19, 2026build(deps): bump the frontend-minor-patch group across 1 directory with 12 updates — WILLIAMMDN/daemon0 reactions · 1 comment
- Jun 6, 2026[Add] Deep Chat (OvidijusParsiunas/deep-chat) — PyTorchKR/landscape0 reactions
- Jan 7, 2026chore(deps): bump deep-chat from 2.4.0 to 2.4.1 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions · 1 comment
- Dec 30, 2025chore(deps): bump deep-chat from 2.3.0 to 2.4.0 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions · 1 comment
- Oct 22, 2025chore(deps): bump deep-chat from 2.2.2 to 2.3.0 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions · 1 comment
- Jul 3, 2025build(deps): Bump deep-chat from 2.2.1 to 2.2.2 — podman-desktop/extension-kubernetes-dashboard0 reactions · 1 comment
- Jul 3, 2025chore(deps): bump deep-chat from 2.2.1 to 2.2.2 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions · 1 comment
- Jun 11, 2025Make a simple demo Chatbot by GEMINI [Keep for latest] — tringdev/book-management0 reactions
- May 12, 2025chore(deps): bump deep-chat from 2.2.0 to 2.2.1 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions · 1 comment
- May 1, 2025chore(deps): bump deep-chat from 2.1.1 to 2.2.0 — redhat-developer/podman-desktop-redhat-lightspeed-ext0 reactions
- Dec 30, 2024Bump deep-chat-dev from 9.0.189 to 9.0.224 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions
- Dec 23, 2024Bump deep-chat-dev from 9.0.189 to 9.0.223 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Dec 16, 2024A11y/add semantics to input button — imgiseverything/deep-chat0 reactions
- Dec 16, 2024Bump deep-chat-dev from 9.0.189 to 9.0.219 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Nov 18, 2024Bump deep-chat-dev from 9.0.189 to 9.0.204 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Nov 11, 2024Bump deep-chat-dev from 9.0.189 to 9.0.200 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Nov 4, 2024Bump deep-chat-dev from 9.0.189 to 9.0.199 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Oct 28, 2024Bump deep-chat-dev from 9.0.189 to 9.0.197 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Oct 27, 2024Deep Chat integration — kubeai-project/kubeai0 reactions
- Oct 14, 2024Bump deep-chat-dev from 9.0.189 to 9.0.194 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Oct 2, 2024Bump deep-chat-dev from 9.0.179 to 9.0.193 — miroshar-success/SpeechToText-TextToSpeech-ChatGPT0 reactions · 1 comment
- Aug 26, 2024Bump deep-chat-dev from 9.0.179 to 9.0.189 — nasa-petal/bidara-deep-chat0 reactions
- Aug 13, 2024Support code_interpreter and vision for file uploads — nasa-petal/bidara-deep-chat0 reactions · 3 comments
- Aug 5, 2024Bump deep-chat-dev from 9.0.179 to 9.0.188 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jul 31, 2024add support for Azure OpenAI Assistants API — nasa-petal/bidara-deep-chat0 reactions · 2 comments
- Jul 8, 2024Bump deep-chat-dev from 9.0.179 to 9.0.185 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jul 1, 2024Bump deep-chat-dev from 9.0.179 to 9.0.183 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jun 17, 2024Bump deep-chat-dev from 9.0.179 to 9.0.180 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Apr 17, 2024evaluate upgrading to v2 of the Assistants API — nasa-petal/bidara-deep-chat0 reactions · 3 comments
- Apr 3, 2024Vision and Threads Sync (v3) — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Mar 29, 2024support streaming messages — nasa-petal/bidara-deep-chat0 reactions · 6 comments
- Feb 23, 2024download links for files generated by code interpreter don't have filenames or extensions — nasa-petal/bidara-deep-chat0 reactions
- Feb 19, 2024Bump deep-chat-dev from 9.0.131 to 9.0.135 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Feb 12, 2024Bump deep-chat-dev from 9.0.124 to 9.0.131 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Feb 5, 2024Bump deep-chat-dev from 9.0.117 to 9.0.124 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jan 29, 2024Bump deep-chat-dev from 9.0.117 to 9.0.118 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jan 22, 2024Bump deep-chat-dev from 9.0.114 to 9.0.117 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jan 15, 2024Bump deep-chat-dev from 9.0.108 to 9.0.111 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
- Jan 8, 2024Bump deep-chat-dev from 9.0.106 to 9.0.108 — nasa-petal/bidara-deep-chat0 reactions · 1 comment
On Bluesky · 3
- Sep 20, 2025📦 OvidijusParsiunas / deep-chat ⭐ 2,763 (+31) 🗒 TypeScript Fully customizable AI chatbot component for your website — @github-trending.bsky.social2 likes and reposts
- Sep 20, 2025📦 OvidijusParsiunas / deep-chat ⭐ 2,763 (+31) 🗒 TypeScript Fully customizable AI chatbot component for your website — @github-trending-js.bsky.social2 likes and reposts
- Apr 8, 2025📦 OvidijusParsiunas / deep-chat ⭐ 2,069 (+72) 🗒 TypeScript Fully customizable AI chatbot component for your website — @github-trending-js.bsky.social1 likes and repost
On Hacker News · 1
- Oct 15, 2023Show HN: Deep Chat – AI chat component68 points · 4 comments
The file
Files
# Deep Chat - LLM Reference
Web component (`deep-chat`) and React wrapper (`deep-chat-react`) for AI chat interfaces.
## Installation
```bash
npm install deep-chat
npm install deep-chat-react
```
## Connection
### `connect`
```typescript
connect: {
url?: string
method?: string // default: "POST"
headers?: {[key: string]: string}
additionalBodyProps?: {[key: string]: any}
credentials?: string // default: "same-origin"
websocket?: boolean | string | string[]
stream?: true | {simulation?: boolean | number | string, readable?: boolean, partialRender?: boolean} // simulation: number=ms delay, string=end-phrase for websockets
handler?: (body: {messages: MessageContent[]}, signals: Signals) => void // error handling must be done within handler
}
Signals: {
onResponse: (response: Response) => Promise<void>
onOpen: () => void
onClose: () => void
stopClicked: {listener: () => void}
newUserMessage: {listener: (body: any) => void}
}
```
Request body: `{messages: MessageContent[]}` for text-only, or FormData with `files` array and `message{index}` properties for file uploads. Parse FormData on server with `formData.get("message1")`.
### `directConnection`
Prototyping only - API keys in client code are visible in browser. Use `connect` with server proxy for production.
Supports: AssemblyAI, Azure, BigModel, Claude, Cohere, DeepSeek, Dify, Gemini, Groq, HuggingFace, Kimi, MiniMax, Mistral, Ollama, OpenAI, OpenRouter, OpenWebUI, Perplexity, Qwen, StabilityAI, Together, X
```html
<deep-chat directConnection='{"openAI": {"key": "sk-...", "chat": {"model": "gpt-4"}}}'></deep-chat>
```
### `webModel`
```html
<deep-chat webModel="true"></deep-chat>
```
### `requestBodyLimits`
```typescript
requestBodyLimits: {maxMessages?: number, totalMessagesMaxCharLength?: number}
```
`maxMessages` behavior: `undefined` = only input text/files sent (no history); `0` or below = all messages; `1` = only new user message; `2` = new message + one previous; etc. `introMessage` is never included.
## Methods
```typescript
getMessages(): MessageContent[]
clearMessages(isReset?: boolean): void
submitUserMessage(message: {text?: string, files?: File[] | FileList}): void
addMessage(message: Response, isUpdate?: boolean): void
updateMessage(message: MessageContent, index: number): void
scrollToBottom(): void
focusInput(): void
setPlaceholderText(text: string): void
disableSubmitButton(override?: boolean): void
refreshMessages(): void
```
## Events
```typescript
onMessage: (body: {message: MessageContent, isHistory: boolean}) => void
onClearMessages: () => void
onComponentRender: (chatElementRef: DeepChat) => void
onInput: (body: {content: {text?: string, files?: File[]}, isUser: boolean}) => void
onError: (error: string) => void
```
## Interceptors
```typescript
requestInterceptor: (details: {body: any, headers: {[key: string]: string}}) => details | {error: string}
responseInterceptor: (response: any) => Response
loadHistory: (index: number) => MessageContent[] | Promise<MessageContent[]>
validateInput: (text?: string, files?: File[]) => boolean
```
## Messages
```typescript
history: MessageContent[]
introMessage: {text?: string, html?: string} | Array
browserStorage: true | {
key?: string // default: "deep-chat-storage"
maxMessages?: number // default: 1000
textInput?: boolean
scrollHeight?: boolean
clear?: () => void // auto-assigned, requires object form (not boolean) to access
}
displayLoadingBubble: boolean | {toggle: (config?: {style?: LoadingStyles, role?: string}) => void}
scrollButton: true | {styles?: StatefulStyles, smoothScroll?: boolean, scrollDelta?: number, content?: string}
hiddenMessages: true | {
styles?: StatefulStyles
onUpdate?: (content: string, number: number) => string
clickScroll?: "first" | "last"
smoothScroll?: boolean
}
errorMessages: {
displayServiceErrorMessages?: boolean
overrides?: {default?: string, service?: string, speechToText?: string}
}
maxVisibleMessages: number // default: 4000
avatars: true | {
default?: Avatar
ai?: Avatar
user?: Avatar
[customRole]?: Avatar
}
Avatar: {
src?: string
styles?: {avatar?: CustomStyle, container?: CustomStyle, position?: "start" | "end"}
}
names: true | {
default?: Name
ai?: Name
user?: Name
[customRole]?: Name
}
Name: {text?: string, style?: CustomStyle, position?: "start" | "end"}
```
## HTML Content
```typescript
htmlClassUtilities: {
[className: string]: {
events?: {[eventType: string]: (event: Event) => void}
styles?: StatefulStyles
}
}
htmlWrappers: {default?: string, ai?: string, [roleName]?: string}
```
Built-in classes: `deep-chat-button`, `deep-chat-suggestion-button`, `deep-chat-temporary-message`
Intro panel: Insert HTML between `<deep-chat>` tags with `display: none`.
## Files
```typescript
images: true | FilesServiceConfig
gifs: true | FilesServiceConfig
audio: true | FilesServiceConfig
mixedFiles: true | FilesServiceConfig
camera: true | CameraFilesServiceConfig
microphone: true | MicrophoneFilesServiceConfig
dragAndDrop: boolean | CustomStyle
FilesServiceConfig: {
connect?: Connect
files?: {maxNumberOfFiles?: number, acceptedFormats?: string, infoModal?: {textMarkDown: string, openModalOnce?: boolean}}
button?: Button
}
CameraFilesServiceConfig: {
connect?: Connect
files?: {format?: "png" | "jpeg", dimensions?: {width?: number, height?: number}, maxNumberOfFiles?: number}
button?: Button
modalContainerStyle?: CustomStyle
}
MicrophoneFilesServiceConfig: {
connect?: Connect
files?: {format?: "mp3" | "4a" | "webm" | "mp4" | "mpga" | "wav" | "mpeg" | "m4a", maxDurationSeconds?: number, maxNumberOfFiles?: number}
button?: MicrophoneStyles
}
```
## Speech
```typescript
textToSpeech: true | {
voiceName?: string
lang?: string
pitch?: number
rate?: number
volume?: number
audio?: {autoPlay?: boolean, displayAudio?: boolean, displayText?: boolean}
}
speechToText: true | {
webSpeech?: boolean | {language?: string}
azure?: {region: string, subscriptionKey?: string, token?: string, retrieveToken?: () => Promise<string>, language?: string}
textColor?: CustomStyle
displayInterimResults?: boolean
translations?: {[word: string]: string}
commands?: {stop?: string, pause?: string, resume?: string, submit?: string, removeAllText?: string, commandMode?: string}
button?: MicrophoneStyles
stopAfterSubmit?: boolean
submitAfterSilence?: number
events?: {onStart?: () => void, onStop?: () => void, onResult?: (text: string, isFinal: boolean) => void}
}
```
## Modes
```typescript
demo: true | {
response?: Response | ((message: MessageContent) => Response)
displayErrors?: {default?: boolean, service?: boolean, speechToText?: boolean}
displayLoading?: {message?: boolean, history?: {full?: boolean, small?: boolean}}
displayFileAttachmentContainer?: boolean
}
focusMode: true | {smoothScroll?: boolean, streamAutoScroll?: boolean, fade?: true | number}
upwardsMode: boolean
```
## Styling
```typescript
style: CustomStyle // or chatStyle property
attachmentContainerStyle: CustomStyle
inputAreaStyle: CustomStyle
textInput: {
styles?: {text?: CustomStyle, container?: CustomStyle, focus?: CustomStyle}
placeholder?: {text?: string, style?: CustomStyle}
characterLimit?: number
disabled?: boolean
}
defaultInput: {text?: string, files?: File[] | FileList}
auxiliaryStyle: string // CSS syntax for webkit/advanced styling
dropupStyles: {
button?: Button
menu?: {container?: CustomStyle, item?: StatefulStyles, iconContainer?: CustomStyle, text?: CustomStyle}
}
messageStyles: {
default?: MessageRoleStyles
image?: MessageRoleStyles
audio?: MessageRoleStyles
file?: MessageRoleStyles
html?: MessageRoleStyles
intro?: MessageElementsStyles
error?: MessageElementsStyles
loading?: {message?: LoadingStyles, history?: {full?: LoadingStyles, small?: LoadingStyles}}
}
MessageRoleStyles: {shared?: MessageElementsStyles, user?: MessageElementsStyles, ai?: MessageElementsStyles, [customRole]?: MessageElementsStyles}
MessageElementsStyles: {outerContainer?: CustomStyle, innerContainer?: CustomStyle, bubble?: CustomStyle, media?: CustomStyle}
LoadingStyles: {styles?: MessageElementsStyles, html?: string}
remarkable: {
xhtmlOut?: boolean
html?: boolean
breaks?: boolean
langPrefix?: string
linkTarget?: string
typographer?: boolean
quotes?: string
highlight?: (str: string, lang: string) => string
math?: true | {delimiter?: string, options?: KatexOptions}
applyHTML?: boolean
}
```
## Buttons
```typescript
submitButtonStyles: {
submit?: ButtonStyles
loading?: ButtonStyles
stop?: ButtonStyles
disabled?: ButtonStyles
alwaysEnabled?: boolean
position?: ButtonPosition
tooltip?: Tooltip
}
customButtons: Array<{
styles?: {button?: CustomButtonStyles, dropup?: CustomDropupItemStyles}
position?: ButtonPosition
tooltip?: Tooltip
initialState?: "default" | "active" | "disabled"
setState?: (newState: CustomButtonState) => void
onClick?: (currentState: CustomButtonState) => CustomButtonState | void
}>
CustomButtonStyles: {default?: ButtonStyles, active?: ButtonStyles, disabled?: ButtonStyles}
CustomDropupItemStyles: {default?: CustomDropupItemStateStyles, active?: CustomDropupItemStateStyles, disabled?: CustomDropupItemStateStyles}
CustomDropupItemStateStyles: {item?: StatefulStyles, iconContainer?: CustomStyle, text?: CustomStyle}
```
## Types
```typescript
CustomStyle = CSSStyleDeclaration
StatefulStyles: {default?: CustomStyle, hover?: CustomStyle, click?: CustomStyle}
MessageContent: {role?: "ai" | "user" | string, text?: string, html?: string, files?: MessageFile[], custom?: any}
MessageFile: {name?: string, src?: string, type?: "image" | "audio" | "any", ref?: File} // "image"/"any" with src URL renders as hyperlink
Response: MessageContent & {error?: string, overwrite?: boolean} // overwrite replaces last message from same role
Button: {styles?: ButtonStyles, position?: ButtonPosition, tooltip?: Tooltip}
ButtonStyles: {container?: StatefulStyles, svg?: ButtonInnerStyles, text?: ButtonInnerStyles}
ButtonInnerStyles: {styles?: StatefulStyles, content?: string}
ButtonPosition: "inside-start" | "inside-end" | "outside-start" | "outside-end" | "dropup-menu"
Tooltip: true | {text?: string, timeout?: number, style?: CustomStyle}
MicrophoneStyles: {default?: ButtonStyles, active?: ButtonStyles, unsupported?: ButtonStyles, position?: ButtonPosition, tooltip?: Tooltip}
```
## Example
```javascript
const chat = document.querySelector('deep-chat');
chat.connect = {
handler: (body, signals) => {
fetch('/api/chat', {method: 'POST', body: JSON.stringify(body)})
.then(res => res.json())
.then(data => signals.onResponse({text: data.reply}))
.catch(err => signals.onResponse({error: err.message}));
}
};
```
**Docs:** https://deepchat.dev/docs
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

