MCPcopy Index your code
hub / github.com/aircloud/sync-to-github

github.com/aircloud/sync-to-github @v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.0 ↗ · + Follow
38 symbols 72 edges 26 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sync-to-github

English Doc

这是一个 Chrome 插件,可以将你的网页内容同步到 github 仓库中,例如与 ChatGPT 的对话。

preview

安装和使用

releases 中下载最新的 zip 包,解压缩,通过在 设置 - 插件 中,开启开发者模式后,点击 加载已解压的扩展程序,加载对应的文件夹完成安装。

初次使用:

  • 第一次安装,请刷新现有的页面
  • 点击右上角“设置”,设置你的 AccessToken、仓库和目录信息。

当前支持列表:

问题反馈

这是一个新工具,当前需要你的体验和反馈,欢迎来提出你遇到的问题。你可以在 issues 页面反馈你遇到的问题。

在提出问题的时候,建议可以附上比如控制台报错、截图信息、或者被分享到 ShareGPT 的对话地址

新增一个网站

  • 你可以在 issue 中新增一个 issue,记得添加 add-a-website Tag。
  • 如果你是开发者,欢迎你 fork 代码,参考下文"贡献内容",并且通过 Pull Request 的方式合并到本项目中。

贡献内容

你可以很方便地新增一个网站支持。

  1. converters 中参考现有项目,新增一个文件夹,用于实现 BaseConverter
  2. content_script 中引入它,新增一个实例。
  3. manifest.json 中的 content_scripts.matches 中新增相应的正则匹配。

潜在的功能

这是一个刚刚开启的项目,更多的功能仍然需要完善,包括但不限于:

  • 只在通过检测的网站中显示彩色图标
  • 自动发布版本
  • 同步到插件商店

Extension points exported contracts — how you extend this code

ConvertInstructionRequest (Interface)
(no doc)
apps/chrome-ext/src/schema/instruct.ts
ConvertInstructionRespnse (Interface)
(no doc)
apps/chrome-ext/src/schema/instruct.ts
UserConfig (Interface)
(no doc)
apps/chrome-ext/src/schema/reducer.ts
GlobalState (Interface)
(no doc)
apps/chrome-ext/src/schema/reducer.ts
GlobalServiceContextType (Interface)
(no doc)
apps/chrome-ext/src/schema/reducer.ts

Core symbols most depended-on inside this repo

sendMessageToContentScript
called by 2
apps/chrome-ext/src/utils/message.ts
githubCreateFile
called by 2
apps/chrome-ext/src/utils/githubSync.ts
tryConvert
called by 1
apps/chrome-ext/src/content_script.ts
dispatch
called by 1
apps/chrome-ext/src/App.tsx
base64encode
called by 1
apps/chrome-ext/src/utils/githubSync.ts
githubUpdateFile
called by 1
apps/chrome-ext/src/utils/githubSync.ts
getDefaultGlobalState
called by 1
apps/chrome-ext/src/reducer/reducer.ts
convert
called by 1
apps/chrome-ext/src/converters/chatgpt/convert.ts

Shape

Function 20
Interface 7
Method 6
Class 5

Languages

TypeScript100%

Modules by API surface

apps/chrome-ext/src/converters/sharegpt/convert.ts5 symbols
apps/chrome-ext/src/converters/chatgpt/convert.ts5 symbols
apps/chrome-ext/src/biz-comps/SyncPanel/index.tsx4 symbols
apps/chrome-ext/src/utils/githubSync.ts3 symbols
apps/chrome-ext/src/schema/reducer.ts3 symbols
apps/chrome-ext/src/converters/base.ts3 symbols
apps/chrome-ext/src/biz-comps/SettingPanel/index.tsx3 symbols
apps/chrome-ext/src/App.tsx3 symbols
apps/chrome-ext/src/schema/instruct.ts2 symbols
apps/chrome-ext/src/reducer/reducer.ts2 symbols
apps/chrome-ext/src/comps/SimpleToast/index.tsx2 symbols
apps/chrome-ext/src/utils/message.ts1 symbols

For agents

$ claude mcp add sync-to-github \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact