Mark Ku's Blog

Introduction

chat-demo provides an AI chat interface without requiring you to set up an application backend. A research summary reports that it has earned 5,620 GitHub stars. This is Open Source Daily, and I'm Muyan. Today, we'll look at how to get started quickly and where your API key and chat data are stored.

Today's Open Source Pick

1. chat-demo: An AI chat interface without an application backend

  • What it is: Want to try an AI chat interface without setting up a separate application backend for it? chat-demo is a static application licensed under MIT. The browser connects directly to the configured API service, making it a good fit for engineers who want to quickly try or deploy a chat interface. It saves you the work of deploying an application backend, but chatting still requires an available API service.

  • Recent traction: An Open Source Tools Radar research summary reports that chat-demo has 5,620 GitHub stars. The provided README excerpt does not show the star count or when it was recorded.

  • Highlights:

    • Supports streaming responses, search, link reading, and source citations. Having these features in the interface does not mean every API provides them; the configured service must support the corresponding capabilities.
    • Lets you manage multiple conversations, edit prompts, regenerate responses, and switch between message branches. You can try a different question from the same point in a conversation without starting a new one each time.
    • Renders Markdown, syntax-highlighted code, KaTeX formulas, and Mermaid diagrams, and can import and export conversation history. You don't have to make sense of code, formulas, or diagrams as a wall of plain text.
  • Getting started: Open the online version, enter your API key in the settings, and start chatting through an available API service. You can also download an archive from Releases, extract it, and open index.html without installing or building anything. When opening it locally, however, your browser must support storage for file:// pages, and the API service must allow the corresponding cross-origin requests.

    If you want to modify the interface or build it yourself, first install Node.js 22.12 or later and pnpm, then run:

    git clone https://github.com/deepseek-ai/chat-demo.git
    cd chat-demo
    pnpm install
    pnpm dev
    

    Once the development server starts, open http://localhost:8090. To generate the static site, run pnpm build. The output goes into dist/, which you can deploy to a static web server, or you can open dist/index.html directly.

  • How it compares: Unlike setups that require a self-hosted application backend, chat-demo can run by deploying static files. The README does not compare its features with any named alternatives, so there is no direct comparison to draw here. The tradeoff is that the browser connects directly to the API, so you need to check whether the service supports capabilities such as search and link reading.

  • Data and caveats: API keys and settings are stored in the browser's localStorage, while conversations and original attachments are stored in IndexedDB. Local data is isolated by browser profile and site origin. These are the local storage locations, but when you send messages, upload attachments, or use voice features, the relevant content is still sent to the configured API service.

    Conversation history can be imported or exported as a ZIP file, but an import replaces existing local conversations and attachments once you confirm it and it passes validation, so take care before proceeding. Exports include conversations and locally available original images, but exclude API keys, settings, and original attachments other than images. They should therefore not be treated as a complete backup of all data.

  • Who it's for: Engineers who want to quickly set up a chat interface and can verify API capabilities and where their data goes.

  • Link: chat-demo GitHub

Closing

If you want to avoid maintaining an application backend, chat-demo is worth a try, especially since it already includes conversation branching and rendering features such as Markdown. Before getting started, check which capabilities your API service supports and consider what data you want to send. See you tomorrow, December 4, 2026.

Author

Mark Ku

10 年以上的軟體工程師,做過北美電商與 AI SaaS 訂閱收費系統。Read More

Found this useful?

The author's free tools, daily podcasts and newsletter are all here.

Mark Ku · This article is licensed under CC BY 4.0. Credit the author and link back to the original when reusing it.

Comments

Subscribe to Newsletter

Subscribe to get new posts delivered instantly — never miss a tech share.

By submitting, you agree to receive emails. You can anytime.

Popular Posts

View all
Mark Ku
··633

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution
Mark Ku
··464

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.
Mark Ku
··249

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki
Mark Ku
··205

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1
Mark Ku
··202

Setting Up Samba on Ubuntu to Share Folders with Windows 11

Setting Up Samba on Ubuntu to Share Folders with Windows 11
Mark Ku
··198

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning