{"id":13644906,"url":"https://github.com/lancemoe/openai-translator","last_synced_at":"2025-04-21T10:34:43.011Z","repository":{"id":106710586,"uuid":"609195032","full_name":"LanceMoe/openai-translator","owner":"LanceMoe","description":"A translator built using OpanAI.","archived":false,"fork":false,"pushed_at":"2025-01-28T06:06:36.000Z","size":950,"stargazers_count":403,"open_issues_count":8,"forks_count":60,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-16T05:59:59.859Z","etag":null,"topics":["chatgpt","daisyui","openai","pwa","react","tailwindcss","translator","translator-app","vite"],"latest_commit_sha":null,"homepage":"https://translator.lance.moe","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LanceMoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"LanceMoe","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.lance.moe/"]}},"created_at":"2023-03-03T15:19:54.000Z","updated_at":"2025-03-27T01:12:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"e28759ff-0995-4856-8906-5bdc8ea87cc1","html_url":"https://github.com/LanceMoe/openai-translator","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/LanceMoe%2Fopenai-translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceMoe%2Fopenai-translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceMoe%2Fopenai-translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LanceMoe%2Fopenai-translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LanceMoe","download_url":"https://codeload.github.com/LanceMoe/openai-translator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040929,"owners_count":21365181,"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","daisyui","openai","pwa","react","tailwindcss","translator","translator-app","vite"],"created_at":"2024-08-02T01:02:18.890Z","updated_at":"2025-04-21T10:34:37.993Z","avatar_url":"https://github.com/LanceMoe.png","language":"TypeScript","funding_links":["https://github.com/sponsors/LanceMoe","https://www.lance.moe/"],"categories":["NLP"],"sub_categories":[],"readme":"![Cloudflare](https://img.shields.io/badge/Cloudflare-F38020?style=for-the-badge\u0026logo=Cloudflare\u0026logoColor=white)\n![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)\n![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge\u0026logo=react\u0026logoColor=%2361DAFB)\n![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge\u0026logo=vite\u0026logoColor=white)\n![TailwindCSS](https://img.shields.io/badge/tailwindcss-%2338B2AC.svg?style=for-the-badge\u0026logo=tailwind-css\u0026logoColor=white)\n![React Router](https://img.shields.io/badge/React_Router-CA4245?style=for-the-badge\u0026logo=react-router\u0026logoColor=white)\n![React Query](https://img.shields.io/badge/-React%20Query-FF4154?style=for-the-badge\u0026logo=react%20query\u0026logoColor=white)\n\n# OpenAI Translator\n\nA translator app that uses OpenAI GPT-3 to translate between languages. It is a PWA that can be installed on your phone or desktop.\n\nhttps://translator.lance.moe/\n\nSupport models:\n\n- GPT-3.5 Turbo (ChatGPT engine)\n- GPT-4\n- GPT-4 Turbo\n- GPT-4o\n\n\u003cimg width=\"970\" alt=\"image\" src=\"https://user-images.githubusercontent.com/18505474/222828200-948eef23-bf59-43af-ac27-1484c2bcd406.png\"\u003e\n\n\u003cimg width=\"1336\" alt=\"image\" src=\"https://user-images.githubusercontent.com/18505474/222924658-012a1089-11f1-474a-99c1-c799aa73d793.png\"\u003e\n\n## Tech Stack\n\n- OpenAI API\n- React 18\n- Vite 4\n- Tailwind CSS 3\n- DaisyUI 2\n- Axios\n- React Router 6\n- React Query 4\n- PWA\n- Cloudflare Pages\n\nI think this project will help you learn these techniques.\n\nIf you like this project, please don't forget to give this project a star, thanks.\n\n## Local Development\n\n### 1. Install pnpm\n\nMake sure that pnpm is installed on your computer. If it's not already installed, you can install it:\n\nhttps://pnpm.io/installation\n\n### 2. Download project dependencies\n\nNavigate to the root directory of your project and run the following command to download project dependencies:\n\n```bash\npnpm install\n```\n\n### 3. Start the local server\n\nRun the following command to start the local development server:\n\n```bash\npnpm dev\n```\n\n### 4. Open the application\n\nVite should automatically open your browser.\n\n## Build the Project\n\n### Docker Build\n\n#### 1. Run docker build\n\nNavigate to the root directory of your project in your command line interface and run the following command to build the Docker image:\n\n```bash\ndocker build -t openai-translator-web .\n```\n\nHere, `openai-translator-web` is the name you want to give to the image, and the `.` at the end indicates the current directory.\n\n#### 2. Start the Container\n\nRun the following command to start the container and map the port to your local machine:\n\n```bash\ndocker run -p 3000:80 openai-translator-web\n```\n\nHere, 3000 represents the local port you want to map to the container's 80 port. You can change this to any other port you prefer.\n\n#### 3. Open the Application\n\nIn your browser, enter the following URL to access the application:\n\nhttp://localhost:3000/\n\n### Local Build\n\n#### 1. Install pnpm\n\nMake sure that pnpm is installed on your computer. If it's not already installed, you can install it:\n\nhttps://pnpm.io/installation\n\n#### 2. Download project dependencies\n\nNavigate to the root directory of your project and run the following command to download project dependencies:\n\n```bash\npnpm install\n```\n\n#### 3. Build\n\nRun the following command to build your project:\n\n```bash\npnpm build\n```\n\nThe compiled files will be placed in the `dist` folder.\n\n#### 4. Deploy\n\nNow you can treat the files in the `dist` folder as a static website and deploy it on the server.\n\n## Credit\n\n- Inspired by https://github.com/yetone/bob-plugin-openai-translator\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancemoe%2Fopenai-translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancemoe%2Fopenai-translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancemoe%2Fopenai-translator/lists"}