diff --git a/README.md b/README.md index 5df9ba9..7a68ed6 100644 --- a/README.md +++ b/README.md @@ -1,193 +1,77 @@ -
+# MoodleGPT (SparkAssist) -# SparkAssist 2.0.0 +MoodleGPT is a powerful AI-powered study assistant designed as a Chrome extension. It seamlessly integrates with your learning management system to provide intelligent assistance for your quizzes and study materials. -This extension allows you to hide CHAT-GPT in a Moodle quiz. You just need to click on the question you want to solve, and CHAT-GPT will automatically provide the answer. However, one needs to be careful because as we know, CHAT-GPT can make errors especially in calculations. +## Features -## Chrome Webstore +- **AI-Powered Assistance:** Get help with quizzes and study material directly within your browser. +- **Customizable Models:** Bring your own API key (BYOK) and use the AI models of your choice. +- **Modern Interface:** A clean, fast, and responsive popup interface built with Preact and Tailwind CSS. -Find the extension on the Chrome Webstore right [here](https://chrome.google.com/webstore/detail/moodlegpt/fgiepdkoifhpcgdhbiikpgdapjdoemko) +## Functionality Overview -## Summary +MoodleGPT is built to understand the structure of Moodle quizzes and provide context-aware solutions. Key capabilities include: -- [SparkAssist 2.0.0](#sparkassist-200) - - [Chrome Webstore](#chrome-webstore) - - [Summary](#summary) - - [Disclaimer !](#disclaimer-) - - [Donate](#donate) - - [Update](#update) - - [Set up](#set-up) - - [Settings](#settings) - - [Advanced Settings](#advanced-settings) - - [Mode](#mode) - - [Options](#options) - - [Internal other features](#internal-other-features) - - [Support table](#support-table) - - [Supported questions type](#supported-questions-type) - - [Select](#select) - - [Put in order question](#put-in-order-question) - - [Resolve equation](#resolve-equation) - - [One response (radio button)](#one-response-radio-button) - - [Multiples responses (checkbox)](#multiples-responses-checkbox) - - [True or false](#true-or-false) - - [Number](#number) - - [Text](#text) - - [Atto](#atto) - - [What about if the question can't be autocompleted ?](#what-about-if-the-question-cant-be-autocompleted-) - - [Test](#test) - - [Beta version with advanced features](#beta-version-with-advanced-features) +- **Comprehensive Question Support:** It automatically parses a wide variety of Moodle question types, including: + - Multiple Choice (Radio Buttons & Checkboxes) + - Select / Dropdowns + - Drag and Drop (Gap Select, DDWTOS) + - Matching and Ordering + - Numerical and Text Inputs + - Atto and ContentEditable Rich Text areas +- **Operating Modes:** + - **Autocomplete Mode:** Automatically applies the AI-generated answers directly into the Moodle interface where possible. + - **Clipboard Mode:** Copies the generated answers to your clipboard for manual input. +- **Context-Aware AI Parsing:** It reads the full history and context of the quiz page to provide highly accurate, tailored responses based on the prompt structure. -## Disclaimer ! +## Installation -I hereby declare that I am not responsible for any misuse or illegal activities carried out using my program. The code is provided for educational and research purposes only, and any use of it outside of these purposes is at the user's own risk. +1. Clone this repository to your local machine: + ```bash + git clone https://git.lucida.ee/blackicedbear/MoodleGPT + ``` +2. Navigate to the project directory: + ```bash + cd MoodleGPT + ``` +3. Install the required dependencies: + ```bash + npm install + ``` +4. Build the extension: + ```bash + npm run build + ``` +5. Open Chrome and navigate to `chrome://extensions/`. +6. Enable **Developer mode** in the top right corner. +7. Click **Load unpacked** and select the `extension` directory from the cloned repository. -## Donate +## Configuration & Model Setup -Will be a pleasure if you want to support this project :). I'm alone working on this project and I'm still a student. -
+MoodleGPT allows you to configure your preferred AI model. We highly recommend using **OpenRouter** as it gives you access to a wide variety of models and supports a "Bring Your Own Key" (BYOK) approach.
-## Update
+### Setting up OpenRouter
-See the [changelog](./CHANGELOG.md) to see every updates !
+1. **Get an API Key:** Sign up at [OpenRouter.ai](https://openrouter.ai/) and generate your API key.
+2. **Open the Extension Settings:** Click on the MoodleGPT extension icon in your browser toolbar to open the popup. Navigate to the settings or configuration area.
+3. **Configure the API:**
+ - **API Key:** Enter your OpenRouter API key.
+ - **Base URL:** Due to browser extension CORS restrictions with OpenRouter, you should use our dedicated CORS proxy. Enter the following URL into the Base URL field:
+ ```text
+ https://openrouter-proxy-209510473297.us-central1.run.app
+ ```
+ - **Model:** Specify the OpenRouter model you wish to use (e.g., `google/gemini-3.1-pro-preview`, `anthropic/claude-opus-4.7`, `openai/gpt-5.5`, etc.).
-## Set up
+Once configured, the extension will route your requests securely through the proxy to OpenRouter, allowing you to seamlessly use any of their available models.
-> NOTE: This extension only works on Chromium-based browsers like Edge, Chrome, etc.
+## Development
-
-
-
-
-
-
-## Options
-
-
-
-
-- Request timeout: if the request is too long it will be abort after 20 seconds.
-- Typing effect: create a typing effect for text. Type any text and it will be replaced by the correct one. If you want to stop it press Backspace key.
-