Codexplain is a Chrome extension that allows you to select any code on a web page and get a detailed explanation of that code. It uses OpenAI's API to provide the explanations. Simply select the code you want to explain and a popover will appear with the relevant information.
The extension is being reviewed by the Chrome development team and is currently not available for installation.
- Open a web page with code you want to explain
- Select the code you want to explain with the cursor
- A popover with the explanation of the selected code will open
Chrome requires bundling the final output as a zip file. I also love hot module replacement ( live reloads). I configured Vite for the same.
- Run this command to start the dev server. It will keep building the extension as you make changes.
npm run build:watch
- You can update the extension in the chrome extensions manager page by clicking on the 'update' button.
Thank you for considering contributing to Codexplain! If you want to make a contribution, please follow these steps:
- Fork this repository
- Create a branch with your change (git checkout -b my-change)
- Make your changes and commit them (git commit -am "Added a new change")
- Push your changes to your fork (git push origin my-change)
- Open a pull request in this repository and describe your changes.
This project is under the MIT License.