Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greathayat/quick-gpt
A chrome extension to play with Large Language Models
https://github.com/greathayat/quick-gpt
ai chatgpt chrome-extension dom dom-manipulation openai reactjs
Last synced: 20 days ago
JSON representation
A chrome extension to play with Large Language Models
- Host: GitHub
- URL: https://github.com/greathayat/quick-gpt
- Owner: GreatHayat
- Created: 2023-09-10T21:00:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-25T02:28:36.000Z (over 1 year ago)
- Last Synced: 2024-11-15T14:22:58.445Z (3 months ago)
- Topics: ai, chatgpt, chrome-extension, dom, dom-manipulation, openai, reactjs
- Language: JavaScript
- Homepage:
- Size: 655 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quick GPT
![Alt text](/Screenshot.png?raw=true "Optional Title")
## Usage Notes
The extension manifest is defined in `src/manifest.js` and used by `@samrum/vite-plugin-web-extension` in the vite config.
Background, content scripts, options, and popup entry points exist in the `src/entries` directory.
Content scripts are rendered by `src/entries/contentScript/renderContent.js` which renders content within a ShadowRoot
and handles style injection for HMR and build modes.Otherwise, the project functions just like a regular Vite project.
HMR during development in Manifest V3 requires Chromium version >= 110.0.5480.0.
Refer to [@samrum/vite-plugin-web-extension](https://github.com/samrum/vite-plugin-web-extension) for more usage notes.
## Customize configuration
See [Vite Configuration Reference](https://vitejs.dev/config/).
## Project Setup
```sh
npm install
```## Commands
### Build
#### Development, HMRHot Module Reloading is used to load changes inline without requiring extension rebuilds and extension/page reloads
Currently only works in Chromium based browsers.
```sh
npm run dev
```#### Development, Watch
Rebuilds extension on file changes. Requires a reload of the extension (and page reload if using content scripts)
```sh
npm run watch
```#### Production
Minifies and optimizes extension build
```sh
npm run build
```### Load extension in browser
Loads the contents of the dist directory into the specified browser
```sh
npm run serve:chrome
``````sh
npm run serve:firefox
```