# huggingface/chat-ui

The open source codebase powering HuggingChat

Repository: https://github.com/huggingface/chat-ui
Canonical: https://ross.abutalabs.com/products/chat-ui
Homepage: https://huggingface.co/chat
Language: TypeScript
License: Apache-2.0
License Family: permissive
Topics: chatgpt, huggingface, sveltekit, hacktoberfest, llm, svelte, svelte-kit, tailwindcss, typescript
Last push: 2026-08-26T20:19:01+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 59, longevity 92
- inputs: {"age_days": 1293, "days_push": 7, "days_rel": 114, "gap_med": 159.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10911, forks 1666 (observed 2026-08-28T04:10:44.665686+00:00)

## What it is
Chat UI is the open source SvelteKit web application powering HuggingChat, providing a browser-based chat interface for LLMs. It connects to any OpenAI-compatible API (Hugging Face router, llama.cpp, Ollama, OpenRouter) and stores chat history, users, and files in MongoDB.

## Use cases
- self-host a ChatGPT-style web interface for LLMs
- chat with open source models through a browser
- build a custom chatbot frontend on top of Ollama or llama.cpp
- deploy an internal AI assistant for my team
- give users a UI for OpenAI-compatible API endpoints
- run a local web chat app for local LLMs

## When to choose
- you want a polished, production-proven chat UI (it powers HuggingChat)
- your backend speaks the OpenAI-compatible API protocol
- you need self-hosted chat with history, users, and file storage in MongoDB

## When to avoid
- you need provider-specific integrations like GGUF discovery, embeddings, or built-in web search (removed in current version)
- you don't want a MongoDB dependency
- you need a non-web (desktop/mobile native) chat client

## Facets
- artifact type: application
- maturity: active
- function: chat-interface, http-server, llm-inference
- domain: large-language-models, chatbots, web-development, self-hosted
- platform: self-hosted, cross-platform
- tags: sveltekit, openai-compatible, huggingchat, llm-chat, mongodb, tailwindcss, nodejs, web-server, docker

## Member repositories
- huggingface/chat-ui (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:44.665686+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:17:24.154476+00:00, confidence not recorded.
  - readme: https://github.com/huggingface/chat-ui (fetched 2026-08-28T04:10:44.665686+00:00, sha 57c714ef72bc)
  - homepage: https://huggingface.co/chat (fetched 2026-08-29T08:16:30.461455+00:00, sha 74d573532fbd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
