[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71327":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},71327,"chatgpt-demo","anse-app\u002Fchatgpt-demo","anse-app","Minimal web UI for ChatGPT. ","https:\u002F\u002Fchatgpt.ddiu.me",null,"TypeScript",7957,3593,51,45,0,41,"MIT License",false,"main",true,[23,24,25,26,27,28,29,30],"astro","chatgpt","chatgpt4","gpt-3","gpt-35","gpt-35-turbo","openai","openai-api","2026-06-12 02:02:50","# ChatGPT-API Demo\n\nEnglish | [简体中文](.\u002FREADME.zh-CN.md)\n\nA demo repo based on [OpenAI GPT-3.5 Turbo API.](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Fchat)\n\n**🍿 Live preview**: https:\u002F\u002Fchatgpt.ddiu.me\n\n> ⚠️ Notice: Our API Key limit has been exhausted. So the demo site is not available now.\n\n![chat-logo](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002Fchat-logo.webp)\n\n## Introducing `Anse`\n\nLooking for multi-chat, image-generation, and more powerful features? Take a look at our newly launched [Anse](https:\u002F\u002Fgithub.com\u002Fanse-app\u002Fanse).\n\nMore info on https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Fdiscussions\u002F247.\n\n[![image](https:\u002F\u002Fuser-images.githubusercontent.com\u002F1998168\u002F235048408-ca4015f5-4d3c-4c64-9a6c-9069a89cd23a.png)](https:\u002F\u002Fgithub.com\u002Fanse-app\u002Fanse)\n\n## Running Locally\n\n### Pre environment\n1. **Node**: Check that both your development environment and deployment environment are using `Node v18` or later. You can use [nvm](https:\u002F\u002Fgithub.com\u002Fnvm-sh\u002Fnvm) to manage multiple `node` versions locally.\n   ```bash\n    node -v\n   ```\n2. **PNPM**: We recommend using [pnpm](https:\u002F\u002Fpnpm.io\u002F) to manage dependencies. If you have never installed pnpm, you can install it with the following command:\n   ```bash\n    npm i -g pnpm\n   ```\n3. **OPENAI_API_KEY**: Before running this application, you need to obtain the API key from OpenAI. You can register the API key at [https:\u002F\u002Fbeta.openai.com\u002Fsignup](https:\u002F\u002Fbeta.openai.com\u002Fsignup).\n\n### Getting Started\n\n1. Install dependencies\n   ```bash\n    pnpm install\n   ```\n2. Copy the `.env.example` file, then rename it to `.env`, and add your [OpenAI API key](https:\u002F\u002Fplatform.openai.com\u002Faccount\u002Fapi-keys) to the `.env` file.\n   ```bash\n    OPENAI_API_KEY=sk-xxx...\n   ```\n3. Run the application, the local project runs on `http:\u002F\u002Flocalhost:3000\u002F`\n   ```bash\n    pnpm run dev\n   ```\n\n## Deploy\n\n### Deploy With Vercel\n\n[![Deploy with Vercel](https:\u002F\u002Fvercel.com\u002Fbutton)](https:\u002F\u002Fvercel.com\u002Fnew\u002Fclone?repository-url=https%3A%2F%2Fgithub.com%2Fddiu8081%2Fchatgpt-demo&env=OPENAI_API_KEY&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys)\n\n\n\n> #### 🔒 Need website password?\n>\n> Deploy with the [`SITE_PASSWORD`](#environment-variables)\n>\n> \u003Ca href=\"https:\u002F\u002Fvercel.com\u002Fnew\u002Fclone?repository-url=https%3A%2F%2Fgithub.com%2Fddiu8081%2Fchatgpt-demo&env=OPENAI_API_KEY&env=SITE_PASSWORD&envDescription=OpenAI%20API%20Key&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys\" alt=\"Deploy with Vercel\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fvercel.com\u002Fbutton\" alt=\"Deploy with Vercel\" height=24 style=\"vertical-align: middle; margin-right: 4px;\">\u003C\u002Fa>\n\n![image](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230310\u002Fimage.4wzfb79qt7k0.webp)\n\n\n### Deploy With Netlify\n\n[![Deploy with Netlify](https:\u002F\u002Fwww.netlify.com\u002Fimg\u002Fdeploy\u002Fbutton.svg)](https:\u002F\u002Fapp.netlify.com\u002Fstart\u002Fdeploy?repository=https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo#OPENAI_API_KEY=&HTTPS_PROXY=&OPENAI_API_BASE_URL=&HEAD_SCRIPTS=&PUBLIC_SECRET_KEY=&OPENAI_API_MODEL=&SITE_PASSWORD=)\n\n**Step-by-step deployment tutorial:**\n\n1. [Fork](https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Ffork) this project, Go to [https:\u002F\u002Fapp.netlify.com\u002Fstart](https:\u002F\u002Fapp.netlify.com\u002Fstart) new Site, select the project you `forked` done, and connect it with your `GitHub` account.\n\n![image](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230310\u002Fimage.3nlt4hgzb16o.webp)\n\n![image](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230310\u002Fimage.5fhfouap270g.webp)\n\n\n2. Select the branch you want to deploy, then configure environment variables in the project settings.\n\n![image](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230311\u002Fimage.gfs9lx8c854.webp)\n\n3. Select the default build command and output directory, Click the `Deploy Site` button to start deploying the site.\n\n![image](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230311\u002Fimage.4jky9e1wbojk.webp)\n\n\n### Deploy with Docker\n\nEnvironment variables refer to the documentation below. [Docker Hub address](https:\u002F\u002Fhub.docker.com\u002Fr\u002Fddiu8081\u002Fchatgpt-demo).\n\n**Direct run**\n```bash\ndocker run --name=chatgpt-demo -e OPENAI_API_KEY=YOUR_OPEN_API_KEY -p 3000:3000 -d ddiu8081\u002Fchatgpt-demo:latest\n```\n`-e` define environment variables in the container.\n\n\n**Docker compose**\n```yml\nversion: '3'\n\nservices:\n  chatgpt-demo:\n    image: ddiu8081\u002Fchatgpt-demo:latest\n    container_name: chatgpt-demo\n    restart: always\n    ports:\n      - '3000:3000'\n    environment:\n      - OPENAI_API_KEY=YOUR_OPEN_API_KEY\n      # - HTTPS_PROXY=YOUR_HTTPS_PROXY\n      # - OPENAI_API_BASE_URL=YOUR_OPENAI_API_BASE_URL\n      # - HEAD_SCRIPTS=YOUR_HEAD_SCRIPTS\n      # - PUBLIC_SECRET_KEY=YOUR_SECRET_KEY\n      # - SITE_PASSWORD=YOUR_SITE_PASSWORD\n      # - OPENAI_API_MODEL=YOUR_OPENAI_API_MODEL\n```\n\n```bash\n# start\ndocker compose up -d\n# down\ndocker-compose down\n```\n\n### Deploy with Sealos\n\n 1.Register a Sealos account for free [sealos cloud](https:\u002F\u002Fcloud.sealos.io)\n\n2.Click  `App Launchpad` button\n\n![App Launchpad](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230609\u002Finstall-on-sealos-1.34i8gi80j268.webp)\n\n3.Click `Create Application` button\n\n![Create Application](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230609\u002Finstall-on-sealos-2.4t8q5px18eps.webp)\n\n4.Just fill in according to the following figure, and click on it after filling out `Deploy Application` button\n\n![Create Application](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230609\u002Finstall-on-sealos-3.5x5exqk0o8lc.webp)\n\n```shell\nApp Name: chatgpt-demo\nImage Name: ddiu8081\u002Fchatgpt-demo:latest\nCPU: 0.5Core\nMemory: 1G\nContainer Ports: 3000\nAccessible to the Public: On\nEnvironment: OPENAI_API_KEY=YOUR_OPEN_API_KEY\n```\n\n5.Obtain the access link and click directly to access it. If you need to bind your own domain name, you can also fill in your own domain name in `Custom domain` and follow the prompts to configure the domain name CNAME\n\n![Create Application](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230609\u002Finstall-on-sealos-4.4esqkqu70z9c.webp)\n\n6.Wait for one to two minutes and open this link\n\n![Open Link](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230609\u002Finstall-on-sealos-5.5cgfpee3zeyo.webp)\n\n### Deploy on more servers\n\nPlease refer to the official deployment documentation: https:\u002F\u002Fdocs.astro.build\u002Fen\u002Fguides\u002Fdeploy\n\n## Environment Variables\n\nYou can control the website through environment variables.\n\n| Name | Description | Default |\n| --- | --- | --- |\n| `OPENAI_API_KEY` | Your API Key for OpenAI. | `null` |\n| `HTTPS_PROXY` | Provide proxy for OpenAI API. e.g. `http:\u002F\u002F127.0.0.1:7890` | `null` |\n| `OPENAI_API_BASE_URL` | Custom base url for OpenAI API. | `https:\u002F\u002Fapi.openai.com` |\n| `HEAD_SCRIPTS` | Inject analytics or other scripts before `\u003C\u002Fhead>` of the page | `null` |\n| `PUBLIC_SECRET_KEY` | Secret string for the project. Use for generating signatures for API calls | `null` |\n| `SITE_PASSWORD` | Set password for site, support multiple password separated by comma. If not set, site will be public | `null` |\n| `OPENAI_API_MODEL` | ID of the model to use. [List models](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fapi-reference\u002Fmodels\u002Flist) | `gpt-3.5-turbo` |\n\n## Enable Automatic Updates\n\nAfter forking the project, you need to manually enable Workflows and Upstream Sync Action on the Actions page of the forked project. Once enabled, automatic updates will be scheduled every day:\n\n![](https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fyzh990918\u002Fstatic@master\u002F20230518\u002Fimage.2hhnrsrd2t1c.webp)\n\n\n## Frequently Asked Questions\n\nQ: TypeError: fetch failed (can't connect to OpenAI Api)\n\nA: Configure environment variables `HTTPS_PROXY`，reference: https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Fissues\u002F34\n\nQ: throw new TypeError(${context} is not a ReadableStream.)\n\nA: The Node version needs to be `v18` or later, reference: https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Fissues\u002F65\n\nQ: Accelerate domestic access without the need for proxy deployment tutorial?\n\nA: You can refer to this tutorial: https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Fdiscussions\u002F270\n\n## Contributing\n\nThis project exists thanks to all those who contributed.\n\nThank you to all our supporters!🙏\n\n[![img](https:\u002F\u002Fcontributors.nn.ci\u002Fapi?repo=ddiu8081\u002Fchatgpt-demo)](https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Fgraphs\u002Fcontributors)\n\n## License\n\nMIT © [ddiu8081](https:\u002F\u002Fgithub.com\u002Fddiu8081\u002Fchatgpt-demo\u002Fblob\u002Fmain\u002FLICENSE)\n","anse-app\u002Fchatgpt-demo 是一个基于 OpenAI GPT-3.5 Turbo API 的极简网页界面。该项目使用 TypeScript 编写，提供了简洁的用户界面来与 ChatGPT 进行交互。其核心功能包括通过 API 调用实现文本生成，并支持本地部署和云端部署（如 Vercel 和 Netlify）。适合需要快速搭建自定义聊天机器人界面或进行相关技术研究的开发者使用。项目采用 MIT 许可证开源，拥有活跃的社区支持。",2,"2026-06-11 03:37:11","high_star"]