[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112802":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},112802,"chat-demo","deepseek-ai\u002Fchat-demo","deepseek-ai","Chat Demo","https:\u002F\u002Fdeepseek-ai.github.io\u002Fchat-demo\u002F",null,"TypeScript",5372,1279,19,1,0,64,862,358,115.3,"MIT License",false,"main",true,[],"2026-11-23 10:14:13","2026-11-23 20:41:57","# chat-demo\n\nEnglish | [简体中文](README.zh-CN.md)\n\nA static chat demo powered by the DeepSeek API. No application backend is required: the browser connects directly to the configured API service.\n\nYou can [try the app online](https:\u002F\u002Fdeepseek-ai.github.io\u002Fchat-demo\u002F) or download the archive from [Releases](https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002Fdeepseek-chat-demo\u002Freleases), 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.\n\n## Getting started\n\nInstall Node.js 22.12+ and pnpm, then run:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fdeepseek-ai\u002Fchat-demo.git\ncd chat-demo\npnpm install\npnpm dev\n```\n\nOpen http:\u002F\u002Flocalhost:8090.\n\nTo build the static site:\n\n```sh\npnpm build\n```\n\nThe output is written to `dist\u002F`. Deploy it to a static web server or open `dist\u002Findex.html` directly. Opening the file directly requires browser support for storage on `file:\u002F\u002F` pages and an API service that permits their cross-origin requests.\n\n## Features\n\n- Multiple conversations with automatic titles, renaming, and deletion; edit prompts, regenerate replies, and switch between message branches.\n- Streaming replies, deep thinking, smart search, link reading, and source citations; stop generation or continue eligible replies.\n- 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.\n- Markdown, syntax highlighting, KaTeX math, and Mermaid diagrams.\n- Simplified Chinese and English, light and dark themes, mobile layouts, location settings, and chat history import and export.\n\n## Data and storage\n\nYour 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.\n\nHistory 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\u002Fexport documentation (Chinese)](src\u002Fservices\u002Fchat\u002Fhistory\u002FREADME.md) for the archive format and preservation details.\n\nSettings → 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.\n\n## Development\n\n| Command       | Description                  |\n| ------------- | ---------------------------- |\n| `pnpm dev`    | Start the development server |\n| `pnpm build`  | Build into `dist\u002F`           |\n| `pnpm type`   | Run TypeScript type checks   |\n| `pnpm lint`   | Lint with oxlint             |\n| `pnpm format` | Format with oxfmt            |\n\n[rspack.config.ts](rspack.config.ts) uses `https:\u002F\u002Fapi.deepseek.com` by default. Use `createConfig({ apiOrigin, devServer })` to customize the API origin and development server proxy.\n\nChat uses `deepseek-flash` by default through Anthropic-compatible Messages \u002F Files APIs. Speech features use ASR \u002F 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.\n\n```text\nsrc\u002F\n  app\u002F                 Application layout, themes, and global styles\n  components\u002F          Chat, settings, Markdown, and other UI components\n  i18n\u002F                English and Chinese translations\n  services\u002F\n    api\u002F               API requests, SSE, and protocol types\n    chat\u002F              Conversations, message branches, storage, and history import\u002Fexport\n    markdown\u002F          Markdown parsing, syntax highlighting, and diagrams\n    speech\u002F            Audio recording and read-aloud playback\n  utils\u002F               Shared utilities\n```\n\n## License\n\n[MIT](LICENSE). The build copies the license to `dist\u002FLICENSE`; include it when distributing the app. Third-party dependencies are subject to their own licenses.\n","这是一个基于 DeepSeek API 的纯前端聊天演示应用，无需后端服务即可在浏览器中直接运行。核心功能包括多会话管理、流式响应、附件上传（图片\u002F文档）、语音输入与朗读、Markdown\u002FKaTeX\u002FMermaid 渲染、双语言（中英文）及深浅主题支持。技术上采用 TypeScript 构建，数据本地存储于 localStorage 和 IndexedDB，完全静态部署，支持离线打开 index.html 使用。适用于希望快速体验 DeepSeek 大模型能力、进行轻量级对话测试或集成验证的开发者与终端用户。",2,"2026-11-24 04:44:11","CREATED_QUERY"]