Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (22 loc) · 1.2 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.2 KB

Leah: ChatGPT Language Educator And Helper

Overview

Leah is a Google Chrome extension that combines voice recognition, voice synthesis and ChatGPT to provide an environment where you can improve your foreign language skills. Leah works only on https://chat.openai.com/chat.

Installation

In Google Chrome go to the Chrome web store and install the extension.

Use

Read the docs.

From source

  1. Clone this repo
  2. Run yarn install
  3. cd contenets
  4. npm run dev or npm run build
  5. In Chrome, go to chrome://extensions/, click Load unpacked and point at the contents/dist directory.

Repo structure and extension architecture

Leah is a Chrome extension, but almost all of the functionality is in the contents part of the extension. There's no background.js and very little in extern.html which is invoked when you click on the icon.

  • The content of Leah is loaded by content.ts.
  • Leah is implemented as an Angular Element which is in turn a Web Component and is loaded by injecting
<custom-root> Custom</custom-root>
<leah-content>leah</leah-content>