explaingit

nextai-translator/bob-plugin-openai-translator

5,650TypeScriptAudience · generalComplexity · 2/5Setup · easy

TLDR

A macOS Bob app plugin that routes translations, writing polish, and grammar fixes through OpenAI, so you can highlight text anywhere on your Mac and get an AI-powered result without switching apps.

Mindmap

mindmap
  root((bob openai plugin))
    What it does
      AI translation
      Writing polish
      Grammar correction
    Setup
      Bob app required
      OpenAI API key
      Plugin file install
    Features
      Any language
      PopClip integration
      Grammarly replacement
    Audience
      Mac users
      Multilingual writers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Translate highlighted text from any Mac app into another language using OpenAI without copying to a browser

USE CASE 2

Polish and rewrite a sentence for clarity by setting source and target language to the same language

USE CASE 3

Correct grammar in any language directly from selected text using the PopClip integration for a one-click trigger

Tech stack

TypeScriptOpenAI API

Getting it running

Difficulty · easy Time to first run · 30min

Requires Bob version 0.50 or higher on macOS and a paid OpenAI API key.

No license information was mentioned in the explanation.

In plain English

This is a plugin for Bob, a macOS application used for text translation and OCR. The plugin connects Bob to OpenAI's language models so that translations and text improvements go through AI rather than a traditional translation service. It supports three main functions: translating text between languages, polishing writing to make it more natural, and correcting grammar. The polishing feature works by setting the target language to the same as the source language. When you highlight a sentence and trigger the plugin, it rewrites the text for clarity and style rather than translating it. The README describes this as a replacement for grammar tools like Grammarly, and notes it works for any language, not just English. A separate companion plugin focused only on polishing with more advanced rewriting options is also mentioned. Setup requires installing Bob version 0.50 or higher on a Mac, then downloading the plugin file, and finally adding an API key from OpenAI. The key goes into the plugin's settings within Bob. The README also mentions an optional integration with a Mac tool called PopClip, which lets a small icon appear near selected text so you can trigger translation without switching windows. The README is written primarily in Chinese, with a link to an English version of the documentation. A related browser extension for non-Mac users that performs similar translation is also mentioned separately. The project is open source and accepts contributions through a guide in the repository.

Copy-paste prompts

Prompt 1
I installed the Bob OpenAI translator plugin on my Mac. How do I configure it with my OpenAI API key and set a default target language?
Prompt 2
Show me how to use the bob-plugin-openai-translator to polish my English writing instead of translating it, what settings do I need?
Prompt 3
How do I integrate the Bob OpenAI translator plugin with PopClip so I can translate or polish text with a single click from any app?
Prompt 4
I want to use this plugin to translate Japanese text in my browser to English. Walk me through the setup steps from installing Bob to doing my first translation.
Open on GitHub → Explain another repo

← nextai-translator on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.