Coder Social home page Coder Social logo

idknowhere / gpt-anywhere Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cheesedurger/gpt-anywhere

0.0 0.0 0.0 809 KB

A Chrome extension that lets you insert text from GPT in any text box on any webpage

License: The Unlicense

TypeScript 82.83% HTML 1.60% Vue 13.13% SCSS 2.44%

gpt-anywhere's Introduction

Overview

GPT Anywhere is a browser extension (Chrome for now), that allows the user to input GPT completions anywhere on a website.

Typical use cases are:

  • Social media
  • Email
  • User support
  • Etc

Folder structure

.
├── 01-shared                    # Shared types and config files
├── 02-options                   # Chrome extension's global files (manifest.json, icons, etc.)
├── 03-options                   # Options script
├── 04-background                # Background script
├── 05-content                   # Content script
└── ...

For reference on options, background and content, see Chrome Extension documentation.

Build

To build the Chrome extension:

  1. Run npm run build
  2. Load the extension from ./dist folder

Architecture

The extension saves the user's api key and prompts in the browser synced storage.

flowchart BT
  Storage([Local storage]) --- Background[Background script]
  OpenAI([OpenAI]) --- Background
  Background ----|API calls| Options[Options page]
  Background ----|API calls| Page1(Page 1)
  Background ----|API calls| Page2(Page 2)
  Background ----|API calls| Page3(Page ...)
  Background ----|API calls| PageN(Page N)
Loading

The background script exposes an API called by the Options page and every browsed page. Scripts are communicating through this API with runtime.sendMessage() and runtime.connect().

License

Unlicense

gpt-anywhere's People

Contributors

cheesedurger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.