MCPcopy Index your code
hub / github.com/Orenoid/BabelDuck

github.com/Orenoid/BabelDuck @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
461 symbols 839 edges 57 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

English | 简体中文

BabelDuck Logo BabelDuck

Web 版

BabelDuck Grammar Check

📖 介绍

BabelDuck 是一个面向各水平层次语言学习者的高度可定制化 AI 口语对话练习应用,并对初学者更友好,旨在将口语表达练习的门槛与心智负担降至最低。

✨ 主要功能

  • 支持多对话管理、自定义系统提示词、流式响应等常见 AI 对话功能
  • 可在不影响当前对话的前提下,向 AI 寻求语法、翻译或表达润色等建议,并提供可定制化的快捷指令
  • 在对 AI 提供的建议有疑问时,可开启子对话进一步讨论,讨论结束后可无缝返回原对话
  • 支持语音输入与语音输出,集成了浏览器内置文本转语音 以及 Azure TTS
  • 集成多种 LLM AI 服务,支持自定义第三方 API 服务,可无缝切换
  • 数据存储于本地,确保用户数据隐私安全
  • 支持针对不同对话进行单独的偏好设置
  • 提供多语言界面
  • 内置使用教程

🛠 部署

  1. 安装 Docker
  2. 克隆仓库到本地
git clone https://github.com/Orenoid/BabelDuck
  1. .env.example 文件重命名为 .env,并填入相关配置
  2. 运行 Docker 容器
docker run -d --name babel-duck --env-file .env -p 9000:9000 orenoid/babel-duck:latest
  1. 访问 http://localhost:9000 查看效果

📄 许可证

本项目采用 LICENSE,详情请参阅 LICENSE 文件。

💬 问题反馈

WeChat Group QR Code

Extension points exported contracts — how you extend this code

ChatIntelligence (Interface)
(no doc) [6 implementers]
src/app/intelligence-llm/lib/intelligence.ts
ButtonProps (Interface)
(no doc)
src/components/ui/button.tsx
OpenAILikeMessage (Interface)
(no doc) [4 implementers]
src/app/chat/lib/message.tsx
TTSService (Interface)
(no doc) [4 implementers]
src/app/chat/lib/tts-service.ts
LLMSettingsProps (Interface)
(no doc)
src/app/intelligence-llm/components/llm-service.tsx
TokenInfo (Interface)
(no doc)
src/app/chat/lib/tts-token-manager.ts

Core symbols most depended-on inside this repo

serialize
called by 20
src/app/chat/components/message.tsx
cn
called by 16
src/lib/utils.ts
toOpenAIMessage
called by 14
src/app/chat/lib/message.tsx
deserialize
called by 13
src/app/chat/components/message.tsx
updateSettings
called by 11
src/app/settings/components/settings.tsx
registerHandler
called by 8
src/app/chat/components/input-handlers.tsx
isOpenAILikeMessage
called by 8
src/app/chat/lib/message.tsx
loadGlobalChatSettings
called by 8
src/app/settings/lib/settings.ts

Shape

Function 192
Method 177
Class 78
Interface 12
Enum 2

Languages

TypeScript100%

Modules by API surface

src/app/chat/components/message.tsx81 symbols
src/app/chat/components/input-handlers.tsx62 symbols
src/app/intelligence-llm/lib/intelligence.ts56 symbols
src/app/chat/components/tutorial-message.tsx32 symbols
src/app/intelligence-llm/lib/llm-service.ts29 symbols
src/app/settings/components/settings.tsx27 symbols
src/app/chat/components/input.tsx26 symbols
src/app/chat/components/tutorial-input-handlers.tsx16 symbols
src/app/chat/lib/tts-service.ts15 symbols
src/app/chat/lib/chat.ts15 symbols
src/app/intelligence-llm/components/llm-service.tsx9 symbols
src/app/page.tsx8 symbols

For agents

$ claude mcp add BabelDuck \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact