Skip to content

ivanon/llmchat2knowledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llmchat2knowledge

llmchat2knowledge (LLM chat → knowledge) is a Chrome extension (Manifest V3) that turns conversations from mainstream LLM chat web apps into structured Markdown articles. You select the turns you care about, call your own OpenAI-compatible Chat Completions API, then copy, download, or save to a local folder (e.g. an Obsidian vault) via the File System Access API.

Scope today: only Kimi (kimi.com / kimi.moonshot.cn) is implemented. Other sites will follow behind the same adapter pattern.

简体中文: README.zh-CN.md


Vision

The goal is broad support for popular chat UIs (DeepSeek, ChatGPT, Claude, Gemini, Perplexity, etc.), not a single vendor. Each site gets a small DOM adapter; shared logic handles prompting, API calls, Markdown output, and publishing.


Features (current)

  • Shadow DOM sidebar: question list, generated article, copy / download / publish
  • Service worker proxies API calls to avoid CORS
  • Options page: API URL, key, model; editable prompt template; publish folder (handle in IndexedDB)
  • Refreshes the list when you switch chats; scroll-to-message is tuned for Kimi’s main scroll layout

Design and implementation notes:


Roadmap

Planned work (not shipped yet):

  • DeepSeek web chat adapter (extract threads, same sidebar flow)
  • ChatGPT (chatgpt.com) adapter
  • Claude (claude.ai) adapter
  • Encrypted storage for user-supplied API keys (today keys live in chrome.storage.local as plaintext, which is the usual extension trade-off; we intend to add an encryption layer suitable for local-only use)

Development

cd chrome-extension
npm install
npm test
npm run build

Load the folder chrome-extension/dist via Load unpacked on chrome://extensions (Developer mode on). After edits, run npm run build again and Reload the extension.


Permissions

The manifest includes <all_urls> so arbitrary HTTPS API hosts work. You may narrow host_permissions in manifest.json if you only use specific providers.


License

This project is licensed under the MIT License — see LICENSE.

About

llmchat2knowledge (LLM chat → knowledge) is a Chrome extension (Manifest V3) that turns conversations from mainstream LLM chat web apps into structured Markdown articles. llmchat2knowledge(含义:LLM chat → knowledge,大模型对话转知识)是一款 Chrome 扩展(Manifest V3),目标是把主流大模型网页对话整理成结构化 Markdown 文章

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors