{"id":16587619,"url":"https://github.com/optixal/chatgpt-http-service","last_synced_at":"2025-10-23T19:38:53.833Z","repository":{"id":106326380,"uuid":"584334921","full_name":"Optixal/ChatGPT-HTTP-Service","owner":"Optixal","description":"Simple Express server to interface with ChatGPT","archived":false,"fork":false,"pushed_at":"2023-03-15T19:37:09.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T03:59:00.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optixal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-02T09:15:06.000Z","updated_at":"2023-01-02T09:16:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"82c9289c-a4ea-4700-a54f-6f83c183823c","html_url":"https://github.com/Optixal/ChatGPT-HTTP-Service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2FChatGPT-HTTP-Service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2FChatGPT-HTTP-Service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2FChatGPT-HTTP-Service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optixal%2FChatGPT-HTTP-Service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optixal","download_url":"https://codeload.github.com/Optixal/ChatGPT-HTTP-Service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242180309,"owners_count":20085138,"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":[],"created_at":"2024-10-11T22:54:39.310Z","updated_at":"2025-10-14T01:39:24.801Z","avatar_url":"https://github.com/Optixal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT HTTP Web Service\n\nSimple Express server to interface with ChatGPT. Uses [chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api) in the background.\n\n## Set Up\n\n1. Install npm packages: `npm install`\n2. Copy `.env.example` to `.env`\n3. Enter OpenAI credentials into `.env` (please look through the main `index.js` source file first to understand how the credentials are being used)\n\n## Running\n\nIn the background, [chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api) is being used to interact with ChatGPT, which uses `puppeteer` to spawn a browser window. Meaning, a non-headless server that can display a browser window is required to run this.\n\n1. Run with `node index.js`\n2. Browser window opens, solve the reCAPTCHA\n3. Done. Server is serving on `localhost:3000`. Endpoints:\n    * `POST /api/chat`, accepts JSON data containing message to send to ChatGPT: `{\"message\": \"Hello world\"}`. Subsequent requests are followed-up by default.\n    * `GET /api/reinit` to reauthenticate with OpenAI.\n    * `GET /api/reset` to start a new conversation.\n\n## Issues\n\nIf `puppeteer` throws an error stating it can't find `chrome.exe` or whichever equivalent binary for your system, you might need to edit `node_modules/chatgpt/build/index.js`, around line 1060. Search for the path and point it accordingly to where your Chrome is located at.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptixal%2Fchatgpt-http-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptixal%2Fchatgpt-http-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptixal%2Fchatgpt-http-service/lists"}