A Chrome extension that simplifies French text to different language learning levels (A1-B2) using local LLM processing.

- macOS or Linux
- Python 3.8 or higher
- Google Chrome browser
- Terminal access
# On macOS
brew install ollama
# On Linux
curl -fsSL https://ollama.com/install.sh | sh
# Start the Ollama service
ollama serve
# In a new terminal window
ollama pull mistral
Clone or download this repository
# Navigate to project directory
# Create virtual environment
python -m venv venv
# Activate virtual environment
source venv/bin/activate
flask==2.3.3
flask-cors==4.0.0
ollama==0.1.6
python-dotenv==1.0.0
Install:
pip install -r requirements.txt
Make sure all provided files in their correct locations:
backend/app.py
- Flask server codemanifest.json
- Extension manifestpopup.html
- Extension popup interfacepopup.js
- Popup logiccontent.js
- Content scriptbackground.js
- Background scriptstyles.css
- Extension styles
The /images directory holds icons for showing a connected or not connected server (greyscale)
# Make sure you're in the virtual environment
source venv/bin/activate
# Start the Flask server (from the backend directory)
cd backend
python app.py
- Open Chrome
- Go to
chrome://extensions/
- Enable "Developer mode" (top-right corner)
- Click "Load unpacked"
- Select the top directory from your project
- Make sure both Ollama and the Flask server are running
- Visit any French webpage
- Select some French text
- Right click for context menu and choose "Simplify French Text"
- A popup should appear with the simplified version
- Check if Flask server is running (http://localhost:5001)
- Check if Ollama is running (http://localhost:11434)
- If port 5001 is in use, modify the port in
app.py
andcontent.js
- Check the extension popup's server status indicator
- Check Chrome's developer console for errors
- Try reloading the extension from chrome://extensions/