{"id":25791087,"url":"https://github.com/imaun/langshift","last_synced_at":"2025-07-01T05:03:00.260Z","repository":{"id":279131291,"uuid":"936358901","full_name":"imaun/langshift","owner":"imaun","description":"AI LangShift - A lightweight Chrome extension that translates selected text instantly using OpenAI’s ChatGPT ","archived":false,"fork":false,"pushed_at":"2025-03-15T16:39:00.000Z","size":102,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T17:22:42.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/imaun.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-21T00:20:58.000Z","updated_at":"2025-03-15T16:39:04.000Z","dependencies_parsed_at":"2025-02-24T00:26:13.556Z","dependency_job_id":"424d9172-c2c1-4c2b-8728-6be4be329afb","html_url":"https://github.com/imaun/langshift","commit_stats":null,"previous_names":["imaun/langshift"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/imaun/langshift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaun%2Flangshift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaun%2Flangshift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaun%2Flangshift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaun%2Flangshift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imaun","download_url":"https://codeload.github.com/imaun/langshift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imaun%2Flangshift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262900055,"owners_count":23381656,"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":"2025-02-27T12:54:27.538Z","updated_at":"2025-07-01T05:03:00.245Z","avatar_url":"https://github.com/imaun.png","language":"TypeScript","readme":"# AI LangShift\n\nAI LangShift is an open source Chrome extension that instantly translates user-selected text on any webpage using the OpenAI API (GPT-4). With a simple keyboard shortcut, the extension retrieves the selected text, sends it for translation, and replaces it directly on the page.\n\n## Features\n- **Instant Translation:** Translate selected text with a single keyboard shortcut.\n- **Customizable Settings:** Configure your OpenAI API key and preferred target language via the options page.\n- **Wide Compatibility:** Works on standard webpages as well as in input fields and contenteditable elements.\n- **Open Source:** Fully open source and hosted on GitHub, encouraging community contributions.\n\n![Options Page Screenshot](src/icons/option-shot.png)\n\n## Table of Contents\n- [Installation](#installation)\n- [Building \u0026 Development](#building--development)\n- [Testing](#testing)\n- [Usage](#usage)\n- [Contributing](#contributing) \n- [License](#license)\n\n## Installation\nYou can install the extension from Chrome Extension marketplace [AI LangShift Chrome Extension](https://chromewebstore.google.com/detail/ai-langshift/bggfoidglkkhaldgnfcafndandalebmi).\n\n## Building \u0026 Development\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/imaun/langshift.git\n   cd langshift\n   ```\n2. **Install Dependencies:**\n    ```bash\n    npm install\n    ```\n3. **Build the Extension:**\n    ```bash\n    npm run build\n    ```\n    This command compiles the TypeScript files and copies static assets (HTML, CSS, manifest, icons) into the `dist` directory.\n\n- **TypeScript Compilation:**\nThe project is written in TypeScript. To compile the code, run:\n    ```bash\n    npx tsc\n    ```\n\n- **Automatic Build Script:**\nThe build process includes a script that copies all static assets to the dist folder. Run:\n\n    ```bash\n    npm run build\n    ```\n\n- **Development Workflow:**\nMake changes in the `src` folder and re-run the build script to see your updates reflected in the `dist` directory.\n\n## Testing\n1. **Load the Extension Locally:**\n    - Open Chrome/Brave and navigate to `chrome://extensions/`.\n    - Enable **Developer Mode**.\n    - Click \"Load unpacked\" and select the `dist` folder.\n2. **Set your OpenAI API key:**\n    - From the extensions page, click **\"Details\"** on the AI LangShift extension.\n    - Click **\"Extension options\"** to open the settings page where you can enter your API key and choose your target language.\n3. **Verify Functionality:**\n    - Open any webpage.\n    - Select some text.\n    - Press the configured shortcut (default is `Alt+Shift+T`).\n    - The selected text should be replaced with its translated version.\n\n## Usage\n- **Translate Selected Text:** \nSimply select text on a webpage and press the shortcut key to have it translated and replaced.\n- **Configure Settings:**\nOpen the extension’s options page to set your OpenAI API key and target language.\n\n## Contributing\nContributions are welcome! If you have suggestions or improvements, please open an issue or submit a pull request on the GitHub repository.\n\n## License\nThis project is licensed under the [GPLv3 License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimaun%2Flangshift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimaun%2Flangshift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimaun%2Flangshift/lists"}