AIsaAIsaStudio English 打开 AIsa Studio

DeepSeek 开源无需后端的静态聊天前端 chat-demo

原标题:deepseek-ai/chat-demo: Chat Demo

DeepSeek 开源 TypeScript 静态聊天前端 deepseek-ai/chat-demo,浏览器直连 API、无需后端,创建 2 天获 1595 星。支持流式回复、深度思考、智能搜索、链接阅读、附件、语音输入、Markdown/KaTeX/Mermaid 渲染及中英双语和深浅主题,数据存于 localStorage 与 IndexedDB,可在线试用 https://deepseek-ai.github.io/chat-demo/。

为什么值得看

仓库为纯静态前端、无需后端部署,读者可按 README 快速自建一套接入 DeepSeek API 的本地聊天界面。

阅读原文 ↗

本页的摘要、推荐理由与解读出自 AIsa Studio 的 AI 风向智能体,原文版权归原作者所有。

原文

GitHub 上的新仓库 deepseek-ai/chat-demo,创建 2 天,已有 1595 星(平均每天 685 星)。 Chat Demo 语言:TypeScript

README:

chat-demo

English | 简体中文

A static chat demo powered by the DeepSeek API. No application backend is required: the browser connects directly to the configured API service.

You can try the app online or download the archive from Releases, extract it, and double-click index.html to use it locally without installation or a build. Enter your API key in Settings before your first chat.

Getting started

Install Node.js 22.12+ and pnpm, then run:

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

Open http://localhost:8090.

To build the static site:

pnpm build

The output is written to dist/. Deploy it to a static web server or open dist/index.html directly. Opening the file directly requires browser support for storage on file:// pages and an API service that permits their cross-origin requests.

Features

  • Multiple conversations with automatic titles, renaming, and deletion; edit prompts, regenerate replies, and switch between message branches.
  • Streaming replies, deep thinking, smart search, link reading, and source citations; stop generation or continue eligible replies.
  • Upload, paste, or drag and drop attachments; use voice input and read replies aloud. A live audio spectrum appears in the first row of the input area while recording on mobile.
  • Markdown, syntax highlighting, KaTeX math, and Mermaid diagrams.
  • Simplified Chinese and English, light and dark themes, mobile layouts, location settings, and chat history import and export.

Data and storage

Your API key and settings are stored in the browser's localStorage. Conversations and original attachments are stored in IndexedDB. Local data is isolated by browser profile and site origin. Sending messages, uploading attachments, and using speech features sends the relevant content to the configured API service.

History import and export in Settings use ZIP archives. After confirmation and successful validation, importing replaces all local conversations and attachments. Exports include conversations and locally available original images, but exclude API keys, settings, and original non-image attachments. See the history import/export documentation (Chinese) for the archive format and preservation details.

Settings → Data → Delete all chats clears all local conversations, original attachments, and unsent drafts after confirmation. It stops ongoing replies and returns to a new chat. Your API key and settings are preserved; files already uploaded to the API service are not deleted.

Development

Command Description
pnpm dev Start the development server
pnpm build Build into dist/
pnpm type Run TypeScript type checks
pnpm lint Lint with oxlint
pnpm format Format with oxfmt

rspack.config.ts uses https://api.deepseek.com by default. Use createConfig({ apiOrigin, devServer }) to customize the API origin and development server proxy.

Chat uses deepseek-flash by default through Anthropic-compatible Messages / Files APIs. Speech features use ASR / TTS endpoints. Requests include extensions for search, link reading, titles, and latest_reminder, so the configured service must support the corresponding capabilities. Supported attachment formats are determined by server-side validation.

src/
  app/                 Application layout, themes, and global styles
  components/          Chat, settings, Markdown, and other UI components
  i18n/                English and Chinese translations
  services/
    api/               API requests, SSE, and protocol types
    chat/              Conversations, message branches, storage, and history import/export
    markdown/          Markdown parsing, syntax highlighting, and diagrams
    speech/            Audio recording and read-aloud playback
  utils/               Shared utilities

License

MIT. The build copies the license to dist/LICENSE; include it when distributing the app. Third-party dependencies are subject to their own licenses.

原文版权归 GitHub 爆发仓库 及原作者所有,本站转载仅供阅读。如需删除,请联系 support@aisa.one。

事件综述

DeepSeek 将 App 能力开放至 API 并开源静态聊天前端 chat-demo

2026年11月13日,DeepSeek 宣布将 App 背后的能力开放至 DeepSeek API。据该报道称,开放的能力包括搜索、文件、链接、安全和语音等内置功能,可通过少量参数启用;同时提供 OCR、ASR、TTS 等独立 API,并附带一个支持导入 DeepSeek 对话历史的开源前端演示。次日(11月14日),有报道称 DeepSeek 在 GitHub 开源了 TypeScript 编写的静态聊天前端 deepseek-ai/chat-demo:该前端由浏览器直连 API、无需后端,创建两天获得 1595 星。功能方面支持流式回复、深度思考、智能搜索、链接阅读、附件、语音输入,以及 Markdown、KaTeX、Mermaid 渲染和中英双语、深浅主题,数据存储于 localStorage 与 IndexedDB,并提供了在线试用地址。两篇报道相互印证了 DeepSeek 将 App 能力开放至 API 并配套开源前端演示这一进展,目前未见到关于收费额度、地域限制或功能适用范围的进一步说明。

其他来源的报道 1