Yappy is an Amplenote plugin that implements AI functionality desired by its author.
Initially, Yappy was developed only within its note in Amplenote, but there were a few benefits to extracting it to this git repo:
- When its syntax is incorrect, the IDE can highlight specifically where it's wrong
- It can be tested with unit tests
- It will allow GitClear to track how it evolves over time
- It can be used as a template for other Amplenote plugins?
So here we are.
- Clone this repo.
git clone git@github.com:alloy-org/yappy.git
- Install node and npm if you haven't already.
- Run
npm install
to install the packages. - Copy
.env.example
to.env
and fill in the environment variable for your OpenAI key
Run NODE_OPTIONS=--experimental-vm-modules npm test
to run the tests.
NODE_OPTIONS=--experimental-vm-modules npm run test -- --watch