An open API service indexing awesome lists of open source software.

https://github.com/tejaboy/smartxsite

Integrating Generative AI with SIT's Content Portal
https://github.com/tejaboy/smartxsite

chrome-extension generative-ai study-tool

Last synced: 6 days ago
JSON representation

Integrating Generative AI with SIT's Content Portal

Awesome Lists containing this project

README

          

# SmartXSite – Your AI-Powered Study Buddy! πŸ§ πŸ“š

**Making university life easier with AI!**
SmartXSite is a Chrome extension designed to empower SIT Content Portal with Generative AI.

## 🌟 What It Does

SmartXSite leverages AI to help you digest lecture content efficiently and securelyβ€”right from your browser.

- πŸ“– **AI-Powered Summaries**
Summarizes PDF lecture notes directly in your browser. Say goodbye to information overload!

- πŸ“ **Auto-Generated MCQs**
Automatically generates multiple-choice questions from your PDF content to test your understanding.

- πŸ”„ **Flexible AI Options**
Choose between:
* On-Device AI (via [WebLLM](https://github.com/mlc-ai/web-llm)) for fast, private, offline processing.
* Gemini API for cloud-based intelligence and improved model quality (note: if you're on the Gemini Free plan, your data may be used to improve Google's modelsβ€”see [Gemini Terms](https://ai.google.dev/gemini-api/terms)).

- πŸ”’ **Privacy-First by Design**
Prefer full privacy? Use the on-device optionβ€”your files never leave your computer. The choice is yours.

## πŸ“¦ Files and Structure

```bash
SmartXSite/
β”œβ”€β”€ libs/ # Contains third-party libraries like marked.min.js and webllm.js
β”œβ”€β”€ LICENSE # SmartXSite project license
β”œβ”€β”€ background.js # Background script for managing extension events - namely popup `summary.html`
β”œβ”€β”€ content.js # Content script for injecting functionality (buttons etc) into pages on xSite
β”œβ”€β”€ index.html # Default extension popup with user configrations
β”œβ”€β”€ index.js # JS logic for index.html
β”œβ”€β”€ manifest.json # Chrome extension manifest (MV3)
β”œβ”€β”€ quiz.css # Stylesheet for quiz popup
β”œβ”€β”€ quiz.html # Quiz popup HTML structure
β”œβ”€β”€ quiz.js # Quiz popup JavaScript
β”œβ”€β”€ README.md # This file duh!
β”œβ”€β”€ summary.css # Styling for summary.html
β”œβ”€β”€ summary.html # Interface for displaying summary
β”œβ”€β”€ summary.js # Logic to interact with WebLLM and render outputs
```

## πŸ§‘β€πŸ’» Developer Setup
1. Clone this repository:

```bash
git clone https://github.com/yourusername/smartxsite.git
```

2. Load the extension in Chrome:
* Go to chrome://extensions/
* Enable "Developer Mode"
* Click "Load Unpacked"
* Select the cloned SmartXSite/ folder

3. Open a PDF and click the extension to see it in action.

## πŸ”— Chrome Web Store
πŸ“₯ Install the latest version from the [Chrome Web Store](https://chromewebstore.google.com/detail/smartxsite/bncgadpdfckkjmlmppinnjimdgiecipc).

## πŸ“œ Licenses
This project uses third-party libraries, each with its own license:

`libs/marked/marked.min.js` – MIT License [[Repo](https://github.com/mlc-ai/web-llm)]

`libs/webllm/webllm.js` – Apache License 2.0 [[Repo](https://github.com/markedjs/marked)]

Please refer to their respective repositories for more details.