Chrome extension for technical reading. Highlight confusing text on a page, click Explain, and FocusFlow streams a short primer in context.
- Node.js >= 18 (see
package.jsonengines.node) - An OpenAI API key (
OPENAI_API_KEY) for/api/primer
- Clone the repo and
cdinto it. - Copy
.env.exampleto.envand setOPENAI_API_KEY. - (Optional) Install packages:
npm install(the backend uses minimal/no dependencies, but this is safe to run). - Start the local backend:
npm run dev(defaults tohttp://localhost:3000). - Load the Chrome extension:
- Open
chrome://extensions, enable Developer mode. - Click Load unpacked and select the
extension/folder.
- Open
- Configure the extension:
- Click the FocusFlow extension icon.
- Set Backend API Base to
http://localhost:3000and click Save API Base.
- Visit a technical article, highlight text, then click Explain.
Follow the steps in Quickstart (Local) above. The key command to start the backend is npm run dev.
npm run smokeThis validates endpoint input/error handling without calling OpenAI.
