{"id":17229964,"url":"https://github.com/laike9m/logseq-chatgpt","last_synced_at":"2025-04-14T02:31:50.327Z","repository":{"id":149399283,"uuid":"582568131","full_name":"laike9m/logseq-chatgpt","owner":"laike9m","description":"Talk to ChatGPT directly from Logseq","archived":false,"fork":false,"pushed_at":"2023-06-12T05:18:28.000Z","size":184,"stargazers_count":37,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T10:31:06.916Z","etag":null,"topics":["chatgpt","logseq","logseq-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laike9m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-27T08:29:13.000Z","updated_at":"2025-01-05T11:56:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e3f9156-5421-4199-b9cd-0f251695fda3","html_url":"https://github.com/laike9m/logseq-chatgpt","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":0.5,"last_synced_commit":"5546f252e8d378b8ac138db3a8ba2b72235918ba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":"sawhney17/logseq-plugin-starter-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laike9m%2Flogseq-chatgpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laike9m%2Flogseq-chatgpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laike9m%2Flogseq-chatgpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laike9m%2Flogseq-chatgpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laike9m","download_url":"https://codeload.github.com/laike9m/logseq-chatgpt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810884,"owners_count":21165195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","logseq","logseq-plugin"],"created_at":"2024-10-15T04:52:02.318Z","updated_at":"2025-04-14T02:31:50.303Z","avatar_url":"https://github.com/laike9m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**UPDATE: Project not maintained. Please use [logseq-plugin-gpt3-openai](https://github.com/briansunter/logseq-plugin-gpt3-openai)**\n\n**DISCLAIMER: The code needs some serious testing and polishing, and it's far from feature complete. All feedbacks welcome.** I'll submit it to the marketplace once it becomes more mature.\n\n# logseq-chatgpt\n\nlogseq-chatgpt is a [Logseq](https://github.com/logseq/logseq) plugin that lets you interact with [ChatGPT](https://chat.openai.com/chat) directly from Logseq, similar to the [Logseq GPT3 plugin](https://github.com/briansunter/logseq-plugin-gpt3-openai).\n\n## Usage\n\nIn Logseq, enable developer mode in `Settings \u003e Advanced`. [Download](https://github.com/laike9m/logseq-chatgpt/archive/refs/heads/main.zip) the repo, unzip it, and load the plugin manually by choosing the \"logseq-chatgpt\" folder.\n\n![](https://user-images.githubusercontent.com/2592205/209804322-9346d64a-da20-44e1-856d-4dee0725c377.png)\n\nIn Logseq, type `/` to find and run the `chatgpt-reply` command, then wait for the response from ChatGPT to show up. Here's a demo:\n\n![](https://user-images.githubusercontent.com/2592205/209801153-f0b1f1bc-f211-45f6-a50c-028aab4b65d3.gif)\n\nThe plugin only works for Chrome (probably other Chromium-based browsers as well) at the moment.\n\n## Setup\n\nTo use this plugin, some setup is needed, but I assure you it's very simple:\n\n* Close Chrome, and launch it with a command line argument `--remote-debugging-port=9222`\n  It's recommended to create a shortcut to always run Chrome with this option, see the [guidance](https://stackoverflow.com/a/58457229/2142577), but you can also do it manually:\n\n  * Windows \n    ```\n    /path/to/chrome.exe --remote-debugging-port=9222\n    ```\n\n  * Mac\n    ```\n    /Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --remote-debugging-port=9222\n    ```\n\n  * Linux\n    ```\n    chrome --remote-debugging-port=9222\n    ```\n\n- Login to ChatGPT and keep tab open  \n  https://chat.openai.com/chat\n  \n  Make sure you're logged in while using this plugin (refresh the page if the session expires).\n  \n\n## How it works\n\nAs I'm writing this, there's no official API for ChatGPT. Though there are some reverse-engineered APIs out there, there's no guarantee that they'll always work reliably, as I've seen OpenAI trying very hard to kill some of these efforts.\n\nTherefore, logseq-chatgpt takes a different yet more straightforward approach: it assumes users have already logged into ChatGPT, so it only needs to automate the process of entering inputs, and fetching responses. I use [puppeteer-web](https://github.com/entrptaher/puppeteer-web) to do it, the communication is done via the [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/), and that's we need to run Chrome with `--remote-debugging-port`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaike9m%2Flogseq-chatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaike9m%2Flogseq-chatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaike9m%2Flogseq-chatgpt/lists"}