Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1015 Bytes

File metadata and controls

45 lines (30 loc) · 1015 Bytes
tags
web
browser
extension
chat
typescript

Browser Extension Example

Project setup

You must first download the example with the following command:

git clone --depth=1 https://github.com/adap/flower.git _tmp && mv _tmp/intelligence/ts/examples/encrypted . && rm -rf _tmp && cd encrypted

You can then install the project dependencies with:

npm i

Note

The watch script relies on entr.

Warning

In order to use remote handoff, copy .env.example into .env and update the API key inside it (if you don't have a valid API key, you can register here).

Build

Then, you need to build the project:

npm run build

Or rebuild when files change:

# Make sure to install this first: https://github.com/eradman/entr
npm run watch

Run

Once you have built the project, you should find the web-extension content that can be imported into a browser in dist/.